The CodeWheel framework

What is judged cannot touch what judges it.

CodeWheel is an open framework for AI coding agents. An agent may change your code, your tools, even its own setup. It may not change the thing that decides whether the change was good.

  • One rule
  • Open-source tools
  • No model does the judging
  • Each tool stands alone

One rule, kept in three places

The agent works. Something it cannot reach decides.

An agent that can edit the test will, sooner or later, pass by editing the test. Not out of bad intent. It works on what it can reach. So the judge has to sit where the agent's hands do not go.

When an agent uses your tools

The server's own policy decides what a call may do.

The agent cannot reach its own permissions, its limits or its audit log.

Kept by MCP Tools

When an agent changes your code

A gate measures before and after. No model does the judging.

The agent cannot reach the tests, the graders or the rules of the check.

Kept by PromptWheel and Sawbuck

When an agent improves itself, try after try

A keep step holds each try against the best so far.

The agent cannot reach the record of tries, the number to beat or the gate.

Kept by PromptWheel's loop

The tools

Five tools. Use one, or all of them.

There is nothing to install called CodeWheel. The framework is the rule, and these are the tools that keep it. Each one does one job and works without the others.

Open source, on npm

PromptWheel

It says whether a change made a number better, by measuring before and after.

About PromptWheel

Part of PromptWheel

PromptWheel's loop

It tries changes one at a time and keeps only the ones that measure better.

About PromptWheel's loop

Open source, on npm

Sawbuck

It checks that a passing test was earned, not gamed.

About Sawbuck

Open source

Logbook

It turns a repo's git history into memory an agent can use.

About Logbook

Open source, a Drupal module

MCP Tools

An AI agent can run a Drupal site through tools, inside rules you set.

About MCP Tools

What our own runs found

We run it on our own work first. Here is what came out.

Small samples, said as they are. Every number has its count and its date on the findings page, with what it does not show.

0 of ~2,300

merged pull requests by coding agents showed confirmed test-gaming. Up to 1 in 5 were merged with no human involved.

Read the study

9 of 16

tries by an agent to fix a set of tools were kept. On tasks it never saw, passes went from 62 of 88 to 81 and 85.

See the run

1 gain taken back

The biggest gain in that run was not real. A check read what a tool had stored, and the stored rule did not work.

What we changed

61 failed runs

read one at a time. 9 came from one line of code. 9 came from our own test client's words.

See the causes

Rules that came from runs

Twenty rules. Each one cost us a wrong number first.

  1. No model as the judge.
  2. Everything the agent can write is a goalpost it could move.
  3. A pass is not a win. A change that moves nothing is not kept.
  4. Hold a change against what it replaces on the same runs, and never keep it on one look.
  5. A check asks what the task is for, the way a user would meet it.
  6. Name a failure by its cause, and count the causes, before anyone works on it.

Read all twenty

From the blog

Latest on agents, evals and what they get wrong

Jul 10, 2026

Agents Rarely Cheat. Humans Rarely Check.

I checked ~2,300 merged PRs written by coding agents. Confirmed test-gaming: zero. PRs merged with no human involved at all: up to 1 in 5. The problem is not dishonest agents. It is missing referees.

Read article

Jul 10, 2026

I Built a Reward Function That Graded Itself A+++++

Post-mortem of my 2025 attempt to train a custom model: a 24-line reward function you can max by echoing four keywords, and the AI self-audit that declared it production-ready.

Read article

Jul 8, 2026

Claude Code on an iPad: What Actually Works

Every stack the guides recommend - Termius, mosh, tmux mouse mode, Remote Control - fails on iPad for structural reasons. Here's the tested setup that finally works, and the tmux version gotcha nobody documents.

Read article

The studio

Want it in your repo? CodeWheel builds it with you.

CodeWheel is also a software studio. The same engineer who wrote the tools designs and builds AI software for your team, with the rule built in from the first day.

See all services