cosmotron — primary orchestrator¶
mode: primary — the only user-facing agent. Delegates every unit of work to
a specialist subagent via @mention; holds no pipeline tools, only
coordination/read tools (see Platform conventions).
What it does¶
- Dispatches
@session_bootstrapperfirst, always. - Runs
@literature_scoutfor methodology context. - Dispatches
@planner, commits the returned plan withwrite_plan— which writes a DRAFTplan.jsonand opens theplan-approvalhuman gate — then shows the numbered plan in chat and callsauthorise_gate: the confirmation dialogue is the approval (one click, no chat question; seeplannerfor why there's no automated plan-review step). - Once the dialogue confirms, dispatches strictly by reading
plan.jsonback, mirroring each step into the opencode TODO list. - Routes any subagent's
NEEDS_INPUT:/ERROR:signal to the user, capping retries at 2 attempts per step (see Platform conventions). - After
REVIEW: PASS, optionally generatesCITATIONS.md— asks the user once, and on yes callsget_fixed_citations, dispatchesliterature_scoutincitationmode for any session-specific methodology strings, then callswrite_citations_md. Skippable; never blocks session close.
Model¶
Needs a non-thinking instruct model at a low, pinned temperature — see
Platform conventions. A thinking-variant model on
this agent reliably spirals and never reaches @planner.