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 Ces107v1.1.0MITIn 2 marketplaces
Free hook: Claude Code can't say "done" until the tests really ran green after its last edit. Checks the commands that actually ran, not the agent's words.
Claude loads one when your task matches it, or you run it by name.
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.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A free Claude Code plugin (MIT) that stops the agent from saying "done", "fixed" or "all tests pass" without proof. After a code edit, the agent cannot end its turn until a real test command has run and passed after its last change. It checks the commands that actually ran, not the agent's words.
/plugin marketplace add Ces107/agent-forge
/plugin install done-gate@agent-forge
It is active from the next turn. Requires Python 3.9+ on the PATH as python3 or python.
One standard-library Python script, scripts/done_gate.py, registered in hooks/hooks.json for three
hook events:
| Event | What the script does |
|---|---|
PostToolUse (Edit, Write, MultiEdit, NotebookEdit, Bash) | Records code edits and test runs (pytest, npm/yarn/pnpm test, jest, vitest, go test, cargo test, mvn, gradle, dotnet test, rspec, phpunit, make test and more) |
PostToolUseFailure (Bash) | Records failed test runs |
Stop | Blocks the end of the turn when code changed and no passing test run happened after the last edit, and tells the agent which command to run |
The hook never runs your tests itself; it only reads the hook input Claude Code passes it. A run piped
into tail or grep, masked with || true, or reporting 0 tests collected does not count. After two
reminders it lets the turn end with a visible warning, so projects without tests keep working. Sessions
without code edits are never blocked.
No network access and no telemetry. State is one small JSON file per session in the system temp folder
(proof-of-done/).
A file in the repository can add checks but never waive them. Anything that relaxes the gate (extra
test commands, ignored paths, allowed findings, fewer reminders) goes in your own file outside the
repository, ~/.claude/proof-of-done.json:
{"max_blocks": 2,
"projects": {"~/code/shop": {"test_commands": ["./run-tests\\.sh"], "ignore_paths": ["docs/"]}}}
Top-level keys apply everywhere; keys under projects apply in that directory and below.
The project's .proof-of-done.json can only make the gate stricter: a higher max_blocks (up to 10) and
"integrity": true. Any other key in it is ignored.
/plugin disable done-gate@agent-forge (or toggle it in /plugin)./plugin uninstall done-gate@agent-forge."max_blocks": 0 for that project under projects in
~/.claude/proof-of-done.json (it then never blocks, only warns).MIT. Source: https://github.com/Ces107/agent-forge/tree/main/plugins/done-gate
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.
Plugins from other owners that cover similar ground
npx claudepluginhub ces107/agent-forge --plugin done-gate