Better Workflows
Your AI coding agent cannot finish on a stale green test, and cannot repeat or stack side effects whose result it never saw.

English · 繁體中文(台灣)
What it stops
agent runs npm test → passes
agent edits src/sum.ts → breaks it
agent "Done. Tests pass."
bw ✗ Stop blocked. test: last result was for an older tree; files changed since then.
agent git push origin main → times out after the push landed
agent git push origin main (retry)
bw ✗ Denied. git-push: the same action already succeeded at this commit.
The agent is held to the files as they are now, and to what the provider actually did. Permissions come only from a policy file the agent cannot edit, never from prompt text.
See both stories run in a few seconds, without Claude:
npm install -g @better-workflows/core@alpha
node "$(npm root -g)/@better-workflows/core/examples/stale-green/demo.mjs"
Install for Claude Code
claude plugin marketplace add stephen-taipei/better-workflows
claude plugin install better-workflows-core@better-workflows --scope local
bw init
Add the marketplace once per machine; run the other two lines in your repository. bw init writes .better-workflows/policy.json.
Then ask Claude Code for a change and tell it not to run the tests: it is sent back when it tries to finish. Getting started covers policies, unknown results and limits. Core is alpha (6.0.0-alpha.6), Apache-2.0, and has no runtime dependencies. Direction and milestones are in the roadmap.
Other languages
Each page is a short V6 introduction generated from one catalog. English and Traditional Chinese (Taiwan) are reviewed by hand; the others are machine-translated, and the English README is authoritative. See the localization policy.
Contribute and get help
npm test --prefix packages/bw-core
Contributing · Code of conduct · Governance · Support · Security policy
One-time USDT (TRC20) support helps maintain the open-source code, documentation, 41-language localization, and website hosting. It does not provide membership, roadmap priority, or support priority.
USDT · TRON (TRC20) · TGuMUi1d8MoBQcuFrGJZnu4JrbaeP3wy9a

V5
V5 is frozen at RC1 and V5.1 has stopped (2026-10-09). Its source, guides and localized references are on the frozen/v5 branch, unchanged, for existing users.