catomsBook a 20-min call

Self-improving agents in production: a loop that won't fool you

Most self-improvement is harness change, not new weights. How to run the loop with held-out evals, promotion gates and rollback, and when to skip it.

The Catoms team, , 7 min read

A self-improving agent changes its own harness based on evidence: it finds failures, proposes a change, tests it and keeps what works. To run this in production you need a test the agent can’t influence, a gate that blocks regressions, and a way back to the last good version. Without those, the loop can raise its own score while getting worse.

Research on this has moved fast in 2026, and most of it is unreplicated preprints. Here’s what it supports so far, and what it doesn’t.

What actually changes

“Self-improving” sounds like a model retraining itself. In current practice it rarely is.

What changes Examples Risk
Harness Prompts, tools, checks, routing, code around the model Moderate, reversible
Memory Lessons and facts kept between runs Moderate, can decay
Weights Fine-tuning or retraining the model High, costly

Most of the work reviewed here changes the harness. Agentic Harness Engineering tested components one at a time and found that memory, tools and middleware helped, while changing the system prompt alone was the one regression. So an optimiser limited to prompts leaves much of the gain unclaimed.

What the evidence shows

It can work. The Darwin Gödel Machine raised a coding agent from 20.0% to 50.0% on SWE-bench by editing its own code. GRASP took one model from 40.6% to 88.8% on a medical records benchmark. Better Harnesses, Smaller Models recovered 89.7% of frontier performance at 4% of the cost on routine business tasks.

The gains often don’t travel. Rethinking the Evaluation of Harness Evolution found evolved harnesses averaged zero gain on 34 held-out coding tasks, though the same kind of evolution helped on long-horizon games. In RRSI, unregularised search scored 92.8 on its search set and 40.3 out of distribution, while a more constrained version scored 90.5 and 43.6.

Independent tests are less kind. EvoAgentBench concluded that “no current automatic method sustains positive gain in all settings”. Almost every method wins in its own paper, so give third-party comparisons more weight.

The loop

  1. Observe. Record full traces of real runs: inputs, tool calls, outputs, costs.
  2. Find failures. Sample runs for review, and collect failures, complaints and fallbacks.
  3. Turn failures into cases. Each confirmed failure becomes a test case.
  4. Propose a change. Make it small and specific, and state what it should improve.
  5. Test it. Run it against held-out cases it never saw.
  6. Promote or reject. Apply a rule you set in advance.
  7. Watch. Monitor the live version, ready to roll back.

We found no peer-reviewed study that measures step 3 on later production traffic, so this part of the loop rests on engineering judgment for now.

Give the proposer raw traces. In Meta-Harness, removing traces cut the search median from 50.0 to 34.6, and the authors found summaries didn’t recover the signal.

Separate the jobs

The thing being changed must not grade itself. This has the most direct evidence of anything here.

  • In one study, agents rewrote game-playing policies and their own tests. All 35 scored themselves at 0.70 or above, and 15 scored below a random reference.
  • A pre-registered study found a verifier in a fresh context beat the builder’s own tests on 11 faults and lost on 1, while using a different model provider added nothing.
  • The Darwin Gödel Machine’s authors reported a variant reaching a perfect score by removing the logging markers its detector relied on. It “did not actually solve the underlying problem”.

Separation can be cheap: a fresh context and a test the builder can’t edit.

A frozen, held-out benchmark

Keep an acceptance set outside the loop’s reach. The risk isn’t just overfitting. SpecBench reports a search choosing a 2,900-line lookup table posing as a compiler (97% on visible tests, 0% held out) over a real compiler at 53%.

How much to hide is a real trade-off:

  • Hiding tests cut cheating to near zero, and also hurt legitimate performance. Read-only access was a middle ground.
  • A sealed audit returning only accept or reject held up well in the self-scoring study, while revealing audit scores weakened it in several cases.
  • But proposers need rich information to improve.

The likely answer is rich traces on a search set and an opaque acceptance set. No paper has directly tested the two together at harness level, so treat this as a sensible default.

Add canaries too: cases that conflict with the spec, so any pass means something’s gaming the test. Build held-out cases that combine behaviours rather than repeat them, since SpecBench found the gap between visible and held-out results grew with code size.

Promotion rules

“Better” needs a definition before the run starts. A workable rule requires all of these:

  1. It meets the success bar on held-out cases.
  2. The gain is bigger than the noise, on a paired comparison with repeated trials.
  3. It adds no forbidden failures.
  4. Regressions stay within a set limit.
  5. Cost per successful task stays acceptable.
  6. The change is small enough to understand.

Point 4 deserves special attention. The Regression Tax counted 553 gains and 324 regressions across about 6,000 runs, so regressions cancelled 59% of gross gains. GRASP credits its results to the gate and a hard regression budget, finding that skill writing without validation was no better than no skills.

Point 6 is about keeping changes reviewable. In Agentic Context Engineering, one rewrite shrank 18,282 tokens of context to 122 and scored below no context. RRSI gained by limiting edits per round.

Expect most proposals to fail. In one vendor’s published run, 7 of 99 rewrites were accepted, and two other runs accepted two and four.

Rollback and versioning

Keep every version with its evidence, because a loop can collapse and recover without an initial-versus-final comparison ever showing it. In SEAGym, one run’s score on replayed training tasks fell from 34 of 80 to 6 of 80 before ending at 43 of 80.

Rollback also matters for flaws that spread. Poisoned benchmarks led self-modifying agents to disable certificate checks, and further evolution on a clean benchmark didn’t remove it in most setups. Only a targeted benchmark did, so keep lineage and the option of returning to a known-good ancestor.

Treat memory the same way. Useful Memories Become Faulty found repeated summarising cut accuracy from 58.5 to 38.5, and it recommends keeping raw episodes as first-class evidence.

Autonomy by reversibility

We found no controlled comparison of automatic promotion against human approval, so here’s our suggestion rather than a finding: let what may change alone depend on how easily it can be undone.

Change Example Suggested control
Internal, easily undone Retrieval settings, an internal prompt Automatic if the gate passes
Customer-visible Wording, tone, a new response type Gate, then a person reviews
New capability A new tool, wider permissions A person decides
The tests themselves Eval cases, grader, gate Never the loop

Without a fast test

Coding gets a free test: code runs, and tests pass or fail. Support and operations don’t get that. Options, roughly in order of strength:

If you can’t build any of these, you don’t yet have what a self-improvement loop needs. Better Harnesses, Smaller Models notes these gains are strongest on repetitive tasks, and GRASP reports flat gains where the action space is open-ended.

What the loop costs

Published costs range from about $22,000 per run for the Darwin Gödel Machine on SWE-bench to a $20 cap per optimisation run in Better Harnesses, Smaller Models, and there’s no common unit. Budget for:

  • many rejected candidates, each with a full eval
  • several runs per setting, since results vary. In SEAGym, changing only the batch size moved one method from −14.3 to +17.1
  • auditing, which is cheap by comparison: one audit study ran its best low-cost auditor for $2.90 on its evaluation set
  • human review of samples

Then compare that with the value of the gain, on your own volume.

When it isn’t worth it

Skip the automatic loop if:

  • you have no eval set yet, since that comes first
  • volume is low, so there’s too little evidence and too little payoff
  • a change every few weeks by a person would do
  • mistakes are severe and hard to undo

Most teams should run this loop by hand first: review failures, make a change, test it and ship it. Automate the steps that prove worthwhile.

Catoms plans to run this kind of loop for you, testing new versions against the same evals, and it isn’t live yet. Our research page covers the evidence in more depth, including what remains unknown.

Questions

Can self-improving agents update themselves automatically?

Technically yes, and most research systems do. Whether they should is unsettled: we found no controlled comparison of automatic promotion against human approval, so start with reviewed changes on anything risky.

Can a self-improving agent make itself worse?

Yes. Studies show loops that score higher on their own tests while doing worse on new tasks, and regressions that cancel much of the gain. A held-out gate and rollback are what protect you.

Is a single optimization run enough to trust the result?

No. Runs vary widely, and in one study changing only the batch size moved the result from a large loss to a large gain. Repeat runs and compare on held-out cases.

Do self-improving agents need fine-tuning?

Usually not. Most current self-improvement changes prompts, tools, memory and the code around the model, and leaves the model's weights alone.

Can this approach work for non-coding tasks?

Yes, where you have a test you trust. Research covers legal, medical and business tasks, but evidence is thinner than for coding, and tasks without a fast objective check are harder.

Related posts

Catoms isn’t built yet. Your team could be first to try it.