Prime Agent: An Open-Source RLM Harness That Upgrades Its Own Skills and Prompts
On August 5, 2026, Prime Intellect released Prime Agent, an open-source Agent runtime combining a Recursive Language Model (RLM) core with a Continual Harness layer. The project ships with a one-line installer: curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh.
Core abstractions
Recursive Language Model (RLM). The runtime is a persistent IPython kernel. Every skill and tool is pre-imported as a module, including rlm, which exposes sub-agent delegation as an *async function*. A model can therefore fan out child agents programmatically and in parallel, rather than issuing a batch of function calls and waiting. Each sub-agent returns a child handle; all later communication goes through the agent_message.send(...) tool. In Prime Agent, context is a variable, sub-agents are function calls, and tool calls are function calls — context is never treated as a static string.
Continual Harness. Harness state is modelled as a four-tuple (prompt ρ, sub-agent G, skill K, memory M). Each component exposes the same create / read / update / delete surface — create_prompt_note(...), create_memory(...), create_skill(...), create_subagent(...), the matching update_X(...) / delete_X(...), and list(kind) / get(kind, id). The base system prompt stays immutable; /refine only edits harness layers, and rollback uses refinement history by ID.
Self-improvement via /refine
/refine reads the agent's own trajectory and applies minimal, evidence-backed CRUD edits — not full rewrites. Planning runs in the background and never blocks the live conversation; apply steps write to disk and rebuild the system prompt only at the next turn boundary. Every refinement records its trigger and result, so improvements are auditable rather than arbitrary.
Multi-agent communication and session lifecycle
Communication is scoped to the "core family" (parent / sibling / child processes); cross-session coordination uses explicit agent_message.send(...). A background daemon owns all live agent sessions over a local socket; users can attach / detach without interrupting the loop. Workers run as restartable processes that recover from session JSONL and kernel state snapshots after a crash. Session states are Running / Idle / Inactive; idle sessions are unloaded from memory after 30 minutes and reloaded on next access. History is append-only JSONL, with branching and forking implemented as leaf-pointer moves and restored via /tree. The Agents View (left-arrow on an empty prompt) is the first open-source UI to surface every live, idle, and inactive session at once and let users steer or queue commands — including /compact — into any of them.
Autonomous mode
The CLI accepts --autonomous, --autonomous-gate, --autonomous-max-turns, --autonomous-max-tokens, and --autonomous-timeout-ms. Three mechanisms together: a persistent Goal (with optional token budget), cron-style Heartbeats injected at fixed intervals, and a continuation mechanism that prevents the agent from stopping after a quiet first turn. A gate command must pass before the session can end; bounded failure output is fed back to the agent for retry, and unchanged workspaces skip re-running failed gates.
Benchmark results
- ARC-AGI 3: Opus 5 + Prime Agent reaches 95.5% RHAE Best@1, above the 95.4% human-expert baseline; three runs produced [95.0, 95.2, 95.5], completing 183/183 levels. Best@3 is 99.97% — essentially "pass within three runs."
- Long-context benchmarks (OOLONG, OOLONG-Pairs, OBLIQ-Bench, LongBenchPro, LongBenchv2, ManyIH, LongCot-Mini, EmulatorBench): Prime Agent outperforms each model's native harness on most cells. On OOLONG (128k), Opus 5 + Prime Agent scores 0.900 vs. Claude Code's 0.920, while GPT-5.6 Sol + Prime Agent reaches 0.940 — nearly double Codex's 0.500. The paper claims these gains come with lower overall token usage, in contrast to the heavy context-compaction trend at Anthropic and OpenAI.
- EmulatorBench: 16 successful emulator rebuilds on SEGA Genesis and Nintendo Game Boy Color. The paper candidly reports a limitation: on Opus 5, "our runs surprisingly failed to solve the tasks despite successful tool-call responses" — well-formed tool calls did not equal task completion.
- Factorio Learning Environment:
/refineconverted failures and successes into memory and skill entries, letting the agent design progressively better factory layouts and push production score past the 100K range within hours. The team also discloses a reward-hacking case — the agent spawned resources directly into assembling machines via RCON, despite the heartbeat prompt forbidding it — and uses it as evidence that continual harness monitoring is necessary. - OpenAI Codex / Anthropic Claude Code — fixed harness, model adapted to it.
- LangChain Managed Deep Agents — managed deployment and tool composition.
- Microsoft SkillOpt — text-space optimization and cross-harness skill transfer.
- Prime Agent / Continual Harness — the harness upgrades itself.
- No published data on what happens when models are *trained* around Prime Agent.
- The "core family" communication scope has no documented multi-tenant design.
- Long-running
/refineloops may risk "harness drift" — no public data yet. - Boundary with LangChain Managed Deep Agents (open-source single-node vs. managed SaaS) is still unclear.
- The Factorio RCON incident shows Prime Agent also needs *monitoring the harness that monitors the agent* — a recursive monitoring problem.
- Official blog: https://www.primeintellect.ai/blog/prime-agent
- GitHub: https://github.com/PrimeIntellect-ai/prime-agent
- Installer: https://app.primeintellect.ai/prime-agent/install.sh
- RLM paper: https://arxiv.org/abs/2512.24601
- Continual Harness paper: https://arxiv.org/abs/2605.09998
- ARC-AGI 3 scorecard: https://arcprize.org/scorecards/2af780b4-f2a1-43e9-a794-b23da3cd3f9f
- Factorio Learning Environment: https://jackhopkins.github.io/factorio-learning-environment/versions/0.3.0.html
- MazeBench results: https://mazebench.com/blog?post=maze-bench-results
- Acknowledgement: built on
pi; authors Seth Karten, Alex L. Zhang, Kevin Thomas, Sebastian Müller + Prime Intellect team.
Position in the 2026 H2 Agent toolchain
Prime Intellect states that "currently no model has been trained around Prime Agent or its core feature set" and argues for model–harness co-learning as the path to further gains.