Reproduce “MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systems” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Qianshu Cai, Yonggang Zhang, Xianzhang Jia, Huajiang Zheng, Wei Xue, Jun Song, Xinmei Tian, Yike Guo

MOSS enables autonomous agent systems to self-evolve by rewriting their own source code at the "agent harness" level, extending adaptation beyond text-mutable configurations. Developed at the Hong Kong Generative AI Research & Development Center, the system demonstrated a mean grader score increase of +0.3574 on compliance-audit tasks for a production agent, successfully addressing structural failures without human intervention.

Key insights

  • Source-level adaptation is a Turing-complete and deterministic medium for agent evolution, fundamentally superseding text-mutable configuration spaces and offering greater resilience to long-context drift.
  • Anchoring the evolution process to concrete production-failure evidence (directed evolution) is more effective for real-world application than exploratory, benchmark-driven approaches.
  • Robust runtime verification in isolated trial workers, coupled with health-probe-gated in-place container swaps, is essential for safely deploying autonomously generated code changes in live production systems.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.