σ-Bench

A quantitative-finance benchmark for AI coding agents.

Léon Faro, M.Sc. Statistics

Recursive self-improvement

Dream-RSI and Harness² in brief. 2026-10-20.

Recursive self-improvement: a system improves the process by which it improves. The idea goes back to I. J. Good [3]. Dream-RSI [1] and Harness² [2] do this for AI agents without training. The model's weights stay fixed; only the code and text around the model change, as in STOP [4] and the Darwin Gödel Machine [5].

Dream-RSI
Learns how an agent spends its search budget. Google, Google DeepMind, University of Maryland, University of Virginia; September 2026.
Harness²
Learns the agent's harness: prompt, rules, memory, tools and skills. Google Cloud AI Research, Northwestern University; October 2026.

DREAM-RSI: NEW STRATEGIES, TESTED ON PAST SEARCHES

An agent that searches for better code, such as a faster GPU kernel, runs hundreds or thousands of propose-and-test cycles. Its exploration policy decides which attempts to build on, how many to run in parallel and when to stop. Testing a new policy for real means running the whole search again.

The key idea: a finished search is a tree of attempts whose scores are all stored. Another policy would walk the same tree differently: other branches, another order, an earlier stop. Its result can be read off the stored scores, without running the agent or the evaluator again. The agent "dreams" in its own history, much as a reinforcement-learning agent can learn inside a world model [6].

The Dream-RSI loop. The exploration policy and the coding agent explore online and store a discovery tree; the tree becomes a replay simulator; in the dreaming step the agent proposes new policy code, evaluates it against a pool of simulators, gets back a scaling curve and execution traces, and the best policy replaces the old one. The Dream-RSI loop, dark version of the same figure.
Fig. 1. The loop. (1) The current policy explores online and stores its discovery tree. (2) The tree becomes a replay simulator. (3) The agent writes new policy versions, tests them in the simulator pool and deploys the best one. Source: [1], Fig. 1, from github.com/zhengkid/Dream-RSI.

Each round, an agent rewrites the policy code, every version is replayed on all stored trees, and the best version, which may be the old one, runs the next search. Only the policy changes; the model, the coding agent, the evaluator and the task stay fixed. The baseline, Recursive Fixed Exploration, runs the same rounds and keeps the starting policy.

Discovery history as a replay simulator. A selected policy explores online and records a tree of attempts. Alternative policies from a policy distribution replay different parts of the same tree and each receive a score for quality, cost and latency.
Fig. 2. One recorded tree scores many policies. Each alternative policy replays a different part of it and gets a score for quality, cost and latency. Source: [1], Fig. 2, from dream-rsi.com.

Results

Four panels, VGG16, LayerNorm, ConvDiv and ConvMax: best kernel performance in 1/ms against the number of generations. Dream-RSI reaches comparable performance with 2.43 and 1.79 times fewer costs on VGG16 and LayerNorm, and a 2.09 and 1.44 times higher score at a similar budget on ConvDiv and ConvMax, compared with Recursive Fixed Exploration.
Fig. 3. GPU kernels: speed of the best kernel so far (1/ms, higher is better) against the number of generations. Blue: Dream-RSI; grey: the fixed policy. Source: [1], Fig. 3, from dream-rsi.com.

HARNESS²: A HARNESS THAT IMPROVES HARNESSES

A harness is everything around a model that lets it act as an agent. Harness² edits eight parts of it: system prompt, guardrails, memory, tool guidance, subagents, skills, scripts and plugins. It does so on tasks the harness was not built for, where no answer key exists to check an edit against.

The eight harness components around a frozen model. Context construction: system prompt, guardrails, memory and skills. Middleware: plugins that hook every tool call. Tool interface: tool guidance and scripts. Orchestration: subagents.
Fig. 4. The eight components around the frozen model, grouped by their role at run time. Source: [2], Fig. 2, from github.com/google-research/harness2 (Apache 2.0).

Two loops run on top of each other, with the model's weights fixed:

The Harness² pipeline. Task-level recursion for task t: an agent executor runs the initial harness, a harness editor proposes invariant and domain edits, candidate probes run both harnesses, and a harness composer combines them into the final harness. Harnessing-level recursion: an experience reflector reflects on the step and updates the improvement harness before moving to the next task.
Fig. 5. The pipeline. Task level (blue): run, propose, probe, compose. Harnessing level (purple): reflect, then update the improvement harness for the next task. Source: [2], Fig. 3, from github.com/google-research/harness2 (Apache 2.0).

Results

Left: WorkBuddy-Bench scores by domain for Gemini 3.5 Flash under OpenCode. Base harness, Meta-Harness and Harness² at k equal 5: code 73.4, 75.5 and 80.8; web 69.9, 75.1 and 78.3; office 74.0, 78.6 and 83.4. Right: on the code domain Harness² rises from about 76.5 at k equal 1 to 80.8 at k equal 5, above Harness Scaling and ReasoningBank.
Fig. 6. Left: WorkBuddy-Bench by domain, Gemini 3.5 Flash with the OpenCode harness; base harness, Meta-Harness and Harness² (parallel, k = 5). Right: the code domain as the budget k grows. Source: [2], Fig. 1, CC BY 4.0.

SIDE BY SIDE

Dream-RSIHarness²
Changesexploration policy (code)harness (8 components)
Feedbackstored scores, replayedcontrast between probe runs
Needs a scoreryes, a fixed evaluatorno
Carries overreplay worlds, across roundsimprovement harness, across tasks
Stays fixedmodel, agent, evaluator, taskmodel weights
Tested onkernels, Lasso, math, harnessoffice, web, code, jobs, law
Codegoogle-research/dream-rsigoogle-research/harness2

IN σ-BENCH


REFERENCES

  1. [1] T. Zheng et al. Dream-RSI: Recursive Self-Improvement through Evolving Worlds. arXiv:2609.14858, 2026. Code: github.com/google-research/dream-rsi. Project: github.com/zhengkid/Dream-RSI, dream-rsi.com.
  2. [2] R. Xu et al. Harness²: Recursive Agent Harnessing for an Open World. arXiv:2610.14224, 2026. Code: github.com/google-research/harness2. Project: harness2.github.io.
  3. [3] I. J. Good. Speculations concerning the first ultraintelligent machine. Advances in Computers 6, 1965.
  4. [4] E. Zelikman, E. Lorch, L. Mackey, A. T. Kalai. Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generation. COLM, 2024. arXiv:2310.02304.
  5. [5] J. Zhang, S. Hu, C. Lu, R. Lange, J. Clune. Darwin Gödel Machine: Open-Ended Evolution of Self-Improving Agents. ICLR, 2026. arXiv:2505.22954.
  6. [6] D. Ha, J. Schmidhuber. World Models. arXiv:1803.10122, 2018.