Prime Agent: A Self-Improving RLM Agent for Coding and Autonomous Tasks
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Prime Agent is an open-source, self-improving Recursive Language Model (RLM) agent designed for coding workflows and long-running autonomous tasks. It integrates a persistent Python control environment with a durable harness state, allowing useful context and reusable patterns to persist across sessions. Built in Rust, this project aims to enhance developer productivity through programmatic control and autonomous capabilities.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Prime Agent is an open-source coding and research agent built for general and long-running work. It is designed around two core abstractions:
- The Recursive Language Model (RLM) treats context as variables (prompt-as-a-variable) and tools like recursive subagents as function calls (programmatic tool/sub-agent calling) inside a persistent REPL.
- The Continual Harness stores supplemental prompts, memories, skill descriptions, and reusable subagent specifications as durable state that Prime Agent can refine through small, evidence-backed updates, local to the session by default.
Why Use and Key Benefits
Prime Agent combines a persistent Python control environment with durable harness state, so useful working context and reusable operating patterns can outlive a single chat window. Key benefits include:
- Everything is programmatic: A persistent Python REPL is the built-in model tool; file operations, shell commands, tool use, subagents, and context management happen through code.
- Subagents are built in:
rlm.spawn(...)spawns real child agents for parallel or background work and returns their results programmatically. - The harness can improve:
/refinereviews the current trajectory and can apply small, evidence-backed updates to supplemental harness state. It never rewrites the immutable base system prompt, and recorded snapshots support rollback. - Skills are executable: Skills are importable Python packages, and the built-in skill creator can turn recurring workflows into project or personal skills.
- Sessions run in the background: Daemon-backed agents keep running when the terminal disconnects and can be reattached later.
- Agents communicate directly: Running agents can exchange messages and orchestrate one another without routing everything through the user.
- Long tasks keep moving: Automatic compaction, persistent goals, heartbeats, schedules, autonomous mode, and retained subagents preserve progress across turns and terminal sessions.
Installation
Install the latest build with the one-command installer (every push to the rust branch publishes a fresh rolling beta; the stable channel ships on release):
For Linux/macOS:
curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | sh
On Windows, install from PowerShell:
irm https://app.primeintellect.ai/prime-agent/install.ps1 | iex
The sh one-liner also works under Git Bash on Windows. Both installers publish the same layout (the launcher under $HOME\.local\bin, the payload under $HOME\.local\share\prime-agent) and read the same release channel: darwin (arm64/x64), linux (arm64/x64), and windows (x86_64, win32-x64).
Examples
Start Prime Agent from the repository or directory you want it to work in:
cd /path/to/project
prime-agent
On first launch, run /login to choose a subscription or API-key provider. Prime Agent works in the current directory and can run commands and modify files there. Use a disposable clone, clean worktree, or another checkpoint you can inspect and restore.
WARNING
Prime Agent executes model-generated Python and project commands with your user permissions. Its worker and kernel processes improve lifecycle isolation and recovery; they are not a security sandbox. Review changes and use trusted repositories, instructions, and skills only. Run untrusted code or instructions in an external sandbox or restricted environment.
Useful commands:
prime-agent agents # Browse running, idle, and saved sessions
prime-agent attach <agent> # Reattach to a running session
prime-agent --resume [path|id] # Browse sessions or resume one directly
prime-agent status # Inspect background service state
prime-agent doctor [--fix] # Inspect or repair background services
prime-agent update [--force] # Update Prime Agent
prime-agent shutdown [--force] # Stop every agent, worker, and background service
Links
- GitHub Repository: PrimeIntellect-ai/prime-agent
- Prime Intellect Website: primeintellect.ai
- Verifiers Repository: PrimeIntellect-ai/verifiers
- PRIME-RL Repository: PrimeIntellect-ai/prime-rl
- RLM Blog Post: The Recursive Language Model
- Prime Agent arXiv Paper: 2608.23552
- Continual Harness arXiv Paper: 2605.09998
Related repositories
Similar repositories that may be relevant next.

Codeg: Collaborative Multi-Agent AI Coding Workspace for Developers
September 30, 2026
Codeg (Code Generation) is an innovative multi-agent AI coding workspace built in Rust, designed to unify and enhance the developer experience. It aggregates sessions from various AI coding agents like Claude Code, Codex, and Grok Build into one searchable environment, facilitating seamless collaboration and task management. Available as a desktop app, self-hosted server, or Docker container, Codeg also offers native iOS and Android clients for on-the-go productivity.

CCCC: Coordinate Your Coding Agents Like a Group Chat
September 29, 2026
CCCC is a production-minded orchestrator designed to coordinate coding agents like a group chat, offering features such as read receipts, delivery tracking, and remote operations from your phone. It enables 24/7 workflow for multi-agent teams with a single `pip install` and zero infrastructure. This tool helps manage diverse AI runtimes, ensuring persistent collaboration across different machines and trusted working groups.
AI Session Search: Ultra-Fast AI Agent Session Analysis
September 29, 2026
AI Session Search (aise) is an ultra-fast, Rust-powered tool designed for searching and analyzing local AI agent coding sessions. It seamlessly integrates and indexes nine different session formats, including those from Claude, Codex, Cursor, and Gemini CLI. This powerful utility enables developers to quickly recover context, track agent behavior, and efficiently manage their AI-generated code history.

AgentAleph: Local-First AI Coding Agent and GGUF Model Manager
September 25, 2026
AgentAleph is a desktop application that combines a local-first AI coding agent with a GGUF model manager. It allows users to download, load, and manage local large language models, and then use an AI agent to interact with their projects, all without relying on cloud services or API keys. This tool emphasizes privacy and offline capability, running models directly on your machine.
Source repository
Open the original repository on GitHub.