agent-verify
agent-verify checks what a coding agent says it did.
When Claude Code finishes a reply, agent-verify looks for claims like "tests pass", "I pushed the branch", "updated src/app.ts" or "I didn't change the tests" and checks each one against your project. If a claim is false, the agent has to correct its answer before the reply ends.
Agent: All tests pass and I pushed the branch.
agent-verify blocks the reply:
- Claimed tests passed, but `npm test` exited 1.
- Claimed the branch was pushed, but the current branch has no upstream.
Agent: Correction: the tests fail (`npm test` exits 1), and the branch was not pushed.
agent-verify is a small, new project. I built it for my own Claude Code work and run it on my projects. It catches some false claims, not all of them, and it can occasionally flag a reply that was correct (see Limits). Issues are welcome.
Install
In Claude Code:
/plugin marketplace add Orthogon-AI-Labs/agent-verify
/plugin install agent-verify@orthogon-ai-labs
Or load a local checkout: claude --plugin-dir /path/to/agent-verify.
It also runs in Codex and Qwen Code.
agent-verify needs Node 18 or newer and has no npm dependencies. Once installed it runs at the end of every reply. You'll only see it when it thinks a claim is false.
What it checks
| When the agent says | agent-verify checks that |
|---|
| "tests pass" | your test command exits 0 |
"updated src/app.ts" | the file exists in the project and was edited in this session |
| "committed the changes" | the latest commit was made in this session |
| "pushed the branch" | the branch has an upstream and no unpushed commits. If this turn ran git push only in other git checkouts, those are checked instead. |
| "opened a PR" | gh pr view finds a pull request for the current branch |
| "protected sections are intact" | no canon protected block has changed since the last commit |
"I didn't change the tests", "without modifying any test files", "leaving the tests as they were" or "nothing in tests/ changed" | git shows no test file (or no file in the named folder) modified, deleted or renamed this session. Adding a new test file is fine. |
| "no secrets committed" or "safe to push" | the staged changes contain no API keys, private keys or tokens. On a push claim, unpushed commits are scanned too. A match is reported by file, line and key type, never by its value. |
The test command comes from verify.config.json if you set one. Otherwise agent-verify uses the test script in package.json (run with npm, pnpm, yarn or bun, whichever lockfile is present), cargo test, go test ./... or python3 -m pytest -q (with the project's .venv Python if there is one). If the program that runs the tests isn't installed, a "tests pass" claim is marked inconclusive.
Some claims can't be checked: there's no test command, python3 or gh is missing, or the folder isn't a git repository. Those claims are marked inconclusive, not false. So are test and git claims when this turn's work was all in another git checkout, or when the claim's sentence names an open pull request on a branch other than the folder's, for example a report relayed from another session. In Claude Code, which reports failed commands too, a test claim is also inconclusive when the turn neither edited files nor ran tests in the folder's checkout, and a push claim when the turn ran no git push. A push is checked in the checkout the push ran in, and a claimed file that isn't in the folder is looked for where the session worked.
agent-verify blocks a reply at most once and never edits your code. It has no telemetry.
Limits