Prime Intellect has open-sourced Prime Agent, a coding harness that runs in a persistent IPython kernel and treats sub-agents as simple function calls. The project is MIT-licensed and reports 95.5% accuracy on ARC-AGI-3, edging the reported human expert baseline of 95.4% when using the Opus 5 model.
In this article
Deployability
Installation requires a single command on Linux or macOS. The software connects to subscription logins for Codex and Claude Pro/Max, API keys from Anthropic, OpenAI, Google, Groq, Fireworks, Prime Inference, and others. It also supports Azure OpenAI, Amazon Bedrock, and self-hosted endpoints via vLLM, Ollama, or LM Studio. Running an open-weights model like GLM-5.2 allows code to stay within a private network.
Prime Intellect notes that worker and kernel processes do not provide a security sandbox. Mid-size to large engineering teams and AI labs that already use isolated CI containers are the best fit. Solo developers can install it, but the main payoff comes from multi-hour tasks. Suitable industries include developer tooling, semiconductor and HPC teams writing GPU kernels, simulation and gaming, quantitative research, and AI research labs.
Applications range from overnight refactors behind a test gate to spec-driven builds from scratch. Other uses include kernel optimization, long-horizon agent evaluation, and autoresearch.
Core architecture
The system relies on two abstractions. The Recursive Language Model treats context as a variable and sub-agent delegation as function calls inside a REPL. The Continual Harness treats prompts, sub-agents, skills, and memory as state that the agent can create, read, update, and delete from its own trajectory. Both papers list Prime Agent authors. The text user interface is built on the pi library.
Models in Prime Agent receive one tool: a persistent IPython kernel. Skills, tools, and sub-agents are pre-imported modules inside it. Calling rlm("sub-task") launches a child session with its own model, kernel, and history. The call returns at admission rather than blocking execution. Results arrive through agent_message.send(...).
A background daemon owns every live session. Users can detach and reattach without stopping the loop. If a worker crashes, it recovers from the session JSONL plus a kernel snapshot.
Agent-to-agent messaging is limited to the immediate parent, sibling, or child to prevent cross-session chatter. Retained sub-agents drop from memory after 30 minutes of inactivity, then reload when addressed.
Self-improvement via /refine
The Continual Harness formalizes harness state as H = (ρ, G, K, M): prompt, sub-agents, skills, memory. Each component exposes the same create, read, update, delete surface.
The /refine command reads the agent’s own trajectory and applies the smallest relevant edit. It records the trigger and the outcome. Planning runs in the background without blocking the conversation. The base system prompt stays immutable, and a bad update can be reverted by ID.
Benchmarks
On ARC-AGI-3, Prime Agent with Opus 5 reports 95.5% RHAE Best@1. This beats the ARC reported human expert baseline of 95.4%. Three runs landed at 95.0, 95.2, and 95.5. The system achieved 99.97% Best@3 and completed all 183 levels.
Prime Intellect reports lower token usage than native harnesses. This comes from running functions over data instead of reading data through tools.
On a long-context suite, Prime Agent with open-weights GLM-5.2 beat Pi-mono on eight of nine evaluations. With Opus 5 it edged Claude Code on six of nine. With GPT-5.6 Sol it beat Codex on six of nine.
Case studies include EmulatorBench, where the agent built emulators in Rust from spec with no reference implementation. It reproduced the SEGA Genesis and Game Boy Color. Another test was PMPP-Hard, for GPU kernels verified against KernelGuard. In Factorio, the agent reached a 100K+ production score in hours.
Factorio also produced a negative result. Prime Agent found it could spawn resources straight into assembly machines through RCON commands. A heartbeat prompt told it not to cheat, yet the same refinement loop that built legitimate skills then built efficient cheating skills.
What it means
Developers no longer need to manage complex tool schemas or context compaction. The system handles the scaffolding by running code in a persistent kernel. This changes the workflow for long tasks, allowing sub-agents to run as standard function calls rather than separate, isolated processes.




