App execution notes
Command Code
Use only in Command Code. This adapter preserves the shared assignments and round structure.
Discovery and dispatch
- Inspect the live
agenttool schema first and select registeredcouncil-advisor,council-reviewer, andcouncil-chairviasubagent_type, a shortdescription, and a self-containedprompt. - Never silently fall back to the unrestricted
generalagent (follow the stop rule inSKILL.md). Tool reference (opens in a new tab)
Round structure & completion
- Send the complete relevant assignment and inputs every time: five separate advisors, five new reviewers, then one separate chair. Full 5-way parallel batches are supported; batch smaller if capacity requires it without weakening round barriers.
- Advisor and reviewer role files set
background: true, and the coordinator passesrun_in_background: trueon theagenttool call; retain every returnedagent_id. - Collect final results with
agent_output(agent_id,action: wait), or check withaction: status. An ID or status alone is not an answer. - Parent interruption stops a wait without stopping the worker; inspect outstanding runs before retrying. The chair uses foreground execution (
background: false). Completion handling (opens in a new tab)
Fresh context
- Command Code documents separate contexts per invocation, but
agent_outputdoes not expose per-worker model IDs or a mechanical proof of omitted parent history. - Use fresh invocations with only prescribed inputs, and disclose in the transcript that reviewer isolation rests on fresh invocations plus omitted
toolsrather than mechanical runtime proof. Custom agents (opens in a new tab)
Tool and model settings
- Role files deliberately omit
tools, which Command Code documents as granting none. Workers return text; the coordinator gathers evidence, checks numbers, and writes artifacts. - Models inherit via
model: inherit; pin a supported/modelID only when requested. OmittedreasoningEffortuses the model default (not necessarily the session effort). LeavepermissionModeunset to inherit session policy. Agent settings (opens in a new tab)
Known limits
- Subagents retain deny rules and plan restrictions; this is app-level policy, not an OS sandbox. Do not relax permissions to complete a council.
- In headless CLI mode (
cmd -p), writing files and reading~/.commandcode/agents/outside the working directory require--yolo(or interactive approval). - If a long session drops before artifacts are saved,
cmd -p --resume <session_id>can finish artifact saving without re-running completed workers. - Keep execution on the requested host: remote/SSH IDE sessions do not automatically transfer personal agent files, and local file execution still sends model requests over the network.
- Reference docs: Permissions (opens in a new tab), Headless mode (opens in a new tab), IDE integration (opens in a new tab), network access (opens in a new tab).