Durable state
SQLite stores global tasks, DAG nodes, result payloads, and event history under ~/.agentd.
Local-first infrastructure for agent state
An out-of-process state machine daemon for AI agents. It owns durable task state, strict DAG transitions, leases, heartbeats, and an append-only event journal.
What it does
SQLite stores global tasks, DAG nodes, result payloads, and event history under ~/.agentd.
Nodes move through PENDING, RUNNING, COMPLETED, or FAILED.
Workers acquire leases, heartbeat while running, and stale work rolls back to PENDING.
Python, Node, Rust, and shell clients can coordinate through Unix Domain Socket JSON Lines IPC.
No network service is required. The daemon runs locally as a small Rust binary.
Agents can call DescribeInterface to learn supported methods and payload shapes.
Runtime interface
The IPC contract is discoverable at runtime. Send one JSON object per line to the Unix socket and read one JSON response per line.
printf '%s\n' '{"id":1,"method":"DescribeInterface","params":{}}' \
| nc -U ~/.agentd/agentd.sock \
| python3 -m json.tool