SuperAPIAI Directory

open-primeagent

github.com · AI agents

open-primeagent is an open-source MCP server that writes rules learned by coding agents in a repository into marked blocks in AGENTS.md and CLAUDE.md, enabling different agents such as Claude Code, Codex, and opencode to share this knowledge. Through a persistent Python kernel, it provides cross-agent subagent management, external memory, and rollback-capable harness projection, aiming to reduce repeated learning costs and improve task efficiency. The project includes benchmarks (including failure cases) and detailed documentation, emphasizing protocol compatibility and security.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

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.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools