fix(athena): use background_wait for council progress instead of polling

Athena now uses background_wait (race-style) to collect council results with incremental progress instead of sequential background_output calls or rapid polling. Updated both the system prompt and tool description to guide Athena to the correct waiting pattern.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth
2026-02-19 01:32:49 +01:00
committed by YeonGyu-Kim
parent 30d33ccced
commit c40185628b
2 changed files with 22 additions and 12 deletions
+1 -2
View File
@@ -3,8 +3,7 @@ export const ATHENA_COUNCIL_TOOL_DESCRIPTION_TEMPLATE = `Execute Athena's multi-
Pass members as a single-item array containing one member name or model ID. Athena should call this tool once per selected member.
This tool launches the selected member as a background task and returns task/session metadata immediately.
After launching ALL members, STOP and wait — the system will notify you when tasks complete.
Only then call background_output(task_id=...) once per member to collect results. Do NOT poll in a loop.
After launching ALL members, use background_wait(task_ids=[...all IDs...]) to wait for results. It blocks until the next member finishes and returns progress. Repeat with remaining IDs until all complete.
{members}