agent: add Wake command - co-process self-wake via agent socket

This commit is contained in:
damocles 2026-05-16 03:36:16 +02:00
parent 286da8980e
commit f0e87f0bc5
2 changed files with 22 additions and 0 deletions

View file

@ -218,6 +218,13 @@ pub enum AgentRequest {
#[serde(default)]
ttl_seconds: Option<u64>,
},
/// Deliver a message TO this agent from a co-process (e.g. a Matrix
/// daemon running in the same container). `from` identifies the sender
/// (e.g. `"matrix"`); `body` is a short summary. Unlike `Send`, the
/// recipient is always the agent that owns this socket — no `to` field.
/// Wakes whatever `Recv` the harness is parked on, triggering the next
/// claude turn.
Wake { from: String, body: String },
}
/// Responses on a per-agent socket.