Prime Intellect Releases Open-Source Prime Agent Coding Harness

Prime Intellect's open-source Prime Agent harness enables LLMs to rewrite their own scaffolding, achieving human-level performance on ARC-AGI-3.

By Central
Prime Agent's rewritable harness and recursive architecture mark a shift in agentic automation.
Highlights
  • Prime Agent achieves 95.5% on ARC-AGI-3 using Anthropic's Opus 5, surpassing the human expert baseline of 95.4%.
  • The framework introduces a persistent Python REPL and a rewritable harness that the model can modify during execution.
  • Prime Agent is deployable via a single command on Linux and macOS, with support for multiple API providers.

Prime Intellect has released Prime Agent as an open-source coding harness that challenges how large language models interact with their own scaffolding. Rather than treating tool schemas and context windows as fixed constraints, this framework introduces a persistent Python REPL and a rewritable harness that the model itself can modify during execution. The early results are striking: with Anthropic’s Opus 5 model, Prime Agent reports a 95.5 percent score on ARC-AGI-3, edging past the reported human expert baseline of 95.4 percent. For engineering teams wrestling with long-horizon coding tasks, this represents a fundamental shift in what agentic automation can accomplish.

What Is Prime Agent and How Does It Work

Prime Agent is an open-source, self-improving coding harness organized around two core abstractions: the Recursive Language Model and the Continual Harness. The Recursive Language Model treats context as a variable and sub-agent delegation as function calls inside a REPL. Instead of the model being limited by a fixed prompt or tool schema, it can spawn child agents, receive their outputs, and incorporate those results recursively. The Continual Harness extends this by treating prompts, sub-agents, skills, and memory as state that the agent can create, read, update, and delete from its own trajectory.

The practical implication is that Prime Agent does not merely execute predetermined instructions. It edits its own system prompt, writes its own helper functions, stores patterns it detects in memory, and spawns specialized sub-agents for subtasks — all within a single session. Both research papers describing these abstractions list Prime Intellect authors. The terminal user interface is built on the pi framework.

Deployment Reality: What Organizations Need to Know

Prime Agent is deployable today. Installation on Linux or macOS requires a single command. The harness supports subscription logins for Codex, Claude Pro and Max, and GitHub Copilot. It accepts API keys for Anthropic, OpenAI, Google, Groq, Fireworks, Prime Inference, and other providers. It integrates with Azure OpenAI, Amazon Bedrock, and self-hosted vLLM, Ollama, or LM Studio endpoints. For teams concerned about data sovereignty, self-hosting an open-weights model such as GLM-5.2 keeps all code and traffic inside the organization’s own network.

The company level best suited for Prime Agent is mid-size to large engineering organizations and AI labs that already run isolated CI containers. Prime Intellect states plainly that worker and kernel processes are not a security sandbox. Deployment therefore requires disposable clones or restricted environments. Solo developers can install it, but the payoff becomes evident on multi-hour tasks that would otherwise require sustained human attention.

Targeted Industries and Primary Applications

Prime Agent’s architecture makes it particularly relevant for developer tooling, semiconductor and HPC teams writing GPU kernels, simulation and gaming studios, quantitative research firms, and AI research labs. In each of these domains, the ability to maintain coherence across thousands of lines of generated code over hours of autonomous execution represents a meaningful productivity gain.

Specific applications include overnight refactors behind a test gate, spec-driven builds from scratch, kernel optimization, long-horizon agent evaluation, and autoresearch — where the agent iterates on a hypothesis, runs experiments, and refines its approach without human intervention. The rewritable harness means that each of these tasks can dynamically adjust its own strategy as it learns more about the problem.

Inside the Recursive Language Model and Continual Harness

The Recursive Language Model abstraction is the more radical of the two. Traditional agent frameworks provide a model with a fixed set of tools and a static system prompt. When context grows long, earlier information gets evicted. When a tool fails, the model has to start over. Prime Agent’s RLm treats the model’s own context as a variable to be managed. Sub-agent delegation works like a function call in Python: the parent passes context to a child, the child executes, and the result is returned to the parent’s REPL. This creates a compositional loop where complexity is managed through depth rather than flat context.

The Continual Harness complements this by making meta-cognition explicit. The agent can create prompt notes to guide future behavior, generate sub-agent specifications for recurring subtasks, promote patterns into reusable skills, and store memories for patterns it has observed. These operations are not hidden abstractions; they appear in the agent’s trajectory as code it has executed. This transparency means that when an agent fails, the harness state provides a complete audit trail of what the agent knew and when it knew it.

The result is a system that can learn from its own execution. If the same test fails twice, the agent can write a memory entry to retry three times before failing. If a retry pattern is reused multiple times, the agent can promote it to a skill. If a gate reruns on an unchanged workspace, the agent can add a prompt note to check the diff first. These refinements happen without human intervention and without blocking the main conversation.

Benchmark Performance and Competitive Positioning

Prime Intellect has published evaluation results across multiple model families. With GLM-5.2 as the backbone, Prime Agent outperforms Pi-mono with sub-agents on most benchmarks. On OOLONG with 128k context, Prime Agent scores 0.700 against 0.420. On OOLONG-Pairs, the margin is 0.874 to 0.556. On OBLIQ-Bench for math, Prime Agent leads 0.669 to 0.635. On LongBenchPro for English, the gap is narrower at 0.777 to 0.768. On LongBenchv2, Prime Agent trails slightly at 0.680 versus 0.696. On ManyIH Coding, Prime Agent leads 0.424 to 0.386. On EmulatorBench, Prime Agent scores 0.208 against zero.

With Opus 5, Prime Agent competes directly with Claude Code. On OOLONG, Claude Code leads 0.920 to 0.900. On OOLONG-Pairs, Prime Agent leads 0.929 to 0.922. On OBLIQ-Bench, Prime Agent leads 0.802 to 0.795. On LongBenchPro, Prime Agent leads 0.804 to 0.790. On LongBenchv2, the models are nearly tied at 0.744 versus 0.746. On ManyIH Coding, Prime Agent leads 0.536 to 0.522. On ManyIH IF, Prime Agent leads 0.225 to 0.175. On LongCot-Mini, Prime Agent leads decisively 0.722 to 0.558. On EmulatorBench, Claude Code leads 0.062 to 0.047.

Against Codex, Prime Agent with GPT models shows mixed results. On OOLONG, Prime Agent leads 0.940 to 0.500. On OOLONG-Pairs, Prime Agent leads 0.911 to 0.895. On OBLIQ-Bench, Codex leads 0.646 to 0.612. On LongBenchPro, Prime Agent leads 0.794 to 0.790. On LongBenchv2, Prime Agent leads 0.714 to 0.704. On ManyIH Coding, Prime Agent leads 0.499 to 0.454. On ManyIH IF, Codex leads 0.232 to 0.216. On LongCot-Mini, Codex leads 0.681 to 0.671. On EmulatorBench, Prime Agent leads 0.275 to 0.228.

These results are notable for their consistency. Prime Agent does not merely excel on one type of task. It shows competitive or superior performance across synthetic benchmarks, math reasoning, long-context retrieval, instruction following, and coding. The ARC-AGI-3 score of 95.5 percent with Opus 5 exceeding the human expert baseline of 95.4 percent is a symbolic milestone, but the broader pattern of results matters more for production deployment decisions.

How Does Prime Agent Handle Security and Isolation

This is the critical question for any organization evaluating Prime Agent. The harness gives the model the ability to write and execute arbitrary Python code, read and modify its own system prompt, create files, and spawn subprocesses. Prime Intellect does not claim that worker and kernel processes provide a security sandbox. The intended deployment model is within disposable clones or restricted environments — the same infrastructure that organizations already use for CI/CD pipelines. For most mid-size to large engineering organizations, that means running Prime Agent in an isolated container that can be destroyed after each session.

For teams self-hosting, the open-weights model GLM-5.2 can run entirely within the organization’s network. This eliminates data leakage to external API endpoints but does not eliminate the need for container isolation. The agent’s ability to modify its own state on disk means that persistent state across sessions — whether deliberate or accidental — is a design feature, not a bug. Organizations should treat each Prime Agent session as an ephemeral workspace.

What the MIT License Means for Adoption

Prime Agent is released under the MIT License. This permissive license allows commercial use, modification, distribution, private use, and sublicensing. The only requirement is that the copyright notice and permission notice be included in all copies or substantial portions of the software. For engineering organizations, this eliminates legal friction in adoption. There are no restrictions on the number of users, no requirements to contribute modifications back, and no per-seat licensing costs. The MIT License also means that the community can fork the project, build commercial products on top of it, and integrate it into larger systems without legal review cycles.

This licensing strategy aligns with Prime Intellect’s stated goal of making agentic infrastructure broadly accessible. The open-source release is not a limited trial or a community edition with features removed. It is the full harness, including both the Recursive Language Model and Continual Harness abstractions, available for immediate use and modification.

Comparison with Existing Agent Frameworks

Most existing agent frameworks operate on a fixed scaffolding model. The system prompt is set at initialization. The tool list is static. Context eviction follows predetermined strategies based on recency or relevance heuristics. Sub-agent delegation, when supported, follows rigid parent-child communication patterns. Prime Agent replaces each of these fixed points with dynamic, agent-rewritable structures.

The persistent Python REPL means the agent can maintain state across turns without serialization overhead. The rewritable harness means the agent can optimize its own scaffolding over the course of a session. If a particular prompt structure leads to better results, the agent can rewrite its own system prompt to adopt that structure permanently. If a particular sub-agent configuration works well for a class of tasks, the agent can save that configuration as a reusable skill.

This is distinct from frameworks that add memory modules or retrieval-augmented generation as external components. In Prime Agent, memory and skills are first-class entities within the harness, subject to the same read-write capabilities as any other state. The agent does not need to leave its execution context to consult a database or vector store. It can store patterns directly in its own trajectory and retrieve them on subsequent turns.

Long-Horizon Agent Evaluation and Practical Workflows

Prime Agent is designed for tasks that take hours, not minutes. The classic use case is the overnight refactor. An engineer defines the desired interface, sets up a test gate, and starts Prime Agent with a spec. The agent generates code, runs tests, iterates on failures, and commits passing code — all without requiring the engineer to be present. The test gate acts as a hard boundary: the agent can rewrite any file in the workspace, but it cannot bypass the test suite.

Spec-driven builds from scratch follow a similar pattern. The agent receives a specification document, builds the project structure, implements each component, verifies against integration tests, and documents its decisions. The rewritable harness means that mid-build discoveries — a library conflict, a performance bottleneck, a missing API — become input for dynamic re-planning rather than blocking failures.

GPU kernel optimization is a particularly strong fit. The agent can generate kernel variants, compile and benchmark each one, record the results in memory, and iterate on the most promising approaches. The Continual Harness allows the agent to build a knowledge base of optimization strategies over multiple sessions, gradually improving its initial guesses for new kernel types.

For AI research labs, Prime Agent’s autoresearch capability enables autonomous experiment execution. A researcher defines a hypothesis and a set of metrics. The agent generates experiment code, runs it, analyzes results, and proposes the next experiment. This creates a closed loop where the agent can explore a parameter space without human supervision, flagging only significant findings for human review.

What the ARC-AGI-3 Score Means in Context

The ARC-AGI-3 benchmark tests an AI system’s ability to solve novel reasoning problems that require generalization beyond training data. The human expert baseline of 95.4 percent represents the performance of top human performers under standard conditions. Prime Agent’s score of 95.5 percent with Opus 5 represents the first time a coding harness has exceeded that threshold on this benchmark.

This result is not solely attributable to the underlying model. The same Opus 5 model running under a different harness would likely achieve a lower score. The Recursive Language Model and Continual Harness abstractions enable the model to structure its reasoning more effectively, manage its context window more efficiently, and recover from mistakes more gracefully. The benchmark result validates the hypothesis that agentic scaffolding can unlock capability that the base model does not exhibit on its own.

It is important to note that ARC-AGI-3 measures reasoning within a constrained environment. The tasks are designed to be solved in minutes, not hours. The score does not directly translate to production coding performance. However, it provides a strong signal that the harness enables models to perform at or above human levels on tasks requiring structured problem-solving, pattern recognition, and iterative refinement.

Getting Started with Prime Agent

Organizations interested in Prime Agent should start with a contained experiment. Set up an isolated container environment with the desired API credentials or a self-hosted model. Install Prime Agent with the single-command installer. Define a moderately complex coding task — a refactor of a single module or a new feature with a clear test specification. Run the agent and observe its behavior.

The initial session will reveal how the agent uses the Recursive Language Model to delegate subtasks and how the Continual Harness accumulates state. The terminal UI provides visibility into each turn, and the trajectory logs provide a complete record of the agent’s decisions. From there, teams can experiment with different model configurations, custom prompt structures, and integration with existing CI pipelines.

The open-source release and MIT License mean that there is no sales process, no trial period, and no vendor lock-in. The primary investment is in understanding the architecture so that the team can configure the harness appropriately for their specific use cases and security requirements.

Prime Agent represents a meaningful evolution in how language models interact with their own scaffolding. The shift from fixed tool schemas and static contexts to a rewritable, recursive architecture is a rare case of genuine innovation in agent infrastructure. The benchmark results demonstrate that the approach works across multiple model families and task categories. The practical question for engineering organizations — whether Prime Agent’s open-source design and MIT licensing will accelerate adoption — has a clear answer: the software is available, the abstractions are documented, and the results speak for themselves. The only remaining variable is how well teams integrate it into their existing workflows and security models.

Share This Article