exec.
On the guest side, processes just write JSON to /run/agent.sock, which is a standard Unix domain socket. No special library needed. Any language that can open a socket and write a newline-delimited JSON message will work.
Receive events from guest
Subscribe to named events emitted by guest processes. The callback fires each time a matching event arrives.Send events to guest
Emit a named event with typed data into the guest. Any process listening on the agent socket receives it.Guest-side emitting
Inside the guest, any process can emit events by writing JSON to the Unix domain socket at/run/agent.sock. No SDK required.
on_event("task.progress", ...) receives this message automatically.