OpenSource-Hub

prime-agent

命令行工具

PrimeIntellect-ai/prime-agent

自我改进的 AI 编程代理,可长时间自主运行。

项目简介

Prime Agent 是一个开源编程与研究代理,基于递归语言模型(RLM)和持续化框架构建。它使用持久的 IPython 环境,通过代码执行文件操作、Shell 命令和子代理。支持后台守护进程、代理间通信和自主模式,适合长时间运行的任务。

README 预览

\n  \n    \n      \n      \n      \n    \n  \n\n\n\nPrime Agent: A Self-Improving RLM Agent\n\n\n\n  Documentation •\n  Verifiers •\n  PRIME-RL •\n  pi-mono\n\n\n\n  \n    \n  \n  \n    \n  \n\n\nPrime Agent is an open-source coding and research agent for general and long-running work. It is designed around two core abstractions:\n\n- The **[Recursive Language Model (RLM)](https://www.primeintellect.ai/blog/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.\n- The **[Continual Harness](https://arxiv.org/abs/2605.09998)** 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.\n\nPrime 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.\n\n- **Everything is programmatic:** persistent IPython is the built-in model tool; file operations, shell commands, tool use, subagents, and context management happen through code.\n- **Subagents are built in:** `rlm(...)` spawns real child agents for parallel or background work and returns their results programmatically.\n- **The harness can improve:** `/refine` reviews 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.\n- **Skills are executable:** skills are importable Python packages, and the built-in skill creator can turn recurring workflows into project or personal skills.\n- **Sessions run in the background:** daemon-backed agents keep running when the terminal disconnects and can be reattached later.\n- **Agents communicate directly:** running agents can exchange messag