Continual Harness

An agent plays Pokémon Emerald with only a screen and buttons. Every few steps it rewrites its own prompt, skills and memory. On Gemini 3 Pro that cut run cost from $215 to $130.

Learn how a model builds the scaffolding around itself while it plays, with no reset and no human editor.

Press Run, then switch between the three agents and drag the refine interval. The little maze is our own toy, but the loop is the paper’s. Then we build, piece by piece, the harness, the Refiner that edits it, the results, and the training loop that follows.

You need a rough idea of what an LLM agent is (a model that picks actions in a loop). We build the rest from zero.

Based on “Continual Harness: Online Adaptation for Self-Improving Foundation Agents” by Seth Karten, Joel Zhang, Tersoo Upaa Jr, Ruirong Feng, Wenzhe Li, Chengshuai Shi, Chi Jin and Kiran Vodrahalli (Princeton University, ARISE Foundation, Google DeepMind), arXiv 2605.09998, May 2026. Reading for Lecture 4, Harness Evolution of MIT MAS.S62 How to AI an AI for (Almost) Anything. Every idea is re-taught here in our own words and devices.

Cross the maze, three ways

20 presses

The maze, the walking agent and the Refiner are our own toy, not the paper’s Pokémon setup. The agent walks toward the goal and bumps walls; after 10 presses the toy Refiner reads each window, writes the walls it saw into memory, and after three bumps in a window authors a pathfinder skill. The expert harness plans with the true map. The paper’s own numbers start in Chapter 6.

Chapter 0

Why an Agent Needs a Harness That Changes

See why a strong model still fails at a long game, and who edits the scaffolding around it

Picture a model that has never seen the game Pokémon Red. It gets a picture of the screen, a few buttons, and one instruction: win. It presses a button. The screen changes a little. It presses another. Hours pass.

The model is strong. It can write code and explain physics. Yet the PokeAgent Challenge, a benchmark built around this game, reported that frontier vision-language models make almost no progress when they get no extra scaffolding. The model is not the problem. What surrounds it is.

That surrounding layer has a name. A harness is everything between the raw model and the world: the standing instructions, the helper agents, the saved routines and the notes. Think of a harness as a workshop around a craftsman. The same craftsman works far better with the right tools on the right hooks.

Coding agents already have one

Coding agents such as Claude Code, OpenHands and OpenClaw wrap a model with tools, memory and planning. They can open files, run commands and carry notes between sessions. The authors say nothing equivalent existed for an embodied agent, an agent that acts step by step in a world it sees only in part, such as a game, a robot or an operations console.

Such a world is partially observable: the agent sees the screen, not the game’s hidden state. It cannot see what a character is thinking, or how a battle formula works. It must infer, remember and plan over thousands of steps. That is the setting of this paper.

What the team did first by hand

The team ran a project called Gemini Plays Pokémon, or GPP. People watched a live stream, read what the agent did, and rewrote its harness again and again. Over time the harness grew from a screenshot-and-buttons loop into a multi-agent system.

The results were large. The paper reports that GPP beat Pokémon Blue in May 2025, finished Pokémon Yellow Legacy on hard mode in August 2025, and completed Pokémon Crystal in November 2025. It calls GPP the first AI system to complete multiple Pokémon RPGs.

The cost was human attention. The Yellow Legacy Elite Four took many tries: 18 lifetime attempts against Lorelei, 20 against Bruno, 18 against Agatha, 19 against Lance, and a win on the fourth try against the champion. The paper notes that the retries came with ever more structured battle prompts and written memory.

The idea: remove the human from the loop

Late in GPP, something odd happened. The model itself began to write notes and rewrite its own strategy. The authors call this an early, emergent form of what they then formalise. Continual Harness is that formalisation: a loop in which the agent alternates between acting and refining its own prompt, sub-agents, skills and memory, all inside one run that never resets.

Try the picture below. It has four parts: an environment, an agent, a harness and a refiner. Only one thing changes between the three panels of the paper’s Figure 1, and that is who the refiner is.

Swap the refiner

Pick who edits the harness. The boxes and arrows stay the same. Watch which label and which arrow change.

Redrawn from the paper’s Figure 1. Panel 1 is the human-in-the-loop GPP setup, panel 2 is Continual Harness, panel 3 adds joint training of model weights.

In panel 1 a person reads the trajectory, which is the record of what the agent saw and did, and rewrites the harness. In panel 2 a model does the same job automatically, in the same episode. In panel 3 the weights of an open-source model also change, through training.

What makes this hard

Earlier methods that improve prompts, such as GEPA, run a whole episode, score it, rewrite the prompt, and then reset the environment. That works when a reset is cheap. In a long game, a reset throws away hours of progress, and the failures that appear late in the game are never reached again.

Continual Harness keeps going. It edits the harness in the middle of the run, so the failure record and its repair sit in the same trajectory. The rest of this lesson builds that claim, one mechanism at a time, until you could write the loop yourself.

The road

  1. The harness: four components, and the meta-tools that edit them.
  2. The arena: what the agent sees, what it presses, and how cost is counted.
  3. Two loops: the acting loop and the refining loop, and why no reset matters.
  4. The Refiner: four passes of create, read, update and delete.
  5. Skills and sub-agents: what the loop actually builds and repairs.
  6. Results: cost against completion on Red and Emerald.
  7. Co-learning: training an open model inside the refining harness.
  8. Evidence: ablations, transfer, and what the paper does not show.
  9. Field guide: numbers, checklist, code and credit.
What is the one thing that differs between the three panels of the paper’s Figure 1?

Chapter 1

The Harness Is Four Editable Parts

Open the scaffolding and see the prompt, helpers, skills and memory that the model reads at every step

Think of a stage manager. The actor is the model. The stage manager hands over a script, a prop table, a list of cues and a notebook before every scene. If the stage manager is good, the actor looks brilliant. If not, the same actor forgets a line.

The harness is that stage manager. The paper writes it as one object, H, made of four parts. Each part is plain text or code that the agent can read, and that the agent or the Refiner can change in place.

The four parts

The system prompt, written p, holds the standing instructions and strategy. The model reads it at every reasoning step. Example: "Before you walk, check whether a ledge blocks the path."

The sub-agents, written G, are specialist helpers that the main agent can call for one job. A battle strategist and a puzzle solver are examples. The main agent is the orchestrator: it hands off a job and takes back a result.

The skills, written K, are reusable routines. Some are text, such as a rule of thumb the model cites. Others are programs, such as a pathfinder that returns the buttons to reach a tile. Prebuilt skills ship with the harness, such as press_buttons and get_game_state.

The memory, written M, is a persistent store of facts and plans. "Brock uses an Onix at level 12; bring a grass Pokémon" is a memory entry.

One more thing is fixed: a small set of meta-tools, such as define_agent, run_code and process_memory. They are the hands that edit p, G, K and M. Because the edits happen through a tool call, the model can change its own harness the same way it presses a button.

Three harnesses to compare

The paper compares three. The minimalist harness, Hmin, has only the interface (a frame, a text map, buttons) and a generic prompt. It has no sub-agents, memory or authored skills. The expert harness, Hexpert, is hand-built: sub-agents, an A* pathfinder, a type chart, a damage calculator and curated objectives. The third, HCH, starts as Hmin and grows during the run.

One step, with its data flow

At each step the agent reads a picture, a text map, the harness and the recent history. It writes an action. The paper states it like this.

at
The action at step t: a tool call such as press_buttons([A, A, DOWN]).
M
The foundation model. Its weights stay fixed during harness refinement.
st
The observation: the frame ot and the ASCII text map mt.
Ht
The harness at step t: the tuple (p, G, K, M). The memory M here is the store, not the model.
τt
The trajectory so far: every past observation and action.

The tilde means "is drawn from". The model does not give one fixed answer; it gives a distribution and one action comes out. The key point is that Ht carries a subscript. The harness is not constant. It changes with t, and that is the whole paper.

Now a worked step on Emerald. The frame is 240 by 160 pixels, upscaled 2 times to 480 by 320 for the model. The text map shows the walkable tiles around the player. The harness text lists the prompt, the names of sub-agents and skills, and a memory overview of IDs and titles. The model replies with one tool call. One call may hold several buttons, and the paper counts each button, so [A, A, DOWN] is three presses.

Use the device to feel what each part costs. Switch parts off and watch the request shrink. The numbers are illustrative; only the structure is the paper’s.

Build one request

Each toggle adds one part of H to the text the model reads. The bar shows how the request splits between harness and everything else.

Token counts are illustrative (prompt 350, sub-agent list 140, skill list 180, memory overview 220, frame 650, text map 260, recent history 900). The paper does not report them. The structure follows its Section 2 and Appendix A.

Why edit in place?

Text and code are cheap to change. A weight update needs a training job. A prompt edit needs one tool call. That asymmetry is why the paper treats the harness as the first thing to learn, and the weights as the last.

Which statement about Ht is correct?

Chapter 2

The Arena and the Price of a Button

Meet the game the agent plays, what it sees, and how the paper counts cost

You sit in front of a tiny screen. You cannot touch the game’s memory. You see 160 by 144 pixels, you have eight buttons, and each press of A moves the world forward a little. This is the whole interface the agent gets. Before we edit a harness, we must know what it wraps.

The environments

The paper tests on Pokémon Red (Game Boy, 1996), Pokémon Crystal (Game Boy Color, 2000) and Pokémon Emerald (Game Boy Advance, 2004). All three are single-player, turn-based role-playing games. They share a long-horizon structure: walking the map, talking to characters, fighting turn-based battles, managing items, and unlocking goals such as gym badges.

The main experiments use Red and Emerald. They are in the same genre, but their maps, mechanics and difficulty differ. That gives a mild test of whether a method transfers.

What the agent sees and presses

At each step t the agent gets two things. The first is a frame ot, a picture of the screen. The emulator renders 160 by 144 pixels for Red and Crystal and 240 by 160 for Emerald, and the harness upscales it 2 times for the model. The second is a text map mt, an ASCII grid of the visible tiles.

Why add a text map? Vision-language models are weak at fine spatial reasoning over pixels. The map writes the nearby tiles as characters: a dot for a walkable tile, a hash for a wall, a question mark for something you can talk to, N for a character, and marks for ledges and the player. It is read off the game state, in the way a person reads a screen. It holds no walkthrough, no objective list and no pathfinding.

The agent answers with a button from a fixed set of eight: UP, DOWN, LEFT, RIGHT, A, B, START and SELECT. After each decision the emulator runs 120 frames, so menus, walking and battle text finish before the next look.

The world is partially observable. The agent sees only what the frame and map show. It cannot read a character’s intent or the battle formulas. Everything else it must learn and remember. That is the reason memory belongs in the harness.

How progress is measured

The paper uses the PokeAgent Challenge milestone list: a dense, ordered series of completion events, such as leaving the starting town or earning a badge. Emerald has 31 milestones through the third gym. Red has 18. A run reaches them roughly in order.

The cost metric is cumulative button presses to milestone. It counts presses, not tool calls. A call press_buttons([A, A, DOWN]) is three presses. Two reasons follow. First, an agent that batches many buttons in one call gets no free discount. Second, Hmin, which sends one button per step, becomes directly comparable to a harness that batches.

One more detail matters. The paper counts every button in a call. We count a press into a wall too, because the button was still pressed. The next device lets you feel that. It is our own miniature room, and the wall rule is our reading.

Count the presses

The grid is a text map: dot is floor, hash is wall, N is a character, @ is you. Send a call and watch the two counters. Try the long call that runs into the wall.

The room, the moves and the numbers are illustrative. The rule is the paper’s (Appendix A): the primary cost metric is cumulative button presses, not tool calls, and a press into a wall is still a press.

Notice what an expert harness can do here. It can pre-plan the path, send one call, and spend only the presses the path needs. A minimalist harness sends one button, looks, and decides again. The paper asks how much of that gap an agent can close on its own.

A worked comparison, and a failure to watch for

Take a corridor 10 tiles long. The minimalist harness sends one button per step, so it makes 10 model calls and spends 10 presses. A harness with a path skill sends one call with ten RIGHT presses. It spends 10 presses too. The press count is the same. The difference shows up in model calls, and so in dollars, which the paper reports separately.

Now the failure. The symptom is a run whose press count climbs while the milestone count stays flat. The measurement is presses per milestone: if the agent spends 3,000 presses and gains no new milestone, something loops. The fix in this method is a harness edit that breaks the loop: a rule, a skill or a memory. Chapter 4 shows who writes that edit.

An agent sends press_buttons([UP, UP, UP, A]) and the first UP walks into a wall. How many presses does the paper count?

Chapter 3

Two Loops and No Reset

Separate the loop that acts from the loop that edits, and see why skipping the reset matters

Imagine a cook learning a recipe. In one style, the cook makes the whole dish, tastes it, throws it away, edits the recipe card and starts again. In the other, the cook tastes as they go and fixes the card while the pot is still on the stove. The second cook never wastes a pot, and also sees problems that only appear at the end of cooking.

Continual Harness is the second cook. It has two loops that run at different speeds.

The inner loop: act

The inner loop is the ordinary agent step from Chapter 1. The model, wrapped by the current harness, reads the observation and the trajectory so far, then emits an action. This happens at every step t. The paper writes the observation as st = (ot, mt).

The outer loop: refine

The outer loop is harness refinement. After a warm-up of W steps, and then every F steps, a Refiner wakes up. The Refiner is a model call that reads the last F steps of trajectory, looks for failure patterns and writes edits to the harness. The edits are called Δ, and they are applied like this.

Ht
The harness the agent just used.
Ht+1
The harness the agent reads on its next step. The episode does not restart.
Δ
The edits the Refiner proposes, one set per part: prompt, sub-agents, skills, memory.
⊕
“Apply the edits.” The prompt is replaced by Δp. Sub-agents, skills and memory take create, read, update and delete operations.

The trigger is a simple clock: refine when t is at least W and (t minus W) is a multiple of F. If W is 100 and F is 100, the Refiner fires at steps 100, 200, 300 and so on. The paper does not pin one F for all runs in the text we read, so treat F as a knob.

Here is what the Refiner call looks like as data. The input is the current harness Ht plus the F most recent transitions, each holding a frame, a text map, the action and the result. The output is a list of meta-tool calls: edit_prompt, define_agent, run_code, process_memory. The Agent and the Refiner share the same model M. They use the same meta-tool API. They differ only in when they run and in what context they see.

Why reset-free is the point

Prompt-optimisation methods such as GEPA and MIPRO run a full episode, score it, rewrite the prompt p and reset. The paper names three costs of that design. It rewrites only the prompt, it must restart accumulated evidence after each update, and it cannot reach failures that appear deep in the game, because every new episode starts at the beginning.

In the reset-free loop, evidence only grows. A navigation loop seen at step 300 is still in the trajectory when the Refiner runs at step 900. The paper adds a practical point: for long-running coding agents, embodied agents and operations tasks, free resets are often costly or simply unavailable.

Use the device to see the shape of the argument. It is a toy: progress through the game, over a budget of 1,200 steps, where each harness update makes the agent a bit faster. The reset-free line keeps its position. The reset-based line goes back to zero after every episode of 300 steps.

Compare the two clocks

Warm line: reset-free, refining mid-run. Grey line: reset-based, one update per full episode. Purple ticks mark Refiner calls. Drag F and W.

100 steps
100 steps

Illustrative toy, not the paper’s data. Speed starts at 1 progress unit per step and gains 0.25 per harness update, up to 6 updates. The reset-based line uses episodes of 300 steps and one update per episode.

Two things stand out. The grey line never gets past the first part of the game, because each restart caps how far one episode reaches. And more frequent refinement helps the warm line, but each Refiner call has its own cost, which the toy does not charge. Chapter 6 shows what the paper measures.

Here is the failure to watch for in a reset-free loop. The symptom: the harness keeps growing, and the run is no faster. The measurement: count Refiner calls against milestones gained, as in the toy read-out. The fix is a longer F, so each call sees enough new evidence to be worth its cost. The paper’s Figure 3 shows that updates never stop across the Yellow Legacy run, so a frozen harness is not the goal. A useful harness is one whose edits concentrate on the few parts that matter.

Why can a reset-free loop reach late-game failures that a reset-based loop cannot?

Chapter 4

The Refiner Makes Four Passes

Follow one refinement call from a window of failures to eight concrete edits

It is step 409. The agent has been stuck near a locked gate. It pressed UP into a wall three times. A pathfinding routine it wrote earlier crashed. A menu scroll overshot three times in a row. None of this is a disaster, but all of it wastes presses. Now the Refiner wakes up.

Read first, then edit

The Refiner reads the trajectory window τt−F:t, which holds the last F steps. It looks for failure signatures, the repeatable shapes that failure takes. The paper lists four: navigation loops, tool-call failures, stalled objectives and missed exploration opportunities. A failure signature is like a pattern of footprints in mud. One footprint tells you little. Three in a row tell you someone is circling.

Then it makes four passes, one for each part of the harness. Each pass changes only its own part. This keeps every edit small and checkable.

  1. Prompt pass. Rewrite p, conditioned on the failures found and on the window. Example: add the rule "If the same tile blocks you twice, call find_path."
  2. Sub-agent pass. Create an entry for a repeated multi-step pattern. Edit an entry that fails. Delete an entry that has not been used productively.
  3. Skill pass. Turn a successful sequence into a skill. Repair code that raised an exception.
  4. Memory pass. Add entries to fill gaps. Update stale ones. Lower the importance of areas the agent has left behind.

The operations on sub-agents, skills and memory are CRUD: create, read, update, delete. The prompt is simply replaced. The word "read" matters too: the agent reads these stores on later steps, and the Refiner reads them before editing, so it does not create duplicates.

One window, worked through

The device below holds a made-up window of a few steps and a small harness. Press the button once per pass. After each pass, count what changed. The edits are illustrative, but the four-pass order and the kinds of edit are the paper’s.

Run the four passes

The log is the window the Refiner reads. Press the button to run the next pass and watch one box change. Purple marks an edit, a line through a name marks a delete.

    The window, the entries and the edits are our own illustration of the process in Section 3.2. Names like menu_navigator and walk_to are invented. The paper’s own examples include pathfinder, battle_strategist_agent and boulder_puzzle_solver.

    After the four passes the harness has eight changes: 3 creates, 4 updates and 1 delete. The next step reads the new H. If the gate bump repeats, the new prompt rule now tells the agent what to do.

    What goes in and what comes out

    Treat the Refiner as a function. Its input has three parts: the current harness Ht written out as text and code, the last F transitions, and the instruction to run the four passes. Each transition holds the frame, the text map, the action and what happened. Its output is a list of meta-tool calls, such as an edit to the prompt, a define_agent call, a run_code call that registers a skill, and process_memory calls.

    So the size of the input grows with F. A window of 100 steps holds 100 transitions. Whether the frames travel as pictures or as short text descriptions is a design choice that the text we read does not state, so we do not guess.

    One check keeps edits honest. A skill that raised an exception is visible in the window, because the error text is part of the result. The skill pass reads that error and patches the code. The next call to the skill is the test of the patch, and a later window will show whether it worked.

    Why the evidence compounds

    The paper makes a point about memory of failure. Signatures seen early stay in the trajectory, so every later pass can use them. Refinement quality therefore grows with episode length. A reset-based method starts that count again each time.

    There is a cost side. Each Refiner call is a model call, with a long input window. That is why F is a knob and not a constant. A very short F spends money on windows with nothing new in them.

    A failure to remember

    The appendix records what the process looks like when it goes wrong. During Yellow Legacy the agent spent 1,003 turns, about 3.5 hours, looping on one route near Cerulean City. It deleted its own menu tool while trying to bypass a menu problem, and the paper notes the model stayed prone to schema mismatch. The authors use it as a documented case of runtime tool generation failing and of the limits of the agent’s context horizon. The loop ended only when the agent had cycled through every Fly destination. Our reading: an outside reader of the window, such as the Refiner, could have cut that stall short. The paper does not test this.

    In the sub-agent pass, which three kinds of change can the Refiner make?

    Chapter 5

    What the Loop Builds: Skills, Sub-Agents and Memory

    Watch real code get written, broken, repaired and measured against a perfect planner

    A tool is only useful if it works. When a model writes its own pathfinder in the middle of a game, the first version is often wrong. It misses a ledge. It crashes on a map edge. The question for this chapter is simple: does the refinement loop only create things, or does it also fix them?

    What GPP agents built without being asked

    The first hand-built GPP harness for Pokémon Blue had named specialists, such as a Pathfinder Agent and a Boulder Puzzle Strategist. From Yellow Legacy on, the team removed these and gave the model general meta-tools: define_agent, run_code and notepad edits. The model then built its own harness.

    The paper lists three behaviours nobody asked for. The model turned a sandbox loophole called autopress_buttons into a general press_sequence primitive. It developed named multi-stage battle plans, including one called "Operation Zombie Phoenix" for the final Red fight in Crystal. And it wrote an explicit truth table for the Goldenrod Underground switch puzzle in its notepad.

    The harness never settles

    Figure 3 counts create, update and delete operations on skills and sub-agents over the Yellow Legacy run. Two facts come out of it. Updates continue across the whole run, so the harness never freezes into a fixed scaffold. And a small group of components takes most of the updates: pathfinder, gem_pathfinder_v2, battle_strategist_agent, find_path and boulder_puzzle_solver are the five most updated.

    Figure 4 follows one of them, the battle_strategist_agent prompt, through its revisions in the Elite Four phase. The authors measure total nodes, decision gates, depth and maximum fan-out of the decision graph the prompt describes. The prompt grows, then is simplified, then grows again. At one point it is rewritten so that per-decision logic moves into a master_battle_agent that dispatches to named sub-checks. The paper is careful: these figures show process. Quality is established separately by the completion record.

    A skill with a measuring stick

    How do you know a self-written skill is getting better? The paper uses an outside ruler. For each trip between two milestones it computes the best possible path length over all tiles any run has seen on that map. The appendix uses a breadth-first search; Figure 8 names the oracle Dijkstra, and on a grid of equal steps the two agree. The path-cost deficit is the agent’s presses on that trip divided by the best length, minus one. Dialogue and battle presses are filtered out, so only walking is judged.

    Figure 8 reports this for the top 10% of evolved navigation skills (Gemini 3.1 Pro) on warp-to-warp trips where greedy hopping fails. Over a 24-hour run the from-scratch deficit falls from near half-cost at the start to single digits early on, and stays there. Hmin never calls a navigation skill. Every Continual Harness condition makes hundreds of calls.

    The device below is a toy of that ruler. A skill walks the best path it believes in. When the path hits a wall it did not know, it bumps, learns the wall and replans. Slide how many walls it already knows and watch the deficit.

    Measure the deficit

    Green line: the best path. Warm line: what the skill walked. Red crosses: bumps into walls it did not know. Blue outlines: walls it knows.

    0

    A toy of the paper’s metric, on our own maze, not its Pokémon maps. Deficit is presses divided by the best path length, minus one. In the paper (Figure 8) the from-scratch deficit starts near half-cost and falls to single digits.

    Repair, triage and forgetting

    The appendix tracks every skill that was updated at least once. For each it compares the rolling success rate just before and just after the update. The finding: the repairs on skills the agent really depends on are large, and they happen in the same episode as the failure. The failure record and its fix sit side by side.

    The same appendix shows a hard truth. Most authored skills are never called. A small working set takes the bulk of calls, and fewer still ever succeed. The paper calls this a create-and-forget tail. The loop triages: it repairs what the agent leans on, tolerates regressions on what it ignores, and accepts a long tail of unused code.

    The refined library also leans toward breadth-first and A* wrappers. Saved presses on walking are the clearest local signal the Refiner sees. That has a side effect. Inside gyms, where dialogue and puzzle state matter more than walking, the library helps less. The expert harness keeps its edge there.

    Sub-agents buy a narrow context

    A sub-agent works in a short, focused context and then returns control. The paper measures approximate input tokens per step by role. The sub-agent curve sits about an order of magnitude below the orchestrator curve, which is the saving from partitioning context. Return behaviour is also scored. Clean returns and on-task recovery sit near the top for navigation, dialogue and menu tasks.

    What does the path-cost deficit in the paper’s Figure 8 measure?

    Chapter 6

    Results: Cost Against Completion

    Read the paper’s two main figures and see where self-refinement pays and where it does not

    You are choosing between two cooks. One is cheap and finishes most dishes. The other costs more but finishes them all. A single score cannot decide this. You need to see cost and completion together. That is what the paper’s Pareto plot does.

    The setup in one paragraph

    The paper compares four harness conditions. Hmin is the minimalist baseline. Hexpert is the hand-built PokeAgent and GPP harness. Continual Harness runs in three variants: from scratch (start from Hmin), bootstrap frozen (load the harness from a successful earlier run and turn refinement off) and bootstrap updating (load it and keep refining). Each is run on three Gemini 3 models, Pro, Flash and Flash-Lite, with at least three seeds. Medians are reported, with single seeds drawn faintly.

    Figure 5: milestones against presses

    Figure 5 plots milestones reached against cumulative button presses. Red uses an 11-milestone subset through the Thunder Badge. Emerald uses 9 milestones through the Knuckle Badge, the second gym, with the axis cut at 8,500 presses. On both games Continual Harness cuts the press cost of every monitored milestone relative to Hmin and recovers a majority of the gap to Hexpert. It does this without the game decompilation, the milestone schedule or any of the expert sub-agents.

    The leftover gap sits in dialogue-heavy gym interiors and multi-turn battle strategy. Those are the parts Chapter 5 showed the loop does not yet build well.

    Figure 6: the Pareto plane

    Figure 6 puts every Emerald run on one plane. The y axis is the fraction of the 31-milestone Emerald set that the run reached. The x axis is API spend in dollars on a log scale, with cached input billed at 25%. Each marker is a 24-hour seed run. A Pareto frontier is the staircase of runs that nothing beats on both axes at once. A point is Pareto-dominant over another if it is both cheaper and further along.

    To feel what a dollar means, use the list prices in the figure: Pro costs $1.25 per million input tokens and $10.00 per million output tokens. Suppose a toy stretch reads 1 million tokens and writes 100,000. The bill is 1.25 plus 1.00, or $2.25. A 24-hour run uses far more, which is why cost differences of tens of dollars matter.

    Pick a model in the device. The points are the numbers the paper states in its text.

    Read the Pareto plane

    Higher is more of the 31 Emerald milestones. Further left is cheaper. Grey is the minimal harness, purple is Continual Harness. Choose a model.

    Values are the medians and ranges the paper states in Section 4.3 (Figure 6). It gives no cost for the Flash-Lite Continual Harness runs beyond “comparable or higher”, so that range is drawn as a band at the minimal-harness cost. Bootstrap variants on Pro are drawn as the 96 to 100% by $110 to $140 box.

    What the plane says

    ModelMinimal harnessContinual HarnessVerdict
    Gemini 3 Pro98% at $215100% at $130 (scratch)Pareto-dominant, about 40% cheaper
    Gemini 3 Flash77% at $3080% at $42 (bootstrap updating)High variance, marginal gain
    Gemini 3 Flash-Lite20% at $113 to 13%Below the capability floor

    The pattern is clear. The gain grows with the model. The paper’s explanation is plain: the harness gain requires a model that uses the harness components properly. Our guess at the mechanism: a weak model writes broken skills and ignores them, so the Refiner spends money on edits that do not help. The authors call the point where this breaks a capability floor.

    Flash shows the other face. Bootstrap-updating reaches 80% at $42, and the minimal harness 77% at $30. The gain is 3 points of completion. The price is $12 more, and $42 divided by $30 is 1.4, so the run costs 40% more. The paper calls Flash high-variance: the from-scratch and bootstrap-frozen runs spread widely across seeds.

    How should you read a spread? The symptom is a single median that looks good. The measurement is the faint per-seed traces: if one seed finishes and another stalls, the median hides the risk. The fix is more seeds, and a model strong enough that the loop is stable. The paper uses at least three seeds, which is a small number, so treat the Flash result as a hint, not a verdict.

    Pro’s numbers deserve one more look: 100% completion at a median of $130, against 98% at $215. That is about a 40% cost cut with no loss. The two bootstrap variants on Pro land at 96 to 100% for $110 to $140.

    On Gemini 3 Pro, from-scratch Continual Harness reaches 100% of Emerald milestones at a $130 median, and the minimal harness 98% at $215. What does this show?

    Chapter 7

    Co-Learning: Training the Model Inside the Harness

    Follow one training iteration from a rollout to a relabeled shard and a weight update

    So far the model was fixed and only the harness changed. Frontier models cost real money, though. Could a small open model learn to play inside the same refining harness? That is the second half of the paper. It adds a second loop of change, this time in the weights.

    The students and the teacher

    The student is an open model from the Gemma-4 family: E2B, E4B, a 26B mixture-of-experts and a 31B dense model. The live loop runs on Pokémon Red and starts from the 26B model after its supervised warm-up. The teacher is Gemini 3.1 Pro. The student plays. The teacher marks the weak parts and shows what it would have done.

    Warm-up before the live loop

    The student cannot start cold. Two warm-up stages come first, and the paper is plain that neither moves the game forward on its own.

    Supervised fine-tuning (SFT) teaches the student to copy the teacher. Each example holds a screenshot, the harness prompt and the teacher’s answer, taken from Gemini 3.1 Pro Continual Harness play. Training uses LoRA, which trains small add-on matrices instead of all weights, with rank 256, alpha 256, an 8K-token context and learning rate 2×10−5, for one pass.

    Offline GRPO then sharpens it. For each teacher-visited state, the student writes G = 4 candidate answers. A Gemini 3 Flash judge scores each by a composite: action correctness with weight 0.6 and format compliance with weight 0.4. GRPO turns those scores into advantages by comparing each answer with its own group.

    Ai
    The advantage of answer i: how much better it is than its siblings. Positive means push the model toward it.
    ri
    The judge’s score for answer i: 0.6 for a correct action plus 0.4 for correct format.
    mean(r)
    The average score of the 4 answers for this state.
    std(r)
    Their spread. Dividing by it puts every state on the same scale.

    Worked example with made-up scores. The four answers score 1.0, 0.6, 0.4 and 0.0. The mean is 0.5. The deviations are +0.5, +0.1, −0.1 and −0.5, and their squares add to 0.52, so the standard deviation is the square root of 0.13, or 0.361. The advantages are +1.39, +0.28, −0.28 and −1.39. The right-and-well-formed answer is pushed up the most. The paper adds a KL penalty of 0.04 against the SFT model, 8 states per step and 590 steps, with learning rate 10−6.

    The online loop: DAgger plus a process reward

    Now the live loop. DAgger is an old trick for imitation learning. The student drives and visits whatever states it actually reaches. An expert then supplies the right action in those states. This fixes a classic problem: a student trained only on the expert’s path never learns to recover from its own mistakes.

    One iteration goes like this.

    1. Rollout. The student plays K = 256 steps inside the full live Continual Harness. Memory, skills, sub-agents and the prompt keep evolving as in Chapter 4.
    2. Score. A process reward model (PRM) scores each step along the way, not just the end. A Gemini 3 Flash PRM scores windows with stride 8. The reward mixes four parts.
    3. Relabel. Windows with low reward go to Gemini 3.1 Pro, which rewrites the action it would have taken.
    4. Update. A soft SFT update on the relabeled shard produces the next weights: 3 epochs at learning rate 5×10−6.
    5. Carry on. The emulator state at the end of iteration k is the start of iteration k+1.
    R
    The reward of one window, between 0 and 1. The paper writes it R(st, at, τ).
    cprogress
    Did the trajectory move toward the next milestone? Weight 0.4.
    caction
    Was the action correct for the situation? Weight 0.3.
    creason
    Was the stated reasoning sound? Weight 0.2.
    cformat
    Did the model emit a valid tool call? Weight 0.1.

    Why a teacher and not self-scoring? A student that marks its own homework repeats its own errors. The paper says the same model could serve both roles in principle, but the Gemma-4 models it tried, up to 31B, are not yet strong enough to teach themselves.

    Play with the threshold below. The 256-step rollout is split into 32 windows. A made-up reward profile has a stuck stretch in the middle.

    Pick the windows to relabel

    Each bar is the reward of one 8-step window. Bars below the line go to the teacher. Change the weights to see which windows move.

    0.50

    Illustrative. The four component scores per window are generated for this toy, not taken from the paper. The weights (0.4, 0.3, 0.2, 0.1), K = 256 and stride 8 are from Appendix D.1. The paper does not state the relabel threshold in the text we read.

    Because the harness keeps changing, the data distribution depends on both sets of changes. The model’s actions shape what the Refiner sees. The new harness shapes what the model sees next. The paper’s phrase is that the two co-adapt.

    Why does the online loop send low-reward windows to a teacher before the weight update?

    Chapter 8

    Evidence, Ablations and Limits

    Separate what the data shows from what the abstract hopes, and see where the paper disagrees with itself

    A good reader asks of every claim: what was measured, against what, and how many times? This chapter goes through the evidence in that spirit. Some of it is strong. Some of it is thin. The paper is fairly open about both, and we will quote where it is.

    Claim 1: humans refining a harness completed three games

    This evidence is a record, not an experiment. GPP finished Blue, Yellow Legacy on hard mode, and Crystal without a lost end-game battle. Table 1 in the appendix shows how long the Yellow Elite Four took: 18, 20, 18 and 19 lifetime attempts against the first four trainers, then a win on attempt 4 against the champion. It supports the idea that harness refinement works. It does not isolate which edit mattered, and it mixes human and agent edits.

    Claim 2: self-refinement recovers most of the expert gap

    This is Figure 5 and Figure 6, covered in Chapter 6. The strongest result is Pro on Emerald. Two limits apply. The Emerald plot ends at the second gym and the Red subset ends at the Thunder Badge, so no run is judged on the full game. And the gap is not closed everywhere: dialogue-heavy gyms and multi-turn battles stay behind the expert harness.

    The appendix also traces where the gain comes from. It reports that skills carry most of the difference between Hmin and HCH (our text extraction cuts that sentence short, so we do not quote more). It also shows that most authored memory entries are never read. The reference rate stays low in absolute terms, and the authors say they report that honestly.

    Claim 3: a harness from an earlier run helps

    The bootstrap variants load the final skills, sub-agents and memory of a good earlier run. On Emerald they track from-scratch closely. On Red the paper tells two stories. The main text says bootstrap-updating is more efficient than from-scratch at every milestone. The appendix says the Red bootstrap-updating curve drifts below from-scratch, and then below Hmin, in step with a collapse of sub-agent use that begins near step 213. New sub-agents overtook inherited ones before they had been repaired.

    Read these together. Reuse helps only while the agent keeps using what it inherited. The authors point to a reuse prior or a sub-agent deletion policy as the next step. We cannot settle the two statements from the text, so treat the Red bootstrap result as unresolved.

    Claim 4: the model can learn inside the harness

    Figure 7 plots the milestone index reached on Pokémon Red against training iteration k for five runs that advanced. Some start from the beginning of the game and some from a mid-game checkpoint. The labels read +3, +3, +5, +4 and +2 net objectives. The untrained Gemma-4 baseline advances by zero. Each curve is one agent, played across its own training, and never reset.

    There is a control. Qwen3.5 (27B and 35B) without the supervised warm-up writes parseable tool calls but cannot leave the starting area. That rules out a bug in the rollout code as the cause. Another note from the appendix: the smaller Gemma-4 sizes reach low SFT loss but collapse to tool_format = 0 under the real, long harness prompt, and 31B did worse than 26B on most Emerald metrics.

    Compare the two kinds of evidence in the device. They are very different in size and in kind.

    Weigh the evidence

    Choose a piece of evidence and read the bars. Then ask what was held constant, and how many runs there are.

    Table 1 values are the lifetime attempt totals for the Yellow Legacy Elite Four. Figure 7 values are the net objective gains printed on its five advancing runs, in the order the figure labels them. The paper does not say which label belongs to which run in the text we read.

    Limits: four from the paper, one from us

    Which statement is best supported by the evidence in this chapter?

    Chapter 9

    Field Guide: The Whole Paper on One Page

    Keep the numbers, the terms, the loop as code, and the places to go next

    Continual Harness treats the scaffolding around a model as something the model edits while it plays. An agent starts from a screen, a text map and eight buttons. Every F steps after a warm-up, a Refiner reads the recent window and edits the prompt, sub-agents, skills and memory. The environment is never reset. On Gemini 3 Pro this recovers most of the gap to an expert harness at about 40% lower cost. A second loop then trains an open model inside the same harness. Each piece is below, in the form you would need to rebuild it.

    The numbers

    WhatValueWhere
    GPP completionsBlue (May 2025), Yellow Legacy hard (Aug 2025), Crystal (Nov 2025)Section 4.2
    Observationframe (160x144 Red and Crystal, 240x160 Emerald, upscaled 2x) plus ASCII text mapAppendix A
    Buttons and frames per step8 buttons, 120 framesAppendix A
    MilestonesEmerald 31, Red 18, both through the third gymAppendix A
    Cost metriccumulative button presses to milestoneSection 4.1
    Pro on Emeraldscratch 100% at $130 against minimal 98% at $215Figure 6
    Flash on Emeraldbootstrap updating 80% at $42 against minimal 77% at $30Figure 6
    Flash-Lite on Emeraldminimal 20% at $11; Continual Harness 3 to 13%Figure 6
    SFTLoRA r = 256, alpha = 256, 8K context, lr 2e-5, one passD.1
    Offline GRPOG = 4, reward 0.6 action + 0.4 format, lr 1e-6, KL 0.04, 590 stepsD.1
    Online iterationK = 256 steps, stride 8, soft SFT 3 epochs at 5e-6D.1, D.4
    PRM weightsprogress 0.4, action 0.3, reasoning 0.2, format 0.1D.1
    Co-learning gains+3, +3, +5, +4, +2 on five runs; baseline 0Figure 7

    The terms

    TermPlain meaning
    Harness H = (p, G, K, M)The prompt, sub-agents, skills and memory around the model.
    Meta-toolsTools like define_agent, run_code and process_memory that edit the harness.
    Inner loop and outer loopActing at every step; refining every F steps after W.
    Reset-freeThe environment keeps going between harness updates.
    RefinerThe model call that reads a window and edits H through four passes.
    Bootstrap frozen and updatingStart from an earlier run’s harness, with refinement off or on.
    DAgger, PRM, soft SFTTeacher relabels the student’s own states; a process reward picks which; a light SFT update follows.

    Check yourself

    Tick what you could explain to a friend without looking back. The count is only for you.

    Can you rebuild it?

    Press each idea you can explain from memory. Lit ideas count toward the total.

    Your own tally. Nothing is sent anywhere.

    The core as code

    This is the paper’s loop in a few lines of Python-style pseudocode. Names like Harness, context and refiner_prompt are ours; the structure is Sections 3.1 to 3.3.

    pythondef continual_harness(env, model, T, W, F):
        H = Harness.minimal()                  # p, G, K, M: generic prompt, nothing else
        s, traj = env.reset(), []               # the one and only reset
        for t in range(1, T + 1):
            a = model(context(s, H, traj))      # frame + text map + H + history -> tool call
            s, info = env.step(a)               # 120 frames per decision
            traj.append((s, a, info))
            if t >= W and (t - W) % F == 0:   # the outer loop
                delta = model(refiner_prompt(H, traj[-F:]))   # four passes: p, G, K, M
                H = apply(H, delta)             # p replaced; G, K, M take create/update/delete
        return H, traj
    
    def co_learn(student, teacher, prm, env, iters, K=256):
        for k in range(iters):
            H, traj = rollout(student, env, K)           # inside a live-refining harness
            r = prm.score(traj, stride=8)               # .4 progress .3 action .2 reasoning .1 format
            shard = [(w, teacher.relabel(w)) for w in windows(traj, 8) if r[w] < TAU]  # TAU: not stated in the text we read
            student = soft_sft(student, shard, epochs=3, lr=5e-6)  # LoRA
            env.load(env.save())                         # keep the state: iteration k+1 starts here

    Keep going

    Credit: the work is by Seth Karten, Joel Zhang, Tersoo Upaa Jr, Ruirong Feng, Wenzhe Li, Chengshuai Shi, Chi Jin and Kiran Vodrahalli, from Princeton University, the ARISE Foundation and Google DeepMind. Read the original at arXiv 2605.09998 and see their project page. Every figure here is redrawn or re-created by us, and all toy numbers are labelled.

    The takeaway. A harness is text and code that a strong enough model can edit while it works. Keep the world running, let a Refiner read the last F steps, repair what the agent actually uses, and the same model plays for less. Below a capability floor the same loop only adds noise.
    You want to reproduce the paper’s core result on a new task. What must your loop have?

    Now press Present or Teach and explain the whole loop from memory: the four parts of the harness, what the Refiner reads and writes, why nothing resets, and what the Pro, Flash and Flash-Lite results say. Then go back to the maze at the top, set the refine interval to 10 and to 80, and explain what each Refiner call buys.

    Continual Harness: Online Adaptation for Self-Improving Foundation Agents
    Read the paper · Project page · Lecture 4, Harness Evolution · Back to Gleams