让智能体自动改代码修复故障,无需人工干预。
MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systems
- 通过直接修改源码实现智能体自我演化,突破仅改文本的局限。
- 在OpenClaw上单轮迭代将任务评分从0.25提升至0.61。
- 适合需要长期自主运行、低人工维护的生产级智能体系统。
部署后的自主智能体系统大多静态:无法从用户交互中学习,重复错误需等待人工更新才能修复。现有自演化方案仅限于可编辑的文本类资源——如技能文件、提示配置、记忆结构、工作流图,却忽略了代码层面的路由、钩子顺序、状态不变量和分发逻辑等结构性问题。我们提出MOSS,一个在生产环境的智能体底层进行源码级自重写的系统。每一次演化基于自动收集的生产故障数据,经由确定性的多阶段流程;代码修改由外部编码代理执行,但阶段顺序与决策由MOSS控制。候选版本通过临时工作节点回放故障批次验证,再经用户授权和健康检查后以容器热替换方式上线,支持自动回滚。在OpenClaw上,MOSS单周期将四任务平均评分从0.25提升至0.61,全程无需人工介入。
原文摘要 · Abstract (English)
Autonomous agentic systems are largely static after deployment: they do not learn from user interactions, and recurring failures persist until the next human-driven update ships a fix. Self-evolving agents have emerged in response, but all confine evolution to text-mutable artifacts -- skill files, prompt configurations, memory schemas, workflow graphs -- and leave the agent harness untouched. Since routing, hook ordering, state invariants, and dispatch live in code rather than in any text artifact, an entire class of structural failure is physically unreachable from the text layer. We argue that source-level adaptation is a fundamentally more general medium: it is Turing-complete, a strict superset of every text-mutable scope, takes effect deterministically rather than through base-model compliance, and does not erode under long-context drift. We present MOSS, a system that performs self-rewriting at the source level on production agentic substrates. Each evolution is anchored to an automatically curated batch of production-failure evidence and proceeds through a deterministic multi-stage pipeline; code modification is delegated to a pluggable external coding-agent CLI while MOSS retains stage ordering and verdicts. Candidates are verified by replaying the batch against the candidate image in ephemeral trial workers, then promoted via user-consent-gated, in-place container swap with health-probe-gated rollback. On OpenClaw, MOSS lifts a four-task mean grader score from 0.25 to 0.61 in a single cycle without human intervention.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。