Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By stephen-taipeiv6.0.0-alpha.3Apache-2.0In 1 marketplace
Blocks completion claims on stale test evidence, gates side effects through a policy file, and reconciles unknown results before anything else runs.
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Stops an AI coding agent from claiming "done" on stale evidence, from repeating or stacking side effects whose result is unknown, and from taking permissions out of prompt text.
Status: alpha (6.0.0-alpha.3), part of the V6 roadmap. Claude Code is the first host, through the hooks plugin in this package. Start with Getting started, or run the stale-green demo (node examples/stale-green/demo.mjs, about 2 seconds, no Claude needed). To use Core from your own scripts, tools or agent host, see Building on Core. The experimental Codex adapter is documented in English and Traditional Chinese (Taiwan).
| Check | Rule |
|---|---|
| Evidence | A test, lint, typecheck or build result is recorded against the Git tree of the working copy at the time it ran (tracked changes plus untracked, non-ignored files). It counts only while the working copy still has exactly that content, only if it passed, and only if no file changed while it ran. A run whose exit code belongs to another command on the line (`npm test |
| Completion | completion.require in the policy lists the evidence kinds that must be fresh before work counts as complete. |
| Action gate | Pushes, PR merges and creates, releases, package publishes, gh api writes, HTTP writes and any custom kinds are side effects. Each needs allow from the policy file; the default is ask. Commands whose effects cannot be read (command substitution, eval, sh -c) are treated as opaque, default ask. |
| At most once | The same side effect at the same commit is refused after it has succeeded. |
| Reconciliation | Only exit code 0 is a known result. Anything else leaves the action unknown, and every further side effect is refused until bw reconcile settles it with a read-only check against the provider (git ls-remote, gh pr view, gh release view, npm view), or a person settles it with a note. |
| Ledger | Every record goes to an append-only, hash-chained ledger in .git/better-workflows/. bw verify detects edited, removed or cut-off entries and a half-written last line. It keeps the last entry's seq and hash in ledger.head; rewriting both files together still goes unseen. |
| Command | What it does |
|---|---|
bw init | Writes .better-workflows/policy.json. |
bw run --kind test -- npm test | A person runs the command and records evidence (refused to the agent). |
bw check-completion | Exits 0 when the required evidence is fresh, 2 otherwise. |
bw check-command "git push origin main" | Exits 0 for allow, 2 for deny, 3 for ask. |
bw reconcile | Settles unknown actions by probing the provider. |
bw reconcile <id> --outcome success --note "checked the deploy dashboard" | A person settles an action by hand. |
bw status, bw verify, bw log | Show open actions and evidence, check the ledger, list its entries. |
Install it from this repository's marketplace and npm (details in Getting started):
npm install -g @better-workflows/core@alpha
claude plugin marketplace add stephen-taipei/better-workflows
claude plugin install better-workflows-core@better-workflows --scope local
bw init
The first line installs the bw command and the second adds the marketplace, both once per machine.
| Hook | What it does |
|---|---|
SessionStart | Records the starting tree and tells the agent which evidence completion needs and which side effects are still unsettled. |
PreToolUse | Runs the action gate on Bash commands. deny blocks the call, ask sends it to the permission prompt, allow defers to Claude Code's own permission rules and never grants more. Edits to .better-workflows/ or .git/ and bw init / bw reconcile <id> are refused. |
PostToolUse, PostToolUseFailure | Records the exit code: 0 is success, anything else or an interrupt is unknown. Records evidence for test, lint, typecheck and build commands. |
Stop | If files changed in the session and the required evidence is not fresh, sends the agent back once with what is missing; the second time it only warns. |
SubagentStop | Settles side effects the person refused during the subagent. Never sends a subagent back: it shares the parent's session, and the parent's Stop is the gate. |
A side effect refused at the permission prompt never runs and gets no PostToolUse. The adapter settles it as failed only when the session transcript shows Claude Code's refusal as the tool's result. Any other missing result, an interrupt included, stays unknown.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub stephen-taipei/better-workflows --plugin better-workflows-corePlugins from other owners that cover similar ground