agent loop: claude drives; tool envelope (log/run/status/log)

This commit is contained in:
müde 2026-05-15 14:54:10 +02:00
parent a061f83cfa
commit 3c9d42b2a7
6 changed files with 147 additions and 47 deletions

View file

@ -148,6 +148,9 @@ pub enum AgentRequest {
Send { to: String, body: String },
/// Pop one pending message from this agent's inbox.
Recv,
/// Non-mutating: how many pending messages are addressed to me?
/// Used by the harness to render a status line after each tool call.
Status,
}
/// Responses on a per-agent socket.
@ -162,6 +165,8 @@ pub enum AgentResponse {
Message { from: String, body: String },
/// `Recv` found nothing pending.
Empty,
/// `Status` result: how many pending messages are in this agent's inbox.
Status { unread: u64 },
}
// -----------------------------------------------------------------------------