Skip to content
IFAI

Open source

Prime Intellect open-sources a self-improving coding agent

Published Reach 48

Prime Intellect just open-sourced Prime Agent, an autonomous coding and research harness designed to continuously improve itself. Built on a recursive language model architecture, it treats prompt context as variables and spawns subagents programmatically inside a persistent Python REPL. Why it matters: It turns ephemeral chat sessions into durable, background-running workflows that refine their own memory and skills over time.

Prime Intellect open-sources a self-improving coding agent
Image: github.com

Prime Agent is an open-source coding and research harness designed to help large language models self-improve and execute complex, long-running tasks. You can think of it as a programmatic alternative to Claude Code or Codex.

Prime Intellect open-sourced the project under the MIT license, accompanied by a research paper on arXiv. Instead of modifying expensive model weights, it focuses on evolving the execution harness itself during inference.

Context as code and subagents as functions

Most modern agent tools chain models to rigid, predefined prompt templates and static tool-calling interfaces. Prime Agent breaks away from that by wrapping the model inside a persistent IPython REPL.

This setup introduces what the team calls a Recursive Language Model (RLM). Here, context behaves like variables. An agent can inspect, slice, and prune its own conversation history simply by executing Python code.

Spawning helper workers is just as straightforward. The model can run rlm.spawn(...) to launch real subagents in parallel or background processes, receiving outputs programmatically while agents communicate directly without routing through the human user.

Continuous evolution without weight updates

Self-improvement in Prime Agent lives inside its Continual Harness. The harness stores supplemental prompts, working memory, executable Python skills, and subagent specs as durable, mutable state.

Running /refine analyzes recent execution trajectories and applies evidence-backed updates to this harness state. The immutable base system prompt is never touched, and automatic snapshots let users inspect or roll back any change.

These workflow adjustments deliver huge performance gains. Paired with the Opus 5 model, switching the outer harness to Prime Agent boosted the ARC-AGI 3 benchmark score from 30.2% to 95.5%, edging past the 95.4% human expert baseline.

Running in the background

Prime Agent is purpose-built for persistent work. Because it runs on a daemon process, agents, heartbeats, and scheduled goals keep moving even if your terminal disconnects. You can inspect or reattach to active sessions at any time.

It also integrates with Slack and Google Workspace through official MCP connectors, allowing agents to search channels or read Google Sheets.

Getting started takes one line via curl on Linux/macOS or PowerShell on Windows. Keep in mind that Prime Agent executes Python scripts with your local user permissions without an internal sandbox, so untrusted tasks should always run inside a secure container.

Why it matters

If you find chat-based coding assistants too forgetful for long engineering jobs, Prime Agent is worth testing immediately. Treating prompt context as code variables feels natural for software developers.

It also proves that models fail far less because of inherent reasoning flaws than because rigid execution harnesses choke them. Refining harness state during inference looks like a much cheaper, faster path to autonomous workflows than continuous weight retraining.

Sources (1)

  1. [1]
    github.com(opens in a new tab)Originalgithub.com

Similar events

Past happenings like this one, for context.

Best of AI, daily