Why persistent agents matter
Many LLM-agent frameworks are built for bounded jobs: an agent runs a task and then exits. That pattern is less suited to homes, labs, and factory floors, where software connected to sensors and devices may need to remain active for long periods and recover from faults. Wactorz is an open-source runtime that treats LLM-written programs as supervised, long-lived actors and allows them to run on nearby edge hardware.
How the runtime works
A planner turns a user’s chat request into Python, then compiles that code into a new actor at runtime. A supervisor monitors each actor and can restart the one that crashes while preserving its state, rather than restarting the entire system. Actors coordinate over MQTT, and internal events are exposed as topics that external systems can subscribe to. They can be launched on edge nodes such as Raspberry Pis and migrated between nodes.
The recorded demonstration starts with a request to build a camera-to-lamp automation. It then adds a second agent and wires it to the first through a topic. The second agent contains a deliberate division-by-zero bug. In the demo, it repairs its code without losing its count, then moves to a newly deployed Raspberry Pi. The full sequence takes under four minutes and uses $0.13 in model calls. The extended paper also covers a Wiring view of the topic graph, use of Wactorz as a library for hand-written agents, and how trained models are stored, sent to nodes, and replaced. The supplied summary notes that the paper discusses security, but does not provide details that would support a fuller assessment of that design.
Recovery is not the same as safe revision
The project’s discussion makes an important distinction: a repair can restore liveness without restoring the agent’s original intent. The authors confirm that repairs replace an agent’s code in place. At present, generated code has no source hash tied to its state, no revision history, and no one-command rollback. Retry limits apply per crash, not across an agent’s lifetime. Those omissions make code review and version tracking relevant operational concerns, particularly when an agent is expected to remain deployed.
Migration has defined limits too. State is not transferred as a pickle: pickle is used only for local storage on the main machine. Migrated state is sent as JSON, while models and arrays travel as hash-checked files. An open socket or file blocks migration unless it is forced; in that case, dropped keys are identified. This is more explicit than silently carrying unsupported resources, but it means not every runtime state can move intact.
What it contributes
Wactorz brings code generation, supervision, messaging, and edge deployment together in a single runtime. The demo offers a concrete look at a persistent-agent workflow rather than a one-shot chatbot, but it does not by itself establish reliability for long-term production use. Generated-code versioning, rollback, repair quality, and migration boundaries remain important areas to evaluate. The project is released under Apache 2.0.
Comments
Checking sign-in status...
Loading comments...