Skip to main content

Module subagent

Module subagent 

Source

Modules§

control
The subagent side of the control channel. RFC 0005, RFC 0003, RFC 0009.
protocol
The supervisor↔subagent control protocol. RFC 0005 §control-protocol, RFC 0009 §spawn-payload.
replies
The child-side reply slots for the agentd 2.0 round-trips (RFC 0026 §2): a turn worker sends ToolRequest/BudgetRequest frames up and blocks until the control-reader thread delivers the matching ToolResult/BudgetGrant here (by id). One mutex + condvar; a closed channel or a cancel wakes every waiter with None.