v0.1.16 · early release · Apache-2.0
Make the coding agent run the checks before it stops.
VerdictLite is a small command-line tool for git repos. When a Claude Code or Codex agent tries to stop, it runs your checks. It flags tests that were skipped or deleted. At commit time it writes down how the change was verified.
VerdictLite: checks failed on this change (repo .../shop). [app/tests] failed command: node --test exit code 1 last lines of output: not ok 1 - adds price times quantity error: |- Expected values to be strictly equal: 9 !== 14 ... (test output trimmed) Full output: ~/.verdictlite/shop-1fc1e50e6f/handoffs/2026-11-19T04-51-44-727Z-round1.txt Round 1 of 3. Fix the cause. Do not skip, sleep or rerun to pass.
* to + in a price function. The stop was blocked and the agent was told why.- Version 0.1.16Early release
- Node.js 20+TypeScript CLI, ESM
- Zero runtime dependenciesOnly dev tools to build
- 270 automated testsCI on Ubuntu and Windows
- Apache-2.0Public repo
- Not on npmOne-click installer for Windows
The problem
Agents say "done" too early.
An AI coding agent can stop or commit without running the tests. When a test fails, it can be tempted to skip it, add a sleep, add retries or delete it. VerdictLite puts a simple check at each of those points.
What goes wrongThe agent stops without running the checks.
What VerdictLite doesA Stop hook in Claude Code or Codex runs your checks for the parts of the repo that changed. If one fails, the stop is blocked and the agent gets the error.
What goes wrongA failing test gets skipped, slowed, retried or deleted.
What VerdictLite doesA built-in test-tamper check looks at the changed lines in test files. It flags added skips, fixed sleeps, retries and removed tests.
What goes wrongThe agent tries the same broken fix forever.
What VerdictLite doesRounds are counted. After three failed rounds VerdictLite hands off to a person, with a saved file of the last output of each failing check. Claude Code stops the agent; Codex marks the hook run as stopped.
What goes wrongA commit gives no sign of how it was checked.
What VerdictLite doesGit hooks add a Verified-By: line to every commit message when the gate is on (observe or enforce): verify, code-review, stop-check, docs, skipped or none.
What goes wrongA change loosens the rules that judge it.
What VerdictLite doesThe config and the review rules are read from the base branch, not from the change. The tool and its logs live outside the repo.
How it works
Two gates: one when the agent stops, one when it commits.
The stop gate needs Claude Code or Codex. The commit gate is plain git hooks, so it works with any agent and with people.
stop-check stamp. Other stamps come from vlite stamp verify (usually run by a verify skill) or from a clean vlite review. A stamp shows that a step ran on that exact set of files. It is a speed bump, not proof.What it does
The commands. One config file.
Stop check
vlite stop-check runs the checks for each part of the repo that changed. A docs-only change passes at once. A tree that already passed is not checked again on that branch. If only real test files changed since the part last passed, a check with runFiles runs just those test files. A helper or fixture forces the full check. A check that times out is no result: it is a warning, not a failure and not a pass.
Three-round hand-off
Failed stops are counted per session and branch. Rounds 1 and 2 block. Round 3 hands off to a person. Claude Code stops the agent; Codex marks the hook run as stopped. The hand-off file holds the last 2,000 lines of each failing check.
Required orgs
vlite require-org NAME says that every repo of a GitHub org must have a vlite.json. The global Stop hook blocks once when a repo of that org has none.
Test-tamper check
Flags added skips, fixed sleeps, retries and removed tests in your test files. A skip whose only condition is the operating system is allowed. A test you remove on purpose is written down in TEST-REMOVALS.md.
Stamps
vlite stamp verify records that a check ran on the exact tree, with evidence files that must exist. The commit gate looks for it.
Commit gate
vlite install adds pre-commit and commit-msg hooks. They add a Verified-By: trailer. Modes are off, observe and enforce.
AI review
vlite review sends the diff and your REVIEW.md rules from the base branch to a review command (by default claude -p). A clean result writes a stamp.
Real output
What the agent and you will see.
Every block below is real output from vlite 0.1.16, run in a small demo repo. Home folder paths are shortened to ~/.verdictlite/... and the repo path to .../shop. Long test output is trimmed where marked.
[test-tamper] failed
command: (built-in)
exit code 1
last lines of output:
tests/price.test.js:4 [skip] test.skip('adds price times quantity', () => {
-> Remove the skip, xfail or .only. Fix the test or the code instead.
tests/price.test.js:7 (old line) [removed-test] test('rounds to cents', () => {
-> Test "rounds to cents" was removed. Restore it, or add a line to TEST-REMOVALS.md with its name and why it was removed.
VerdictLite: app/tests still fails after 3 rounds. A person must look. Last failure: exit code 1. Handoff: ~/.verdictlite/shop-1fc1e50e6f/handoffs/2026-11-19T04-51-47-492Z-round3.txt
{"continue": false}. Claude Code stops the agent; Codex marks the hook run as stopped. You read the hand-off file and decide what to do.$ vlite stamp verify --result pass --evidence ../test-run.log --note "node --test, 2 pass" Stamped verify pass for tree d922fdcc8ebb $ git log -1 commit 15c9cc06f92b Author: Demo <demo@example.com> feat: add count() Verified-By: verify
$ git log -1 commit cf9307b3e6df Author: Demo <demo@example.com> feat: add sum() Verified-By: stop-check
$ vlite gate report --days 7 VerdictLite gate report, last 7 days (mode now: observe) Commits judged: 5 verify: 1 stop-check: 1 docs: 1 none: 1 skipped: 1 Would have been blocked (observe): 1 Checked after commit (same files passed later): 0 Blocked (enforce): 0 Let through after two blocks (escape): 0 Overrides (Verify-Skip): 1 2026-11-19 04:51 generated file, checked by hand
observe to enforce.$ git commit -m "feat: version 3" VerdictLite: commit blocked. Nothing shows this exact change was verified (method: none). Do one of these, then commit again: 1. Run the checks, then: vlite stamp verify --result pass --evidence <log file> 2. Get the AI review: vlite review 3. Skip on purpose: add this line at the end of the commit message: Verify-Skip: <why this commit does not need it> A stamp only counts for the exact staged tree. Stage everything first (git add -A).
Commit gate modes
Watch first. Enforce when the numbers say so.
Set gate.mode in vlite.json on the base branch.
off
Nothing. No trailer, no log.
- default
observe
Never blocks. Adds the trailer. Logs the commits that would have been blocked.
enforce
Blocks a commit with method
none. AVerify-Skip:line skips on purpose, with a reason.
Quick start
Install in one click, then set up one repo.
On Windows, download install-verdictlite.cmd from the latest release and double-click it. Or run the one line below in PowerShell. It needs no admin rights. It installs Node.js LTS with winget if Node 20 or newer is missing, checks the download’s SHA-256, and puts the files in %LOCALAPPDATA%\VerdictLite\app. On a first install, the installer also connects VerdictLite to the Claude Code and Codex apps; use -Connect to connect on an update. To update, run it again. To uninstall, run vlite connect --uninstall, then vlite install --uninstall in each guarded repo, then remove the vlite stop-check entry from each guarded repo's .claude/settings.json or .claude/settings.local.json, if you added one, then delete that folder and remove its bin folder from your user PATH. On other systems, or to build it yourself, use the source steps further down: you need git, Node.js 20 or newer and pnpm. VerdictLite is not on npm.
-
Install the tool
PS> irm https://github.com/scottconverse/verdictlite/releases/latest/download/install.ps1 | iexThen restart the Claude and Codex apps. Codex runs a new hook only after you approve it: in Codex, click Review hooks, or open Settings > Hooks. To connect or disconnect later, run
vlite connectorvlite connect --uninstall. Codex limit: VerdictLite checks the repo the Codex session opened in, plus any repo that blocked on its last stop.Open a new terminal and run
vlite --helpto check.From source (any OS). Keep the clone outside the repos it checks.
git clone https://github.com/scottconverse/verdictlite.git cd verdictlite pnpm install pnpm build npm linknpm linkputsvliteon your PATH. Runvlite --helpto check. -
Write
vlite.jsonand merge it to the base branch{ "version": 1, "base": "origin/main", "docs": ["**/*.md", "docs/**"], "parts": [ { "name": "app", "paths": ["src/**", "test/**"], "checks": [ { "name": "tests", "run": "pnpm test" } ] } ], "tests": { "paths": ["test/**"] }, "gate": { "mode": "observe" } }The config is read from the base branch. Until it is merged there, VerdictLite uses your working copy and prints a warning each time.
-
Install the git hooks
$ vlite install --claudeThis adds the
pre-commitandcommit-msghooks and prints the Stop hook settings. It keeps any hook you already have and runs it first. -
Add the Stop hook to
.claude/settings.json{ "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "vlite stop-check", "timeout": 3600 } ] } ] } }The timeout is in seconds. Make it longer than all your checks put together. Codex users: run
vlite connect --codex, which writes$CODEX_HOME/hooks.json, and then approve the hook in Codex. Then add a verify skill so the agent stamps its work. The manual has a full example.
Main commands
vlite install | Adds or removes (--uninstall) the git hooks. --claude prints the Stop hook settings. |
|---|---|
vlite stop-check | The Stop hook for Claude Code and Codex. Runs the checks and the tamper check. Add --session NAME to run it by hand. |
vlite stamp | Records a verify or code-review result for the current tree, with evidence files. |
vlite gate | Run by the git hooks. vlite gate report shows what the gate saw. |
vlite review | One AI review round against REVIEW.md from the base branch. |
The connect and require-org commands are described in the manual.
Honest limits
What it does not do.
Status: early
Version 0.1.16 is the sixteenth fix to the first release (0.1.0), built on 2026-11-22. It has 270 automated tests (6 run on Windows only); the rest run on Ubuntu and Windows in CI. It is being set up on its first real repo now. Expect changes.
Found a problem? Open an issue.
- It does not prove your code is right. It shows that your checks ran on this exact set of files. The checks are only as good as the ones you write.
- A stamp is a speed bump, not proof. Anyone can write one by hand, and
git commit --no-verifyskips git hooks. VerdictLite makes these choices visible in logs and trailers. It does not make them impossible. - The stop check needs Claude Code or Codex. It runs as a Stop hook in either app. Other agents do not get the Stop hook automatically; they get the commit gate, and
vlite stamp/vlite revieware CLI commands any agent can run. The tamper check runs inside the stop check. In Codex, VerdictLite checks the repo the session opened in, plus any repo that blocked on its last stop. - The tamper check is simple. It uses regular expressions. It can miss things and can flag lines that are fine.
- If the tool itself breaks, it lets the agent stop. A failing check always blocks. A crash in VerdictLite does not; it logs an error instead.
- The config must be on
origin/mainormain. A default branch with another name, such asmaster, is not searched in 0.1.16. vlite reviewsends your diff to the review command you set, by default theclaudeCLI. The other commands run only on your machine.
Where the idea comes from
Built from a published method.
VerdictLite follows the steps in How the Claude Code team thinks about verification by Addy Osmani (November 16, 2026). It turns them into a stop check, a tamper check, stamps and a commit gate you can run today.