An open-source coding agent that reads your project, edits files and runs tests from your terminal, desktop, browser or editor.
PrimeIntellect-ai/prime-agent
An open-source coding and research agent built on a persistent Python REPL, with subagents, a self-refining harness, and support for long-running tasks.
Open-source alternative to:Claude Code
Devin
- Stars
- 22,161
- Forks
- 2,451
- Open issues
- 146
- Last commit
- 17 hours ago
What is it?
Prime Agent is an open-source coding and research agent for general and long-running work. Its built-in model tool is a persistent Python REPL, so file operations, shell commands, tool calls, subagents, and context management all run as code. Child agents can be spawned with rlm.spawn(...) for parallel or background work and return their results programmatically.
The project is built around two ideas: a Recursive Language Model approach that treats context as variables and tools as function calls, and a Continual Harness that stores supplemental prompts, memories, skill descriptions, and reusable subagent specifications as durable state. The /refine command reviews the current trajectory and applies small, evidence-backed updates to that state, with snapshots that support rollback. The immutable base system prompt is never rewritten.
Sessions can run as daemon-backed background agents that survive terminal disconnects and can be reattached later. Features such as persistent goals, heartbeats, schedules, and bounded autonomous mode support long tasks, and an optional Slack connector is available through MCP.
Key features
- 01Persistent Python REPL as the main tool for files, shell, and subagents
- 02Built-in subagents via rlm.spawn for parallel or background work
- 03/refine updates supplemental harness state with snapshots for rollback
- 04Daemon-backed sessions that keep running after the terminal disconnects
- 05Persistent goals, heartbeats, schedules, and bounded autonomous mode
- 06Executable skills packaged as importable Python modules
Use cases
- Running long coding tasks that continue across terminal sessions
- Parallelizing research or evaluation work across child agents
- Turning recurring workflows into reusable project or personal skills
- Running scheduled or periodic checks on an ongoing project
Quick start
- 1
Install the latest stable version
curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh - 2
Start Prime Agent in your project directory
cd /path/to/project prime-agent - 3
Run /login inside Prime Agent to choose a subscription or API-key provider
Things to know
- Prime Agent runs model-generated Python and project commands with your user permissions and is not a security sandbox.
- You need a subscription or API key from a supported provider to use it.
Topics
FAQ
- What is prime-agent?
- An open-source coding and research agent built on a persistent Python REPL, with subagents, a self-refining harness, and support for long-running tasks. Prime Agent is an open-source coding and research agent for general and long-running work. Its built-in model tool is a persistent Python REPL, so file operations, shell commands, tool calls, subagents, and context management all run as code. Child agents can be spawned with rlm.spawn(...) for parallel or background work and return their results programmatically.
- Is prime-agent free to use? What license does it have?
- prime-agent is open source under the Other license. Check the license terms before using it in commercial products.
- Is prime-agent still maintained?
- Actively maintained. The last commit to prime-agent was on Oct 19, 2026.
- What can I use prime-agent for?
- Running long coding tasks that continue across terminal sessions Parallelizing research or evaluation work across child agents Turning recurring workflows into reusable project or personal skills Running scheduled or periodic checks on an ongoing project
- How do I install prime-agent?
- Install the latest stable version: curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh Start Prime Agent in your project directory: cd /path/to/project prime-agent Run /login inside Prime Agent to choose a subscription or API-key provider
- Where can I get prime-agent?
- The source code and installation instructions are on GitHub: https://github.com/PrimeIntellect-ai/prime-agent
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A lightweight coding agent from OpenAI that runs locally in your terminal to help you write and work on code.
A minimal, extensible AI agent harness with a unified multi-provider LLM API, agent runtime, terminal UI, and a coding agent CLI.
A coding-assistant skill that makes AI agents lead with the next action, using numbered steps and no filler or preamble.
A terminal coding agent with built-in LSP, debugger, browser and subagent tools, supporting 60+ model providers.
Open source AI coding agent that runs in VS Code, JetBrains IDEs, or the terminal, with access to 500+ models.