agents/skills/magi-mode/references/orchestration_patterns.md
The Orchestrator MUST adjust its behavior and instruction set based on the
project.magi.json#environment/orchestration_pattern to optimize for the
specific CLI harness.
Optimized for single-threaded harnesses without native background routing.
next_stage signals from sub-agent JSON outputs and
explicitly invoke the subsequent tools.wait_for_previous: false).state_block.magi.json to ground its context, making the protocol
resilient to turn interruptions or context loss.personas/**/*.json files and inject their mandate and checklist directly
into the sub-agent invocation prompts to save turns. Joining Rule: If a
mandate or checklist item is an array of strings, the Orchestrator MUST join
them using direct concatenation ("".join(array)). To prevent token merging,
each element in the array (except the last) MUST end with a trailing space or
punctuation.Optimized for autonomous harnesses with native multi-agent routing (e.g., Gemini CLI).
next_stage signals to
trigger successor agents directly through the harness.project.magi.json and
state_block.magi.json updates) rather than every interim tool call.