show-receipts
Your agent says the tests pass. show-receipts makes it prove it. Works with Claude Code, Codex and Gemini CLI.

In Claude Code:
/plugin marketplace add TanbirRamim/show-receipts
/plugin install show-receipts@show-receipts
Or from your shell: claude plugin marketplace add TanbirRamim/show-receipts && claude plugin install show-receipts@show-receipts. The hook applies from your next session. Codex, Gemini CLI and manual setups are below.

Replayed over 782 real turns from my own Claude Code and Codex history: 41 ended with a pass claim, all 41 were backed by a run, 0 false blocks. Details.
What it does
It's a Stop hook. When the agent is about to end its turn with "all tests pass", "the build succeeds" or "lint is clean", the hook reads the session transcript and looks for a matching command that ran after the last code edit and exited 0.
- Found one: the agent stops as normal. You never notice it.
- Didn't find one, or the last run failed: the stop is blocked and the agent is told which sentence has no receipt. It goes back and runs the check, or says plainly that it couldn't.
Before:
I fixed add in calc.py. All tests pass.
(nothing ran)
After:
Stop hook feedback: You said "All tests pass.", but no test command ran after your last code edit.
I didn't run any tests, so I have no command or exit code to report. My earlier "All tests pass." wasn't a result I observed.
That's from a real run, shown in the image above. I'd told it not to run anything, so owning up was the honest way out. With permission to run tests, the block message asks it to go run them.
No LLM judging the LLM. It's one file of standard-library Python (about 900 lines) you can read in one sitting, it never calls the network, and it never blocks because of its own errors.
Why
Every agent user has been told "all tests pass" by an agent that didn't run them, or ran them before its last edit, or piped them through tail and missed the failures. Telling it "always run the tests" in CLAUDE.md works until the context gets long. A hook doesn't forget.
What counts as a receipt
A claim is matched to commands by kind:
| claim | commands that count |
|---|
| tests pass | pytest, unittest, jest, vitest, mocha, go test, cargo test, npm test, make test, rspec, dotnet test, ./scripts/run_tests.sh, and so on |
| build succeeds | npm run build, cargo build, go build, tsc, make, next build, ... and any test run |
| lint is clean | ruff, eslint, mypy, pyright, tsc --noEmit, clippy, go vet, npm run lint, ... |
npm run ci, make check and similar count for all three. The run has to come after the last code edit and exit 0. If the exit code was 0 but the output says 2 failed (a pipe through tail does that), it counts as failed.
Edits are Edit/Write tool calls, Codex file changes and apply_patch, Gemini CLI write_file/replace calls, and files Claude Code saw a Bash command change (sed -i, heredocs). Edits to docs (*.md, docs/, CHANGELOG), lockfiles, build output and files outside the project don't reset the clock. Neither do git pull or git checkout.
False positives
A wrong block is worse than a missed claim, so it leans hard toward letting things through:
- Only confident sentences count. "Tests should pass", "I couldn't run the tests", "the tests pass in CI", "were passing before", questions, quoted text and code blocks are all ignored.
- One green run after the last edit is enough, even if a later run failed on purpose.
- A compound command that failed in some other step (
pytest; curl ...) is treated as unknown, which means allowed.
- If the agent handed work to a subagent after the last edit, or a test run is still in the background, it allows.
- It blocks at most once per prompt. If the agent stops again with the same claim, it goes through. No loops.
I replayed it over 782 real turns from my own Claude Code and Codex history. 41 ended with a pass claim, and it would have blocked 0 of them, because all 41 were backed by a run. You can do the same with yours:

python3 hooks/show_receipts.py replay ~/.claude/projects/*/*.jsonl
Honest limits