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.

Early stage: built on 2026-11-22 and being set up on its first real repo now. Not on npm. Not made by or affiliated with Anthropic.

Stop hook (Claude Code, Codex)vlite stop-check
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.
Real output from a demo repo. The agent changed * 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.

VerdictLite flow The agent changes code and tries to stop. The Stop hook runs vlite stop-check. It can pass, block with round N of 3, or hand off to a person after 3 rounds. A blocked agent fixes the cause and tries again. After a pass, the agent stamps and commits. The commit gate git hooks check for a stamp on the exact tree and add a Verified-By trailer. Both the stop check and the gate read their rules from the base branch. STOP GATE (CLAUDE CODE, CODEX) COMMIT GATE (GIT HOOKS) Agent changes code, tries to stop Stop hook vlite stop-check PASS The agent may stop. HAND-OFF After 3 rounds: a person looks. BLOCK Round N of 3. Fix the cause. The agent gets the error, fixes the cause and tries to stop again. Stamp, then commit pre-commit commit-msg Looks for a stamp on this tree. Verified-By: verify A line added to the message. Base branch vlite.json and REVIEW.md are read from here, not from the change being judged. VerdictLite flow The agent changes code and tries to stop. The Stop hook runs vlite stop-check. It can block with round N of 3, hand off to a person after 3 rounds, or pass. A blocked agent fixes the cause and tries again. After a pass, the agent stamps and commits. The commit gate adds a Verified-By trailer. Rules come from the base branch. Agent changes code, tries to stop Stop hook vlite stop-check BLOCK Round N of 3. Fix it. HAND-OFF After 3: a person looks. PASS The agent may stop. Stamp, then commit pre-commit, commit-msg Looks for a stamp on this tree. Verified-By: verify Base branch vlite.json and REVIEW.md are read from here, not from the change.
A stop-check pass lets the agent stop. When at least one check ran in full, it also writes a 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.

The agent skipped one test and deleted another
[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.
The test suite passed in this round, because the failing test was skipped. The tamper check is what caught it.
Round 3: hand-off to a person
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
The hook prints {"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.
Stamp, commit, look at the log
$ 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
Commit id shortened and date line removed. The gate added the last line.
The Stop hook passed, then a commit with no stamp
$ git log -1
commit cf9307b3e6df
Author: Demo <demo@example.com>

    feat: add sum()

    Verified-By: stop-check
A passing Stop hook on the same files counts as proof. It counts only when a check ran in full.
A week of commits in observe mode
$ 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
Use this report to decide when to switch the gate from observe to enforce.
Enforce mode: a commit with no stampexit 1
$ 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).
After two blocks within 30 minutes, the third try goes through and is logged as an escape. Nobody gets locked out of their own repo.

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. A Verify-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.

  1. Install the tool

    PS> irm https://github.com/scottconverse/verdictlite/releases/latest/download/install.ps1 | iex

    Then 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 connect or vlite 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 --help to 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 link

    npm link puts vlite on your PATH. Run vlite --help to check.

  2. Write vlite.json and 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.

  3. Install the git hooks

    $ vlite install --claude

    This adds the pre-commit and commit-msg hooks and prints the Stop hook settings. It keeps any hook you already have and runs it first.

  4. 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 installAdds or removes (--uninstall) the git hooks. --claude prints the Stop hook settings.
vlite stop-checkThe Stop hook for Claude Code and Codex. Runs the checks and the tamper check. Add --session NAME to run it by hand.
vlite stampRecords a verify or code-review result for the current tree, with evidence files.
vlite gateRun by the git hooks. vlite gate report shows what the gate saw.
vlite reviewOne 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-verify skips 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 review are 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/main or main. A default branch with another name, such as master, is not searched in 0.1.16.
  • vlite review sends your diff to the review command you set, by default the claude CLI. 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.