]> git.giacomolli.uk - onechat/commit
Deliver messages between parent and child agents
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 05:19:49 +0000 (02:19 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 05:34:55 +0000 (02:34 -0300)
commit2ad578a24f252706976cddb41bee6cc969f251cd
tree1c45e7406fd7e4c3668ab81fadd75380343225a9
parentc3c7bc90eb73e83f48fbeac6be149ade95a726c0
Deliver messages between parent and child agents

A parent can queue a user message for its own child through the daemon.
The child's final reply queues a work message for the parent with the
child's name in brackets. Each delivery wakes its recipient, including
one that is busy, and an empty final reply sends nothing.

The durable queue keeps inputs until their turn completes and saves a
child report with its input acknowledgments. Saved log positions prevent
repeat entries after restart. Interrupted turns can repeat model calls
and tools. Queue failures stop the loops, and backups lock the queue
before the agent files. Turn logs name their agent. Tools and prompts
stay unchanged.
README.rst
daemon.go
daemon_agent_test.go
daemon_message.go [new file with mode: 0644]
daemon_message_test.go [new file with mode: 0644]
memory_delivery_test.go
turn.go