open-primeagent is an open-source MCP server for coding agents, designed to solve the problem of knowledge not being shared between different agents. By writing rules learned by agents in a repository into marked blocks in AGENTS.md and CLAUDE.md, it makes these rules committed along with the code and read by agents such as Claude Code, Codex, and opencode.
Main capabilities include:
- Rule persistence: Rules discovered by agents are recorded in repository files, so newly cloned repositories can benefit from these rules even without open-primeagent installed, reducing task rounds and time.
- Cross-agent subagents: Supports retaining Codex subagents in Claude Code and continuing the conversation, enabling cross-agent subagent management.
- Persistent Python process: Keeps the Python process alive between calls, used to store state that is not desired in the context window.
- Learnable harness: Projects prompts, subagent specifications, skills, and memory into files already read by agents, supports precise rollback, and does not modify content outside marked blocks.
- Four MCP tools: opa_python, opa_status, opa_kernel, opa_bootstrap, limiting the number of tools to keep things simple.
Usage: Register open-primeagent as a stdio server via the MCP protocol; it can be installed as a plugin (including the rlm, goal, and refine skills) or as a standalone server. Configuration is supported in Claude Code, Codex, and opencode.
Use cases: Suitable for development teams that need to share repository knowledge across agents, manage persistent subagents, or want to reduce repeated learning costs.
Limitations: The project includes unsuccessful benchmarks, and some features (such as Python process persistence) have not yet been proven effective; performance comparison with the upstream Prime Agent has not been conducted; some adapters (such as Codex) have only been tested via stubs and have not been continuously validated against the real CLI.