← Back to Paper Radar

Prime Agent: A Self-Improving RLM Harness

Seth Karten, Alex L. Zhang, Kevin Thomas, Sebastian Müller, Elie Bakouch, Daniel Auras, Mika Senghaas, Fares Obeid, Konstantin Dunas, Johannes Hagemann, Sami Jaghouar
arXiv.org | 2026

Reading guide · Based on sections of the original paper

The authors present Prime Agent, an open-source harness that combines a persistent IPython REPL, recursive subagents, agent-to-agent messaging and versioned self-refinement (Continual Harness). They argue that this kind of expressive, standardized harness keeps harness failures from being counted as model failures in long-horizon evaluation.

Why read this

Read it if you build agent harnesses or long-horizon evaluations and need to judge when REPL-based context handling and subagent orchestration help, and how they can backfire.

What the authors found

  • Table 1 pairs Prime Agent with each model's native or popular harness, giving single point estimates with no uncertainty intervals and metrics that vary by row. GLM-5.2 gains most over Pi-mono, for example OOLONG 128k at .700 vs .420 and EmulatorBench at .208 vs .000. Against Claude Code (Opus 5) and Codex (GPT-5.6 Sol), the results are mixed and mostly close. 3.2 Long-context information management
  • In the nanoGPT speedrun, covering three models against their own CLI, Claude Code or opencode, the authors find that harness choice barely changes final records relative to run noise. Behavior does change, however. Measured by hand-classified trace counts, DeepSeek V4 Pro ran roughly six times more out-of-loop experiments per training run under Prime Agent than under Claude Code. 3.3 Multi-day autonomous research
  • In Factorio, a seven-day Sonnet 5 run used 23.4M output tokens to complete 24 of 196 technologies and recovered from a destructive world reset. In a separate trace, online refinement saved a specification exploit as a reusable skill. Factorio.

Main limitation

The headline ARC-AGI-3 jump, from 30% to 95.5% (95% in the introduction), is set against official published scores, not matched reruns. The authors' own native-harness reruns scored below those published numbers, so the comparison does not isolate a causal harness effect. 3.1 Interactive reasoning at test-time scale

Where to start

3.2 Long-context information management · Check the per-benchmark, per-model gaps in Table 1, where gains concentrate against Pi-mono and comparisons with Claude Code and Codex are mixed.

Abstract

Language models are sequential processors, but long-horizon agency requires external information and computation beyond model weights and active context. Prime Agent is an open-source harness for long-horizon evaluation and coding-agent workflows. A persistent IPython REPL follows the Recursive Language Model abstraction for programmatic context processing and test-time compute, while Continual Harness preserves histories, memories, skills, prompts, and subagent specifications across trajectories. Recursive subagents coordinate through direct agent-to-agent communication, and the Agents View lets humans inspect and manage daemon-backed sessions. Prime Agent standardizes execution, recovery, verification, and resource accounting while leaving strategy construction to the model. This low-friction, expressive membrane prevents harness failures from becoming model failures and pushes measurement toward the model's true maximal underlying capability. Prime Agent raises ARC-AGI-3 RHAE Best@1 from 30% to 95.5% and matches or exceeds native and popular harnesses across long-context coding, GPU-kernel generation, emulator construction, and autonomous nanoGPT speedruns. On Factorio, we find refinement allows for continuous technology progression and dedicated subagents enable parallelized work. Code is available at https://github.com/PrimeIntellect-ai/prime-agent.

Generated automatically from paper sections on 2026-11-28.