Moss: Self-Evolution Through Source-Level Rewriting in Autonomous Agent Systems

Timofeibu1 pts0 comments

[2605.22794] MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systems

-->

Computer Science > Artificial Intelligence

arXiv:2605.22794 (cs)

[Submitted on 21 May 2026]

Title:MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systems

Authors:Qianshu Cai, Yonggang Zhang, Xianzhang Jia, Wei Xue, Jun Song, Xinmei Tian, Yike Guo<br>View a PDF of the paper titled MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systems, by Qianshu Cai and 6 other authors

View PDF<br>HTML (experimental)

Abstract: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.

Comments:<br>12 pages, 3 figures, 2 tables. Preprint. Code: this https URL

Subjects:

Artificial Intelligence (cs.AI); Machine Learning (cs.LG)

ACM classes:<br>I.2.11

Cite as:<br>arXiv:2605.22794 [cs.AI]

(or<br>arXiv:2605.22794v1 [cs.AI] for this version)

https://doi.org/10.48550/arXiv.2605.22794

Focus to learn more

arXiv-issued DOI via DataCite (pending registration)

Submission history<br>From: Qianshu Cai [view email]<br>[v1]<br>Thu, 21 May 2026 17:48:33 UTC (24 KB)

Full-text links:<br>Access Paper:

View a PDF of the paper titled MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systems, by Qianshu Cai and 6 other authors<br>View PDF<br>HTML (experimental)<br>TeX Source

view license

Current browse context:

cs.AI

next >

new<br>recent<br>| 2026-05

Change to browse by:

cs<br>cs.LG

References & Citations

NASA ADS<br>Google Scholar

Semantic Scholar

export BibTeX citation<br>Loading...

BibTeX formatted citation

&times;

loading...

Data provided by:

Bookmark

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs .

Which authors of this paper are endorsers? |<br>Disable MathJax (What is MathJax?)

toggle moss source arxiv self evolution

Related Articles