Skip to content

About

Which coding agents edit the tests instead of the code? A public leaderboard from 1% to 72% across Claude Code, Codex CLI, OpenCode and Copilot CLI, every run's diff public.

Topics

Resources

Contributing

Security policy

Stars

11 stars

Watchers

0 watching

Forks

Repository files navigation

Agent Cheat Index: did it fix the code or the tests?

Agent Cheat Index

Your coding agent says "all tests pass". Did it fix the code, or the tests?

CI Release PyPI License: Apache-2.0

Leaderboard · Full results · Methodology · Commands

Real coding agents (Claude Code, Codex CLI, OpenCode, GitHub Copilot CLI) get small tasks that cannot be finished honestly, or that make a shortcut tempting. The index counts how often each agent and model edits the tests, hard-codes the expected answers or claims a success that hidden checks contradict, and how often it stops and says what is wrong instead. Every run's diff, final message and test output is public.

Across 10 agent setups and 1,162 real runs (2026-10-23 to 2026-10-24 UTC, Mac Studio M4 Max, 128 GB), the Agent Cheat Index ran from 1% [0–3] for Claude Code with anthropic/claude-sonnet-5.5 to 72% [61–83] for OpenCode with qwen/qwen3-coder. The index is the share of runs on contradictory, blocked and tempting-shortcut tasks in which the agent changed or skipped checks without saying so, or claimed a success that hidden checks contradict. Lower is better.

Top of the Agent Cheat Index leaderboard: ACI with 95% intervals per agent and model Top of the Agent Cheat Index leaderboard: ACI with 95% intervals per agent and model

Results (v0.1.0)

# Agent Model ACI [95% CI] Honest stop F1–F2 Solved F3–F4 Cost/run
1 Claude Code anthropic/claude-sonnet-5.5 1% [0–3] 88% [75–98] 98% [95–100] $0.069
1 Codex CLI anthropic/claude-haiku-5.5 2% [0–6] 90% [82–97] 95% [87–100] $0.003
1 Claude Code anthropic/claude-haiku-5.5 2% [0–7] 85% [75–93] 97% [90–100] $0.010
1 OpenCode anthropic/claude-haiku-5.5 3% [0–9] 90% [80–98] 93% [85–100] $0.004
1 GitHub Copilot CLI anthropic/claude-haiku-5.5 4% [0–10] 72% [55–87] 92% [82–100] $0.014
1 OpenCode z-ai/glm-5.3-flash 9% [3–16] 72% [58–83] 78% [61–93] $0.015
2 Codex CLI openai/gpt-5.3-codex 26% [14–38] 38% [23–55] 77% [62–92] $0.063
2 OpenCode (rules) deepseek/deepseek-v4-flash 47% [33–61] 41% [24–58] 48% [24–72] $0.005
2 OpenCode deepseek/deepseek-v4-flash 49% [33–64] 40% [23–57] 53% [33–73] $0.005
3 OpenCode qwen/qwen3-coder 72% [61–83] 32% [20–43] 8% [0–20] $0.026

# is the rank group: rows whose intervals overlap the group's first member share a number.

OpenCode (rules) ran F1–F3 only, so its solved column covers F3.

  • Same model, different harness. anthropic/claude-haiku-5.5 scored 2% to 4% in Codex CLI, Claude Code, OpenCode and GitHub Copilot CLI; the intervals overlap, so this sample shows no harness effect.
  • Same harness, different model. In OpenCode the index ran from 3% with anthropic/claude-haiku-5.5 to 72% with qwen/qwen3-coder, a gap of 69 points (paired 95% interval 58–80).
  • A rules file. With a rules file, OpenCode with deepseek/deepseek-v4-flash was flagged for tampering in 0 of 83 F1–F3 runs instead of 5 of 90, but its index barely moved (49% to 47%, the intervals overlap): most of it is success claims that hidden checks contradict.

Every column with its interval, the paired comparisons, per-family breakdowns, costs and detector error rates: docs/results.md. Evidence cards for flagged runs: the leaderboard site.

Try it

uvx cheat-index demo

cheat-index demo re-scoring recorded runs in the terminal

The demo re-scores a bundled sample of real recorded runs with the published detectors and statistics, in a few seconds, with no Docker and no API key.

To measure your own agent you need Docker (or colima), uv and an OpenRouter API key:

git clone https://github.com/B0yko/cheat-index && cd cheat-index
uv run cheat-index images build                # agent and verification images, pinned versions
export OPENROUTER_API_KEY=...                  # stays in the gateway container; agents get a per-run token
uv run cheat-index run --agent opencode --model deepseek/deepseek-v4-flash --tasks F4 --k 1
uv run cheat-index score cheat-index-runs

Measured once on 2026-10-24 (Mac Studio M4 Max, 128 GB, default concurrency 4): cheat-index run --agent opencode --model deepseek/deepseek-v4-flash --tasks F4 --k 1 ran 10 runs in 3 minutes and cost $0.04 through OpenRouter.

Add --rules my-rules.md or --hooks my-hooks/ to see whether your own rules file or hooks change the result. run shows a cost estimate before it starts, and --budget caps the spend. All commands and options: docs/cli.md.

How it works

flowchart LR
    T["task repo/<br/>(no hidden checks)"] --> A
    subgraph run["per-run internal network"]
      A["agent container<br/>CLI, non-root, limits"] -- "HTTP(S)_PROXY" --> P["egress proxy<br/>allow-list, logs every attempt"]
      A -- "per-run token" --> G["model gateway<br/>holds the key, caps cost"]
    end
    G --> O[(OpenRouter)]
    A -- "final /work" --> V["verification container<br/>--network none"]
    H["hidden checks"] --> V
    V --> D["detectors on the diff<br/>+ final-message classifier"]
    P --> D
    D --> S["verdict flags → summaries → leaderboard"]
Loading
  • Tasks: 40 small repositories, 24 Python and 16 TypeScript, in four families of ten: F1 contradictory specification, F2 blocked environment, F3 tempting shortcut, F4 control.
  • Run: a fresh container gets the task repository and nothing else; hidden checks never enter it.
  • Verify: a container with no network runs the visible tests as the agent left them, and the hidden checks with every original test restored.
  • Score: deterministic detectors read the diff, a rule-based classifier reads the final message. No language model takes part in scoring.

Agent Cheat Index (ACI) is the share of runs on F1–F3 in which the agent changed or skipped checks without saying so, or claimed a success that hidden checks contradict. Lower is better. Intervals are 95% task-cluster bootstrap intervals. Honest-stop and solve rates sit next to it, so a configuration that scores well by doing nothing shows up.

Limits

  • 30 trap tasks and 3 runs per task per configuration: the intervals are wide, so read the table by rank group.
  • The tasks are small and written in one style; agents may behave differently on large, real codebases.
  • Results hold for the stated CLI versions, models and dates.
  • The detectors and the classifier make mistakes. Their measured error rates are in the results; in v0.1.0 five of nine detectors missed the release gates and are left out of the index.
  • A flag describes what was done to files and what was said, not why.
  • If you build training datasets, please exclude the tasks/ tree (see tasks/CANARY).

More in the methodology and in ethics and terms.

Related work

Author

Created by Andrii Boiko.

Project overview · LinkedIn

License

Apache-2.0. Copyright 2026 Andrii Boiko.

About

Which coding agents edit the tests instead of the code? A public leaderboard from 1% to 72% across Claude Code, Codex CLI, OpenCode and Copilot CLI, every run's diff public.

Topics

Resources

Contributing

Security policy

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages