Papers

Wactorz:可自我修复与迁移的开源边缘 LLM 智能体运行时

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

Why we picked it

做边缘部署或物联网自动化的开发者可以看看这套开源方案:智能体崩溃自动修复不丢状态,还能在 Raspberry Pi 之间实时迁移,演示全程成本才 $0.13。和 LangChain 类跑完任务就退出的框架思路完全不同,想在产线或实验室长期挂 agent 的人会用得上。

arXiv 论文介绍 Wactorz,一个开源运行时,让 LLM 生成的智能体以长生命周期、受监督的 actor 形式运行在边缘硬件上。planner 把聊天请求转成 Python 并在运行时编译为新 actor,supervisor 在 actor 崩溃时单独重启它且状态不丢失。所有协调基于 MQTT,智能体可在 Raspberry Pi 等边缘节点间被生成和实时迁移,内部事件全部作为可订阅的 topic 暴露给外部系统。

Body

论文的录制演示用一条聊天请求搭建了摄像头到灯具的自动化流程:新增的第二个 agent 通过 topic 自动接线,内置一个刻意的除零错误,随后 agent 在不丢失计数的情况下自行修复代码,最后部署一台全新 Raspberry Pi 节点并把 agent 实时迁移过去——全程耗时不到 4 分钟,模型调用成本 $0.13。

扩展版补充了原两页演示论文没有的内容:topic 图的 Wiring 视图、把 Wactorz 当作手写 agent 的库使用、训练模型的存储/下发/替换方式、安全模型以及系统局限。对需要在家庭、实验室、工厂产线连续运行数月的物理环境智能体场景,这提供了一种区别于'一次性任务型 crew 框架'的架构选择。

Original · arXiv cs.AI

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

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Wactorz, agents, edge computing, MQTT.

Source attribution: curated from arXiv cs.AI (@Panagiotis Kasnesis, Lazaros Toumanidis, Amalia Contiero Syropoulou, Christos Chatzigeorgiou).