do i still need the Linear workflow stuff in the AGENTS.md? i have a workflow-governance…
- User
do i still need the Linear workflow stuff in the AGENTS.md? i have a workflow-governance hook installed globally so not sure if this is still needed
Assistant· claude-opus-4-8
Good question to investigate before changing anything. Let me look at what the global workflow-governance hook actually enforces, then compare it against the Linear workflow section in AGENTS.md.
Assistant· claude-opus-4-8
There's a
workflow-hooksplugin installed. Let me see what it enforces.Assistant· claude-opus-4-8
There's a
rules/linear-workflow.mdin the plugin. Let me compare it against the AGENTS.md Linear section.Assistant· claude-opus-4-8
Let me see GOVERNANCE.md (what the hook actually injects at session start) and code-review.md.
Assistant· claude-opus-4-8
I dug into the actual hook. Here's what it does and where it overlaps.
What the global hook covers
- User
its ok if it just helps claude
are there things in the linear workflow that should make their way into the global workflow hooks project?
Assistant· claude-opus-4-8
Good question — I'll flip the comparison and look for generic rules that currently live only in your AGENTS.md and would earn a place in the governance pack.
Most of the section is already upstream: on-start In Progress + cycle assignment, the review→fix→commit gate, "work only local isn't done", status-at-moment-of-change, blocked, and new-work-surfaced are all in
GOVERNANCE.md/ nearly verbatim. The Direct-vs-Drain machinery (, , base-branch chaining, direct-push-to-main) is genuinely drain-specific and should stay local.- User
thats ok lets leave it as is, i'll just delete everything from the linear block
what about the comments and git stuff? is that already covered in the workflow hooks?
Assistant· claude-opus-4-8
I already have the global
GOVERNANCE.mdin front of me, and I checked the rules directory — it holds onlylinear-workflow.md,GOVERNANCE.md, andcode-review.md. So:Comments — yes, basically covered
GOVERNANCE.mdhas an always-on "Comments" block that's the same rule: comment explains the code as it stands; never ticket IDs / story labels / commit SHAs / PR numbers / fix-history narration; same strip-or-delete fix guidance; same leave-alone exceptions (sample-data IDs, schema placeholders, in-repo doc refs).Safe to delete locally, with one caveat: the global version says context belongs in
docs/design-decisions.md— the path this repo just retired in favor ofdocs/adrs/. Delete your local block and future Claude gets pointed at a file that no longer exists here. You'd also drop a few richer examples (the / / labels, "inline the parenthetical"), but those are nice-to-have. The path is the only thing that actually breaks.- User
yes lets fix it so that agent.md doesn't have anything unnecessary. move upstream anything that's useful from here to there instead.
Assistant· claude-opus-4-8
I'm on board. This touches two repos — the local AGENTS.md and the upstream
workflow-hookssource. Let me find the source checkout (not the managed marketplace clone, which gets overwritten on update).Assistant· claude-opus-4-8
Source is at
/Users/anton/src/workflow-hooks, clean onmain. Let me read its rule files (the source-of-truth versions) before editing.Assistant· claude-opus-4-8
Source rules confirmed (the source
GOVERNANCE.mdis actually a bit ahead of the marketplace copy — it already has the comment-as-smell and README-refs items). Now let me read the current AGENTS.md exactly so I can edit precisely.Assistant· claude-opus-4-8
I have the full picture. Here's the plan:
Promote upstream (
workflow-hookssource):GOVERNANCE.md— add an always-on Git block (conventional prefixes, ≤70-char subject, noCo-Authored-By); it's missing entirely upstream.GOVERNANCE.md— generalize the Comments destination fromdocs/design-decisions.mdto also name ADRs, and add the "inline the parenthetical" fix clause.linear-workflow.md— add the status-authority rule and the prefer-current-cycle pickup preference.
Trim AGENTS.md to repo-specific only: keep the project link and the Direct-vs-Drain commit+push detail; drop the generic Linear lifecycle, the Comments section, and the Git section (all now upstream).
One thing to flag: upstream already forbids
README §Nsection refs in comments (path refs are fine), whereas the current AGENTS.md leave-alone list permitsREADME §1. Adopting upstream tightens that slightly — deliberate and reasonable. Proceeding.Let me make the upstream edits.
Assistant· claude-opus-4-8
Now trim AGENTS.md to repo-specific content only.
Assistant· claude-opus-4-8
Done. Here's what changed across the two repos.
drain-cycle/AGENTS.md— trimmed the## Linear workflowsection to repo-specific content only (the project link + the Direct-vs-Drain commit+push detail), and deleted the## Commentsand## Gitsections entirely. The generic lifecycle, comment rules, and git conventions now come from the pack. The section opens with a pointer to where governance lives so a reader isn't left guessing.workflow-hooks(source at/Users/anton/src/workflow-hooks):- : added an always-on block (conventional prefixes, ≤70-char subject, no ) — this was the one genuinely uncovered rule. Also generalized the Comments destination to name ADRs () alongside , and added the "inline the parenthetical" fix clause.
- User
yes
Assistant· claude-opus-4-8
Both committed locally; pushes were rejected because the remotes moved ahead. Let me rebase onto the latest and push.
Assistant· claude-opus-4-8
Both repos are committed and pushed (the rebase pulled in some unrelated upstream additions — your edits are intact). Now the plugin-update step so the new governance actually gets injected. Let me check how the installed copy resolves and its version.
Assistant· claude-opus-4-8
The active copy (cache, v0.1.1) and the marketplace clone are both behind what I just pushed — neither has the new Git block yet. To make the update detectable cleanly, I'll bump the plugin version, then you trigger the refresh. Let me check the marketplace manifest version too.
Assistant· claude-opus-4-8
The source is already at v0.1.3 (the rebase pulled in version bumps), and my changes are in it — so the update will be detected without me bumping anything further. Let me sanity-check that my Git block survived the rebase, then confirm the version delta.
Assistant· claude-opus-4-8
All landed and pushed. Both edits survived the rebase, and the source repo is clean on
main(up to date with origin).Status
Repo Commit Pushed drain-cycledocs: move generic workflow rules to workflow-hooks pack✅ workflow-hooksd300d21 feat: add git conventions, promote drain-cycle workflow rules✅ (now at v0.1.3) To make the upstream governance live
The active injected copy is the installed cache at v0.1.1 — it doesn't yet have the Git block. The published source is now v0.1.3, so an update is detectable. You need to refresh the plugin yourself (it's an interactive flow I can't drive):
- Run
/pluginin Claude Code. - Open the marketplace and choose for the plugin (this re-fetches the marketplace repo, sees v0.1.3, and installs it into the cache).
- Run