Portable LLM Council
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 agent tool schema first and select registered council-advisor, council-reviewer, and council-chair via subagent_type, a short description, and a self-contained prompt.
  • Never silently fall back to the unrestricted general agent (follow the stop rule in SKILL.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 passes run_in_background: true on the agent tool call; retain every returned agent_id.
  • Collect final results with agent_output (agent_id, action: wait), or check with action: 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_output does 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 tools rather 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 /model ID only when requested. Omitted reasoningEffort uses the model default (not necessarily the session effort). Leave permissionMode unset 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).