All papersAI agents and tools
Give the harness optimizer a memory of its own edits
Paper: Self-Improvement Memory Enables Continual Recursive Self-Improvement
Xin Yu, Fei Xia, Jiaqi Pan, Youbao Tang, Chengzhi Liu, Adams Yu, Sicong Jiang, Yanfei Chen, Lingzhou Xue, Ting Yu · arXiv preprint (Google Cloud AI, Google DeepMind, Penn State) · Posted · 14 min read · arXiv 2611.18856
- An AI agent is a model plus a harness.
- The harness handles context, tools and run flow.
- Tools can improve the harness by themselves.
- Then the model or data changes. The new harness may do worse.
- The code alone does not say why an edit was made.
2.36points higher on average with memory, across 10 independent coding runs.
- The authors added a memory of edits, reasons and results.
- They tested 4 domains: coding, text, workspace tasks and engineering.
- They moved to new data and to new models.
- Full memory finished highest in all 6 new-data tests.
- It also won in all 4 Opus-to-Gemini tests.
- It won 9 of 10 paired coding runs (p = 0.003).
- Keeping only root causes gave mixed results.
Full memory finishes highest on new dataFrom Table 5Cold StartHarness TransferProblem-Only MemoryFull SIM
Hover, tap or focus a bar to read its exact value.
| Domain and seed | Cold Start (score) | Harness Transfer (score) | Problem-Only Memory (score) | Full SIM (score) |
|---|
| Coding AHE | 19.39 | 20.61 | 18.79 | 24.85 |
| Coding Terminus-2 | 18.18 | 19.39 | 20.61 | 21.82 |
| Text FewShotAll | 75.92 | 74.12 | 75.52 | 77.92 |
| Workspace | 82.98 | 85.07 | 85.54 | 87.89 |
| Engineering | 40.87 | 42.61 | 42.61 | 46.96 |
- Only coding has repeated runs. Other domains have one run per condition.
- Both models and benchmarks must share a compatible harness interface.
- A self-editing harness could game an evaluator.
Jump to
Every detail from the paper
Cards follow the paper's own order. Dotted words link to Words to know. Numbers match the paper.
The problem
- Harness optimization is often studied with a fixed model and benchmark.
- When either changes, the optimizer must pick what to reuse or revise.
- It must choose among the parts of the evolved harness.
- The harness alone may not show why earlier edits were made or how they did.
The idea
- The authors study Continual Recursive Self-Improvement (CRSI).
- It continues existing harness-optimization methods across compatible benchmarks or models.
- They propose Self-Improvement Memory (SIM) for the harness optimizer.
- It is not for the task-solving model.
- SIM groups edits by recurring harness problem.
- It records rationale, predicted and observed outcomes, and evaluation context.
- New attempts extend this history as optimization continues.
The results
- Across four domains, SIM finishes higher than harness-only and root-cause-only continuation.
- This holds in cross-dataset and pairwise cross-model comparisons.
- Across ten independent source runs in coding, SIM adds 2.36 points on average.
- The baseline is harness-only continuation.
- The paired test gives p = 0.003.
Policy and harness
- An LLM agent depends on its policy model and on its harness.
- The harness manages context, tools and execution.
- Improving the harness can raise performance without changing model weights.
- Finding useful changes by hand takes repeated engineering and testing.
- Recursive self-improvement (RSI) automates this.
- It uses execution feedback to propose, test and select harness edits again and again.
Challenge 1: a new model
- Model change comes in two forms.
- In multi-model serving, one shared harness serves different policy models.
- In model evolution, new versions replace older ones in a family.
- Both call for reuse of the evolved harness and its history.
- But edits that suit one policy can act differently on another.
- In the workspace test, the Opus-evolved harness starts at 68.41 on Gemini.
- The seed harness scores 73.89 there.
- The optimizer must decide which inherited parts still help.
Challenge 2: new data
- With the policy fixed, new tasks can expose new failures.
- A completion gate may check that commands ran.
- On new tasks it may need to check that a feasible solution is also optimal.
- In the text test, the source-evolved FewShotAll harness starts at 72.92 on the target suite.
- The seed starts at 75.72.
- A useful source fix may need changes before it helps the target.
The missing history
- The evolved harness alone leaves questions open.
- Why was an edit proposed? What was it meant to fix? What happened in testing?
- Source optimization makes this evidence, but it does not travel with the harness.
- Without it, the target run may repeat old attempts or change parts blindly.
- So the authors ask if source experience can help adapt to new models or data.
What SIM does
- CRSI continues harness optimization after a benchmark or model change.
- It needs a compatible executable interface.
- SIM carries improvement experience beside the evolved harness.
- It groups edits by the problems they address.
- The proposer and selector can read rationale, predicted and observed outcomes and context.
- SIM adds entries for new problems and appends outcomes to old ones.
- This helps decide which edits to retain, revise, replace or remove.
Contributions
- 1. Continual harness optimization.
- Cross-dataset runs fix the policy. Cross-model runs fix the benchmark and split.
- Existing methods keep their own proposal, evaluation and selection steps.
- 2. Self-Improvement Memory. A structured record of problems, edits and outcomes.
- It guides both proposal and selection.
- 3. Controlled evidence in four domains. Starting harnesses, rounds and budgets match.
- Full SIM beats harness-only and root-cause-only continuation in six cross-dataset and four Opus-to-Gemini settings.
- In ten independent coding runs, SIM wins 9 of 10.
- The mean edge is 2.36 points (p = 0.003).
One round of the loop with SIMFrom Figure 2- CodeRun harness on evolve tasks
- Collect scores, traces, errors
- ModelProposer reads SIM, edits
- ModelSelector screens and picks
- SIM records edit and outcome
Held-out tests stay outside the loop.
3.1 Problem formulation
Harness RSI
- Following Meta-Harness, the authors tune an executable harness H around a fixed policy model M.
- The harness sets the model's context, tools and execution flow.
- A setting is a model plus a task set, with separate evolve and held-out sets.
- The score follows the benchmark's own aggregation rule.
- Only evolve-set feedback can propose edits, pick candidates, update SIM or decide when to stop.
One run
- A run has N rounds.
- In each round the evaluator runs the harness on the evolve set.
- It returns scores, traces and errors.
- The proposer uses that feedback and the run history to write k candidate harnesses.
- The selector screens proposals before they run.
- It then picks among the tested candidates.
- It weighs performance, complexity, domain specificity and regression risk.
- If no candidate is accepted, the harness stays the same.
- The proposer and selector are LLM harness engineers. M is the model that runs tasks.
Continual setting
- After source RSI, optimization resumes from the final retained harness in a new setting.
- In cross-dataset CRSI, the benchmark changes and the policy stays fixed.
- In cross-model CRSI, the policy changes on the same benchmark and split.
- Both need a shared executable harness interface.
- Target improvement is the final score minus the starting score.
3.2 Self-Improvement Memory
- SIM groups edits by the recurring harness problem they address.
- Take a root-cause idea such as premature completion.
- Its entry holds the cause and a list of attempts in order.
- Each attempt stores the edit and its rationale.
- It also stores predicted and observed task outcomes.
- It also stores provenance: domain, benchmark, policy and round.
- Predictions of which tasks an edit will fix are logged before testing and checked after.
- Each round the proposer gets the whole SIM in its system prompt.
- The selector reads the same record.
- Both read all entries with no retrieval or truncation.
Updating the memory
- Each proposal cites an existing root cause or names a new one.
- After selection, only the chosen candidate is recorded.
- Its measured outcomes are kept.
- This holds even if it regresses or misses a predicted fix.
- The update adds the record to the cited problem or makes a new entry.
- Earlier attempts stay.
- If no edit is accepted, memory stays the same.
- Entries with identical root-cause text merge with histories kept.
3.3 Continual RSI via SIM
- Source RSI starts with an empty SIM.
- It yields the source harness and the source model.
- Full SIM carries both into target optimization.
- The proposer and selector use each edit's rationale, outcome and context.
- They judge if an edit still applies to the current failures.
- They can retain, revise, replace or remove harness edits.
- Earlier memory records stay.
The four conditions comparedFrom Section 3.3- Cold Start: seed harness only
- Harness Transfer: evolved harness only
- Problem-Only: harness plus root causes
- Full SIM: harness plus full record
The last three share one starting harness.
Transfer conditions
- Cold Start uses the seed harness and no memory.
- Harness Transfer uses the evolved harness and no memory.
- Problem-Only Memory adds root causes only.
- Full SIM adds the full record.
- All four use the same target policy, tasks and budgets.
- Each keeps its memory condition through the whole target run.
- They keep the ordinary target-run history.
- Source history enters only through SIM.
The four questions
- Does SIM help continued RSI after a benchmark or model change?
- Does the full record help beyond root causes alone?
- How does SIM guide reuse and revision of inherited edits?
- Is the benefit steady across independently evolved source harnesses?
4.1 Experimental setup
Domains
- Four domains keep the evolved harness runnable on the target.
- Coding: Terminal-Bench 2.1 (TB2.1) to Terminal-Bench 4 (TB4). Containerized shell tasks with their own tests.
- Text classification: the Meta-Harness online environment, from a three-dataset suite to an eight-dataset suite.
- Agentic workspace: Harvey LAB to the equal-weight mean of JobBench, GDPval and APEX-Agents.
- Gemini 3.8 Flash judges the workspace tasks.
- Engineering design: EngDesign to Frontier-Eng, scored by frozen verifiers.
- Tasks split at random into evolve and held-out halves of about equal size.
- Only evolve-set scores and traces reach the proposer, selector and SIM.
- Main comparisons use five rollouts per task.
Transitions, models and budgets
- Cross-dataset runs use Gemini 3.8 Flash as the policy in both stages.
- Cross-model runs use Claude Opus 5.5 for source RSI.
- Then Gemini 3.8 Flash continues on the same benchmark.
- Policy weights stay frozen.
- Gemini 3.8 Flash is also the proposer and selector in the main runs.
- An ablation uses Claude Opus 5.5 in those roles.
- It gains more on both coding seeds.
- Seeds: the minimal AHE seed and Terminus-2 for coding.
- NoMemory and FewShotAll for text classification.
- A ReAct agent over an MCP tool gateway for workspace and engineering.
- Every run uses N = 10 rounds and k = 5 candidates per round.
- Proposals rejected before running get no score.
Metrics
- Scores run from 0 to 100 with two decimals.
- Coding uses pass@1. Text uses accuracy pooled over examples.
- Workspace uses benchmark-specific rubric, win-rate and pass@1 scores.
- Engineering uses pass rate or medal score.
- Before and after scores test the starting and final retained harness on the held-out set.
- Except the paired study, each condition is one complete RSI run.
- So five rollouts per task estimate run performance, not optimizer variance.
- The ten-pair coding study checks variation across independent source runs.
4.2 Cross-dataset CRSI
Full SIM wins in every cross-dataset setting shownFrom Table 5Cold StartHarness TransferProblem-Only MemoryFull SIM
Hover, tap or focus a bar to read its exact value.
| Domain and seed | Cold Start (score) | Harness Transfer (score) | Problem-Only Memory (score) | Full SIM (score) |
|---|
| Coding AHE | 19.39 | 20.61 | 18.79 | 24.85 |
| Coding Terminus-2 | 18.18 | 19.39 | 20.61 | 21.82 |
| Text FewShotAll | 75.92 | 74.12 | 75.52 | 77.92 |
| Workspace | 82.98 | 85.07 | 85.54 | 87.89 |
| Engineering | 40.87 | 42.61 | 42.61 | 46.96 |
SIM improves final scores in all six transitions
- The comparison continues from the same evolved harness.
- It uses no SIM, root causes only or the full record.
- Full SIM finishes highest in all six settings.
- It beats Harness Transfer by 2.43 to 4.35 points.
- It beats Problem-Only Memory by 0.20 to 6.06 points.
- Problem-Only Memory is mixed.
- It ranges from 1.82 points below Harness Transfer to 2.40 above.
- So edit history and test evidence help beyond the diagnosis alone.
- The margin over the best alternative runs from 0.20 on NoMemory to 4.35 on engineering.
A better source does not mean a better start
- Source RSI raises held-out source scores by 2.75 to 6.41 points in all six settings.
- Yet the FewShotAll harness starts target RSI below the seed: 72.92 versus 75.72.
- Harness-only continuation reaches 74.12. Cold Start reaches 75.92.
- Full SIM reaches 77.92.
- On NoMemory, Cold Start gains more than Full SIM (3.40 versus 2.20 points).
- But it finishes lower (72.00 versus 73.60).
- So the authors report both endpoints.
- They use Harness Transfer as the direct control, since it shares Full SIM's start.
| Domain and seed | Cold Start | Harness Transfer | Full SIM |
|---|
| Coding / AHE (before, after) | 16.36, 19.39 | 18.18, 20.61 | 18.18, 24.85 |
| Coding / Terminus-2 | 18.18, 19.39 | 19.39, 18.79 | 19.39, 21.82 |
| Text / NoMemory | 68.60, 72.00 | 71.40, 71.00 | 71.40, 73.60 |
| Text / FewShotAll | 75.72, 75.92 | 72.92, 74.12 | 72.92, 77.92 |
| Workspace / ReAct | 73.89, 82.98 | 74.93, 85.07 | 74.93, 87.89 |
| Engineering / ReAct | 39.13, 40.87 | 39.13, 42.61 | 39.13, 46.96 |
Table 5: cross-dataset held-out scores, before and after target RSI
Problem-Only Memory after scores: 19.39 (AHE), 20.61 (Terminus-2), 73.40 (NoMemory), 75.52 (FewShotAll), 85.54 (workspace), 42.61 (engineering).
4.3 Cross-model CRSI
4.3.1 Harness transfer across model families
- The Opus-evolved harness first run on Gemini scores below Gemini's seed in every domain.
- The gaps run from 0.60 points in text classification to 5.48 in workspace.
- Target RSI does not always fix this.
- Harness Transfer still ends below Cold Start in three domains.
- Full SIM ends highest in all four.
- It beats harness-only continuation by 3.60 to 11.33 points.
- It also finishes above Problem-Only Memory in all four.
- In workspace both begin at 68.41.
- Full SIM reaches 84.75 while Harness Transfer reaches 73.42.
From the same Opus harness, full memory ends highestFrom Table 6Cold StartHarness TransferProblem-Only MemoryFull SIM
Hover, tap or focus a bar to read its exact value.
| Domain | Cold Start (score) | Harness Transfer (score) | Problem-Only Memory (score) | Full SIM (score) |
|---|
| Coding AHE | 19.39 | 18.18 | 20.61 | 21.82 |
| Workspace | 82.98 | 73.42 | 79.22 | 84.75 |
| Engineering | 40.87 | 42.61 | 46.96 | 50.43 |
4.3.2 Improvement across model generations
- The chain carries the harness and SIM through successive Gemini models on TB2.1.
- Fresh RSI starts from the seed at each generation.
- In the first generation both use the same seed.
- That tests SIM in an initial run.
- Continuation beats fresh RSI in two of three later generations.
- The gain is 3.5 points on Gemini 3.5 Flash and 1.6 on Gemini 3.8 Flash.
- It finishes 0.8 points lower on Gemini 4 Argon.
Continuing across generations beats fresh runs in two of threeFrom Table 1SeedFresh RSICRSI
Hover, tap or focus a bar to read its exact value.
| Gemini model | Seed (%) | Fresh RSI (%) | CRSI (%) |
|---|
| 2.5 Flash | 17.8 | 21.4 | 22.4 |
| 3.5 Flash | 70.2 | 73.3 | 76.8 |
| 3.8 Flash | 87.2 | 88.9 | 90.5 |
| 4 Argon | 89.7 | 95.6 | 94.8 |
4.3.3 One harness for multiple models
- Can one harness serve Grok, Opus and Gemini on the text target suite?
- The team compares sequential CRSI, unified synthesis and transfer of separately evolved harnesses.
- Unified synthesis scores 75.24 on held-out examples. Separately evolved harnesses score 75.20.
- The shared seed scores 73.28.
- Sequential CRSI scores 74.20.
- The three S3 harnesses average 66.84 to 72.24 across the evaluation models.
- This is descriptive. It tests a common harness, not the full SIM procedure.
| Harness construction | Evolve | Held-out | All |
|---|
| B1: Per-model harnesses | 77.40 | 75.20 | 76.30 |
| B2: Shared seed | 72.36 | 73.28 | 72.82 |
| S1: Sequential CRSI | 76.72 | 74.20 | 75.46 |
| S2: Unified synthesis | 78.92 | 75.24 | 77.08 |
| S3: evolved with Gemini 3.8 Flash | 74.28 | 71.24 | 72.76 |
| S3: evolved with Grok 4.20 Reasoning | 68.24 | 66.84 | 67.54 |
| S3: evolved with Claude Opus 5.5 | 75.20 | 72.24 | 73.72 |
Table 2: text scores averaged over Grok 4.20 Reasoning, Claude Opus 5.5 and Gemini 3.8 Flash
All is the mean of the equally sized evolve and held-out splits.
4.4 Analysis: the role of SIM
Ten independent source runs
- The authors repeat source RSI ten times from Terminus-2 on TB2.1.
- From each result they start two ten-round TB4 runs.
- Start harness, policy, benchmark and budgets match within a pair.
- One run inherits that source run's SIM. The other has no SIM.
- The unit of study is the independent source run.
- SIM ends higher in 9 of 10 pairs.
- One pair favors no SIM by 0.61 points.
- The shared mean start is 18.36.
- The mean final score is 21.70 with SIM and 19.33 without.
- The mean paired gain is 2.36 points, with a 95% interval of [1.05, 3.68].
- A paired t test gives t(9) = 4.06 and p = 0.003.
- A signed-rank check gives p = 0.006. The effect size dz is 1.28.
| Run | No SIM | SIM | Change |
|---|
| 1 | 20.61 | 22.42 | +1.81 |
| 2 | 17.58 | 19.39 | +1.81 |
| 3 | 20.00 | 20.61 | +0.61 |
| 4 | 18.18 | 23.64 | +5.46 |
| 5 | 18.79 | 20.61 | +1.82 |
| 6 | 20.00 | 23.64 | +3.64 |
| 7 | 20.00 | 21.82 | +1.82 |
| 8 | 20.00 | 19.39 | -0.61 |
| 9 | 18.18 | 23.03 | +4.85 |
| 10 | 20.00 | 22.42 | +2.42 |
| Mean | 19.33 | 21.70 | +2.36 |
Table 3: paired coding continuations, final held-out TB4 score
Start scores of the evolved harnesses by run: 18.18, 16.97, 17.58, 18.18, 17.58, 19.39, 18.79, 18.18, 19.39 and 19.39.
SIM guides reuse and revision
- Full SIM and Harness Transfer inherit the same completion gate from Terminus-2 source RSI.
- With SIM, the proposer uses the gate's reason and source outcomes.
- It keeps completion checks and adds target checks such as feasibility versus optimality.
- Without SIM, the run tightens the gate and twice repairs completion deadlocks.
- It also credits the inherited gate to its own first round.
- So the need carries over. The implementation needs revision.
SIM keeps diagnoses and adds evidence
- Problem P3 records a mismatch between deliverables and the verifier's interface contract.
- Target rounds 5 and 6 add revised checks and measured outcomes under this diagnosis.
- Source attempts and open predictions stay available to later rounds.
Earlier progress and source retention in coding
- Full SIM is best or tied across rounds 1 to 10 for both coding seeds.
- It passes the best control's final score of 20.61 by round 5 from AHE.
- From Terminus-2 it does so by round 2.
- In the AHE retention trace, all transfer conditions start at 90.22 on held-out TB2.1.
- Full SIM loses 3 successful rollouts out of 225.
- Problem-Only Memory loses 4 and Harness Transfer loses 6.
- Full SIM gains more on TB4 than Problem-Only Memory: 6.67 versus 0.61 points.
Conclusion
- CRSI continues harness optimization when the benchmark or model changes.
- SIM carries earlier diagnoses, edits and outcomes into that process and records new attempts.
- From matched starts, Full SIM beats harness-only continuation in all six cross-dataset settings.
- It also wins in four Opus-to-Gemini domains.
- The ten-pair coding study finds a mean edge of 2.36 points.
- The cases show how history helps reuse old reasoning while revising fixes for new needs.
Limitations
- Independent repeats focus on coding because of the compute budget.
- Other domains have one run per condition.
- The study uses settings with compatible harness interfaces.
- The optimizer's planning and search steps stay fixed.
- The test judges SIM as a whole: inherited memory plus updates in the target run.
- Future work can add more repeats and longer chains of transitions.
- It can also adapt planning, token use and tool interfaces.
Ethics statement
- LLM agents rewrite harness code in these tests.
- Harnesses run in the benchmarks' own environments with fixed policy weights.
- Frozen verifiers or a fixed judging process score them.
- A self-modifying harness could satisfy an evaluator without solving the task.
- The authors keep held-out feedback from the optimizers.
- They name each benchmark's verifier or judge.
- They include an accepted edit that failed to fix its target tasks.
- Workspace scores may reflect bias in the LLM judge.
- All benchmarks and datasets are public.
A.1 How harnesses are improved
- Harness RSI tunes prompts, tools, control flow, memory and context management.
- GEPA uses trajectory reflection and recombination for prompts.
- Meta-Harness shows earlier code, traces and scores through a shared filesystem.
- AHE makes harness parts and edit outcomes observable and checks edit-level predictions.
- Self-Harness mixes weakness mining, proposals and regression-based checks.
- DGM and Hyperagents explore self-modification and open-ended evolution.
- Harness-R1 learns to edit harnesses with reinforcement learning.
- SIA updates both the harness and the model weights.
- SIM keeps edit histories for the proposer and selector.
A.2 How optimization continues after transfer
- AHE tests transfer from Terminal-Bench to SWE-bench Verified without re-evolving.
- Meta-Harness and PluginRSI report transfer across solver models.
- ModularRSI, RRSI and Harmony Harness aim to improve transfer.
- Model-harness interaction can still need model-specific adaptation.
- PluginRSI reuses an evolved plugin library from the initial harness.
- Harness2 keeps adopted harnesses and lessons in a library.
- Adaptive Auto-Harness splits a persistent workspace from deployable harnesses.
- EvoHarnessBench studies retention and adaptation as tools and agents grow.
- Held-out tests and matched budgets help tell gains from extra resources.
- SEAGym tracks validation, transfer, replay and cost.
- The authors report before and after scores and track source retention in one coding transition.
A.3 What memory stores, and who uses it
- Other work stores memory for harness optimization or for task solving.
- SIM sits in continual harness optimization.
- It is read by the optimizer, not the task solver.
B.1 Benchmarks
- Coding runs from Terminal-Bench 2.1 to Terminal-Bench 4.
- Text source suite: LawBench, Gretel Symptom2Disease and USPTO50k.
- Text target suite has eight sets not used in source RSI.
- They are AG News, GoEmotions, Banking77, Financial PhraseBank, SciCite, TweetEval-Hate, Amazon Reviews and SciTail.
- Workspace source is Harvey LAB. Targets are JobBench, GDPval and APEX-Agents.
- Engineering runs from EngDesign to Frontier-Eng.
- In cross-model runs the benchmark and split are fixed and only the policy changes.
B.2 How the splits are used
- Tasks split at random into about equal evolve and held-out halves, with no stratification.
- With an odd count, the evolve half takes the even count.
- No task is dropped from the scoring denominator after the split.
- Only evolve-set data reaches proposals, selection, SIM updates and stopping.
- Held-out scores and traces never reach the optimization agents.
- Scoring uses five rollouts per task on both splits.
B.3 to B.6 Scoring by domain
- Coding: pass@1 from the binary outcome of each rollout.
- Rollouts that fail for infrastructure reasons stay in the denominator.
- Text: accuracy over all examples in a split. Each example has equal weight.
- The harness controls example storage, retrieval and prediction context.
- Held-out labels never feed back into its example memory.
- Workspace: Gemini 3.8 Flash judges all benchmarks.
- Harvey LAB uses the share of rubric items met. JobBench uses a weighted rubric score.
- GDPval reports win rate against the expert deliverable. APEX-Agents reports pass@1.
- The three workspace targets get equal weight, one third each.
- Engineering: EngDesign uses a binary pass. Frontier-Eng uses a medal score.
- Gold, silver and bronze map to 1.00, 0.67 and 0.33.
- A part of Frontier-Eng overlaps EngDesign. It has seven sub-problems.
- It gets zero credit but stays in the denominator.
C.1 Models and budgets
- Gemini 3.8 Flash is the policy in both stages of cross-dataset CRSI.
- The cross-family test uses Claude Opus 5.5 as source and Gemini 3.8 Flash as target.
- The proposer and selector use Gemini 3.8 Flash, even when Opus runs the tasks.
- Each run has N = 10 rounds and k = 5 candidates per round.
- A coding round takes about 4 h.
- That includes 1.7 h for evaluation and 34 min for candidate sampling.
- Rounds and candidate counts match across methods.
C.2 Seed harnesses
- The AHE seed starts with a basic shell tool.
- It allows edits to prompts, tools, middleware, skills, sub-agents and memory.
- Terminus-2 ships with Harbor.
- NoMemory stores no training examples. FewShotAll stores labeled examples as few-shot context.
- The ReAct agent handles files, PDFs and code.
- Its 6 files (1,743 lines) serve source and all three workspace targets.
- The engineering seed has 7 files (1,857 lines).
C.3 How the four methods differ
- Cold Start: the seed harness, no SIM.
- Harness Transfer: the source-evolved harness.
- Problem-Only Memory: the same harness with root causes only.
- It leaves out edits, outcomes and provenance.
- Full SIM: the same harness with the full source record, updated during target RSI.
- All keep the ordinary target-run history and the same budgets.
C.4 How runs are reported and repeated
- Each round keeps one harness for the next.
- Curves show each retained version's measured score with no running maximum.
- Each main condition uses one complete RSI run.
- The paired study repeats source RSI ten times from Terminus-2.
- Each result starts two continuations, with and without SIM.
- Task rollouts show execution performance. The ten source runs support across-run intervals.
- The paired t interval and test use the ten final-score gaps.
C.5 and C.6 Generations and a shared harness
- The generation chain runs on TB2.1.
- It covers Gemini 2.5 Flash, 3.5 Flash, 3.8 Flash and 4 Argon.
- Published reference scores: 16.9 for Gemini 2.5 Flash with Terminus-2 on TB2.0.
- Also 76.2 and 89.4 on TB2.1 for Gemini 3.5 and 3.8 Flash.
- These are external references, not matched controls.
- The shared-harness test uses Grok 4.20 Reasoning, Claude Opus 5.5 and Gemini 3.8 Flash.
- Evolve and held-out sets each hold 500 examples, with five rollouts per example.
- B1 uses a harness per model. B2 uses a shared seed.
- S1 is sequential CRSI from Grok, to Gemini, to Opus.
- S2 pools feedback from all three models each round.
- S3 evolves a harness with one model and tests it on all three.
- Each procedure runs once, so small gaps do not show a ranking.
D.1 Matching entries
- The proposer decides if a diagnosis matches an existing root cause.
- No separate similarity model is used.
- Its choice is saved in the round's change manifest before testing.
- Entries merge when root-cause text is identical.
D.2 How the proposer and selector use SIM
- 1. Treat entries as past experience. A different edit is allowed.
- 2. Check the domain, benchmark and model of each entry.
- 3. Start with an existing diagnosis when it explains the failure.
- 4. Reuse the reason. Reassess the edit after a change.
- 5. Revise, replace or override an edit when new evidence supports it.
- 6. Revisit a tested direction only with new evidence.
- 7. Make a new problem entry when no diagnosis fits.
- 8. Weigh task-specific evidence more in similar settings.
- Weigh it less when both benchmark and model change.
D.3 What a SIM record holds
- Each run stores SIM in one JSON file.
- Each problem entry has an id, a name and a root-cause hypothesis.
- It also has the round it was opened.
- Each attempt stores the round, sample, accepted flag and what changed.
- It stores the files, the predicted fixes, the tasks fixed and missed, and pass counts.
- Accepted means the selector chose the edit, even if some predicted fixes failed.
- Aliases keep the ids of merged entries.
E.1 Source RSI improves the seed
- Source RSI raises the held-out source score in all six settings.
- The gain is 2.75 to 6.41 points.
- In five settings the held-out gain beats the evolve-set gain.
- FewShotAll is the exception, with 6.41 and 6.60 points.
E.2 Target comparison (Table 6)
- Table 6 lists the cross-model scores behind Figure 4.
- The Terminus-2 Cold Start counterpart scores 18.18 before and 19.39 after.
| Domain | Cold Start | Harness Transfer | Full SIM |
|---|
| Coding / AHE | 16.36, 19.39 | 13.94, 18.18 | 13.94, 21.82 |
| Text / FewShotAll | 78.32, 82.72 | 77.72, 80.20 | 77.72, 83.80 |
| Workspace / ReAct | 73.89, 82.98 | 68.41, 73.42 | 68.41, 84.75 |
| Engineering / ReAct | 39.13, 40.87 | 34.78, 42.61 | 34.78, 50.43 |
Table 6: Opus to Gemini, before and after target RSI
Problem-Only Memory after scores: 20.61, 81.32, 79.22 and 46.96.
E.3 Source performance retained
- Full SIM and Problem-Only Memory end at 88.89 and 88.44 from a start of 90.22.
- Their lowest source score is 88.44, a drop of 1.78 points.
- Harness Transfer falls to 86.67 in round 2 and ends at 87.56.
- Cold Start begins at 85.78 and ends at 85.33.
- The two memory conditions keep similar source performance.
- Full SIM gains more on TB4.
E.4 Ablations
- From the same evolved harness, Full SIM finishes above the other memory options.
- This holds in all ten settings.
- Table 7 swaps Gemini 3.8 Flash for Claude Opus 5.5.
- Opus acts as proposer and selector in TB2.1 source RSI.
- Opus scores higher.
- The held-out margin is 1.06 points for AHE and 0.05 for Terminus-2.
- This tests the optimization agents, not the model transitions.
- The cases show edit histories.
- They do not estimate each edit's share of the final score.
- F.1 source RSI: two coding tasks, adaptive-rejection-sampler and gpt2-codegolf.
- The fixes cover unreliable command transport and fragile tool-call parsing.
- F.2 CRSI: completion control moves from TB2.1 to TB4.
- F.3 compares continuations with and without SIM.
- F.4 shows new evidence added to problem P3.
- F.5 covers what transfers across datasets and models in the four domains.
- F.6 lists lessons for SIM.
- Earlier reasons help decide what to keep.
- A good reason can need a different implementation.
- New outcomes add evidence to an existing diagnosis.
- Experience stays available after an edit is replaced.
Coverage note
- This page covers the main body in full.
- Appendices A to F are summarized. Case-study details are not copied.
Words to know
- CRSI: Continual Recursive Self-Improvement: keep improving an agent after a model or data change.
- Harness: The code around a model that sets context, tools and run flow.
- Recursive self-improvement: A loop where an AI proposes, tests and keeps its own edits.
- SIM: Self-Improvement Memory: a record of edits, reasons and results.
Ask AI about this paper
Stuck on a word or an idea? Ask in plain words. The answer comes from the write-up on this page.
Jump to