Agvel

agentic-go. A done-gate for agent-written Go, tested against a bar set before the test. It failed three of its four kill criteria, and this page starts there.

Read the resultsSource on GitHub

At a glance

3 of 4kill criteria failed
821variants tested
176real commits
5baselines

What it does. When a coding agent tries to stop, agentic-go check compares the working tree with a base and reports only the problems that change introduced. In an agent hook it blocks the stop once, so the agent can fix them.

Test integrityDeleted tests, tests hidden from go test by a rename or a build constraint, skips added to existing tests, removed assertions and stub panics.
Tests, compared with the baseRuns go test on changed packages and their consumers. Failures are rerun and compared with the base, so old and flaky failures warn instead of block.
AnalyzersFindings that the change introduced, from bundled concurrency and error-handling analyzers.
Coverage and racesChanged lines that no test runs are a warning. The race detector runs on request, and in CI when the diff touches synchronization.

How it behaves in an agent. The report is at most 2 KB, with blocking items first, each with a location, a message and a fix. A gate failure never blocks an agent.

Exit code in hook modeAlways 0
Blocks the same changeOnce
Blocks in a row, at most3
Hook budget120 s
If the check cannot finishStop allowed, with a note

Where it runs. Hooks for Claude Code, and experimentally for Codex, a git pre-push hook, and CI.

InstallFrom source, Go 1.25 or later
Released binary with checkNone yet
Exit codes0 pass, 1 block, 2 unknown in CI
OutputText, or JSON

How it was built. The test was written before the results, with a bar the gate had to clear. The gate failed to clear it.

  1. A pre-registered protocolThe evaluation protocol was committed before the runs. It carries Amendments 1 to 4.
  2. Real commitsThe 821 variants come from 176 real commits in cobra, chi, testify, gin and echo.
  3. Five baselinesThe gate ran beside five baselines. The strongest conventional one runs every test, go vet and golangci-lint, and ignores failures that already exist at the base. A 60-line grep script was layered on it.
  4. Kill criteriaFour criteria, K1 to K4, stated in advance. Three failed.

The four criteria

K1, hidden test tamperingFail
K2, held-out disguisesFail
K3, true patchesFail
K4, warm hook timePass

Results of 9 Oct 2026.

Results. The gate did not beat a conventional gate at catching hidden test tampering, a 60-line grep script beat it on disguised tampering, and it blocked too many correct patches.

K1. Cover-ups: failed

68.2% against 74.7%

Share of effective cover-ups blocked (n=396), the gate against the strong conventional gate of tests, go vet and golangci-lint, base-subtracted. The gate needed to lead by 30 points. It trailed by 6.5.

K2. Held-out disguises: failed

60.1% against 93.2%

Share of held-out disguises blocked (n=148), the gate against the 60-line grep gate. The gate needed to lead by 20 points. The precision half passed: on legitimate commits that delete or skip tests, the gate falsely blocked 36.8% (14 of 38), the grep gate 97.4% (37 of 38).

K3. True patches: failed

28 falsely blocked

Of 150 true patches, 28 were blocked: 18.7%, Wilson 95% interval 13.2% to 25.7%. The bar was 2% or less. 22 of the 28 came from one defect in testify, where inner suites run through testing.RunTests are reported as new failing tests.

K4. Warm hook time: passed

10.6 s against 11.9 s

Median time of a warm hook, the gate against the conventional gate. The gate was not slower.

The earlier MCP server. The same binary still runs as a local MCP server. Its own adoption study did not show a benefit, and it is now maintenance-only.

Used, tool description only0 of 6 runs
Used, generic prompt guidance6 of 6 runs
Agents told to use itSlower, no gain in correctness

Defects are fixed and nothing is added.

What it doesn’t claim. The result is how well detectors catch planted flaws, not how often agents tamper with tests.

Synthetic flawsThe variants were made for the test. They measure the detectors, not how often real agents cover up a failure.
No claim on agent outputNothing here says the gate makes an agent’s code better.
Known blind spotsA changed expected value in a test, a test body in a closure never called, a skip behind an environment check and a test moved into a build-tagged file go undetected or only warn. A test added and then skipped in the same change is not treated as tampering.
Not a sandboxIt runs the repository’s own tests with your privileges. It sees only the module of the workspace and, in a shallow clone, only uncommitted changes.

Licence and source. The code is Apache-2.0. The project keeps its own licence, apart from Agvel’s.

CodeApache-2.0
Project markCC BY 4.0

The project mark is adapted from Maria Letta’s Free Gophers Pack, released under CC0. It is not the official Go logo. Agvel’s Apache 2.0 and CC BY 4.0 apply to Agvel’s own releases, not to this project.

More from Agvel