Wactorz: Self-Writing LLM Agents That Discover, Repair, and Migrate at the Edge

Hugging Face Daily Papers Papers

Summary

Wactorz is an open-source runtime for long-lived, self-writing LLM agents that compile chat requests into Python actors, auto-repair crashed code, and live-migrate between edge nodes like Raspberry Pi over MQTT — demonstrated end-to-end in under four minutes for $0.13.

Most LLM agent frameworks build a crew that runs a task and exits. Physical environments (e.g., homes, labs, factory floors) need agents that stay up for months, survive their own bugs, and run on whatever hardware is already next to the sensors. We present Wactorz, an open-source runtime in which LLM-generated agents are long-lived, supervised actors: a planner turns a chat request into Python, compiles it into a new actor at runtime, and a supervisor restarts that actor alone, with its state intact, when it crashes. All coordination rides on MQTT, so agents can be spawned on, and live-migrated between, edge nodes such as a Raspberry Pi, and every internal event is a topic external systems can subscribe to. The recorded demo builds a camera-to-lamp automation from one chat request, adds a second agent that is auto-wired to the first by topic and carries a deliberate division-by-zero, watches that agent repair its own code without losing its count, then deploys a fresh Raspberry Pi node and live-migrates the agent onto it, in under four minutes of wall-clock time and \$0.13 of model usage. This extended version adds what the two-page demonstration paper could not: the Wiring view of the topic graph, Wactorz as a library for hand-written agents, how trained models are stored, sent to nodes and replaced, the security model, and the system's limitations.
Original Article
View Cached Full Text

Cached at: 11/24/26, 12:00 PM

Paper page - Wactorz: Self-Writing LLM Agents That Discover, Repair, and Migrate at the Edge

Source: https://huggingface.co/papers/2611.29619

Abstract

MostLLMagentframeworksbuildacrewthatrunsataskandexits.Physicalenvironments(e.g.,homes,labs,factoryfloors)needagentsthatstayupformonths,survivetheirownbugs,andrunonwhateverhardwareisalreadynexttothesensors.WepresentWactorz,anopen-sourceruntimeinwhichLLM-generatedagentsarelong-lived,supervisedactors:aplannerturnsachatrequestintoPython,compilesitintoanewactoratruntime,andasupervisorrestartsthatactoralone,withitsstateintact,whenitcrashes.AllcoordinationridesonMQTT,soagentscanbespawnedon,andlive-migratedbetween,edgenodessuchasaRaspberryPi,andeveryinternaleventisatopicexternalsystemscansubscribeto.Therecordeddemobuildsacamera-to-lampautomationfromonechatrequest,addsasecondagentthatisauto-wiredtothefirstbytopicandcarriesadeliberatedivision-by-zero,watchesthatagentrepairitsowncodewithoutlosingitscount,thendeploysafreshRaspberryPinodeandlive-migratestheagentontoit,inunderfourminutesofwall-clocktimeand\$0.13ofmodelusage.Thisextendedversionaddswhatthetwo-pagedemonstrationpapercouldnot:theWiringviewofthetopicgraph,Wactorzasalibraryforhand-writtenagents,howtrainedmodelsarestored,senttonodesandreplaced,thesecuritymodel,andthesystem’slimitations.

View arXiv pageView PDFProject pageGitHub23Add to collection

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2611.29619 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2611.29619 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2611.29619 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems

arXiv cs.CL

This paper presents a method for compiling repeated standard operating procedure steps into validated, versioned tools before deployment, replacing inference-time code generation. In a fulfillment center alarm-triage system, this approach reduces p50 latency by 42% and end-to-end error rate by up to 53%.