Self-improving coding and research agent built on a persistent Python REPL
open sourceMITfree
Prime Agent is an open source coding and research agent from Prime Intellect for long-running work. The model works through a persistent Python REPL, where file operations, shell commands, tools and recursive subagents are function calls (the Recursive Language Model design), and a /refine command can store small, reviewable updates to its supplemental prompts, memories and skills between sessions. Sessions run in a background daemon you can detach from and reattach to, agents can message each other, and it has goals, schedules, heartbeats and a bounded autonomous mode. It can also serve the Agent2Agent (A2A) 1.0 protocol for other clients to drive it.
Problems it solves
- a coding agent that keeps working on a long task after I close the terminal
- let an agent learn from past sessions instead of starting from scratch every time
- run several agents that can hand work to each other
Features
- the model works through a persistent Python REPL, with tools and subagents as function calls
- /refine stores reviewable updates to its prompts, memories and skills
- background daemon sessions you can detach and reattach
- agents message and steer each other directly
- persistent goals, schedules, heartbeats and a bounded autonomous mode
- serves the Agent2Agent (A2A) 1.0 protocol
Limitations
- Runs model-generated Python and commands with your user permissions; its processes aren't a security sandbox1
Alternatives
The same job
These do what Prime Agent does.
- Claude Code An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools
- Codex Lightweight coding agent that runs in your terminal
- Pi A minimal, extensible coding agent harness that you can make your own
- Amp A coding agent and development environment built for the frontier
- MiMoCode Xiaomi's terminal AI coding agent, a fork of OpenCode with persistent memory, subagents and autonomous goal loops
- jcode Rust coding agent harness built for running many agents in parallel with little memory
