بنقرة واحدة
multi-cli-runtime
Internal helper contract for calling the multi-cli-companion runtime from any multi:* subagent
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Internal helper contract for calling the multi-cli-companion runtime from any multi:* subagent
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Rewire which CLI handles which role in cc-multi-cli-plugin, OR diagnose/work around an upstream CLI quirk via env vars and config files. Use when the user asks to swap CLIs, change a subagent's target CLI, add or disable a subagent or command, restrict a CLI to read-only, hardcode a model, or change how a role frames its prompt — and also when a CLI is misbehaving (hangs, missing tools, broken release) and the user needs operator escape hatches like CURSOR_AGENT_PATH or AGY_CLI_PATH or OPENCODE_CLI_PATH, or per-CLI MCP config tuning. Works for any CLI in the marketplace — the four default CLIs (Codex, Cursor, Antigravity, OpenCode) and any additional CLIs the user added via the multi-cli-anything skill. Trigger phrases include "swap Codex and Cursor", "make Antigravity the researcher", "disable cursor-explore", "restrict Codex to read-only", "change which CLI handles implementation", "add /<cli>:<command>", "only install the plugins I need", "hardcode a model for <some-role>", "change the framing for <role>",
Add a new CLI provider to cc-multi-cli-plugin (beyond the built-in Codex/Cursor/Antigravity/OpenCode). Use when the user asks to integrate another AI CLI like Aider, Qwen, or any CLI that can be driven headlessly (a `-p`/print mode with JSON output, an app-server/HTTP mode, or any structured transport). Trigger phrases include "add Aider to the plugin", "integrate Qwen", "hook up my custom CLI", "support another model via its CLI".
Internal helper contract for calling the multi-cli-companion runtime from Claude Code
Internal guidance for presenting multi:* helper output back to the user
Auto-detect plan files in conversation context and pass them to multi:* execute subagents by reference, not by paraphrase
Internal guidance for presenting Codex helper output back to the user
| name | multi-cli-runtime |
| description | Internal helper contract for calling the multi-cli-companion runtime from any multi:* subagent |
| user-invocable | false |
Use this skill only inside multi:* forwarding subagents (codex-execute, cursor-delegate, cursor-research, cursor-explore, antigravity-researcher, antigravity-explorer, opencode-delegate, opencode-researcher, opencode-explorer, etc.).
node "${CLAUDE_PLUGIN_ROOT}/scripts/multi-cli-companion.mjs" task --cli <cli> --role <role> [flags] --prompt "<text>"
Where <cli> is one of codex|cursor|antigravity|opencode (or any CLI added via the multi-cli-anything skill) and <role> is the subagent's logical role. Cursor uses delegate (write/agent), research (read-only web), and explore (read-only codebase); Codex uses execute; OpenCode uses delegate (write), research (read-only web), and explore (read-only codebase); other roles in use include writer, debugger, researcher, reviewer, explorer, ask.
multi:* subagent is a forwarder, not an orchestrator. Its only job is to invoke the companion once and return that stdout unchanged.git, direct CLI strings (cursor agent acp, codex exec), or any other Bash activity.cat, sleep, polling loops, or follow-up node calls.Treat these as runtime controls — strip them from the task text before forwarding, then re-add them as flags on the companion call:
--background / --wait — --wait/foreground is the default and is what you should run: the companion blocks until the CLI finishes, so your Bash call returns the real result. For long-running work, the PARENT command schedules background execution by running this subagent as a harness background task (which notifies the main thread on completion/failure) — NOT by passing --background. The companion's --background detaches a worker the harness can't see (no notification) and is only for explicit user-requested fire-and-forget polled via /multi:status.--model <name> — pass through verbatim. Leave unset unless the user explicitly asked for a model. (Antigravity ignores --model: its headless agy -p path is fixed to Gemini 3.5 Flash.)--effort <level> — only Codex accepts this (none|minimal|low|medium|high|xhigh). Other adapters ignore it. Pass through verbatim if present.--resume — translate to --resume-last.--fresh — do not add --resume-last, even if the user's text sounds like a follow-up.--write — default to --write for execute/delegate/writer/debugger/reviewer roles (these need to edit files); for read-only roles (research/explore/planner/researcher/explorer/ask) pass --read-only instead (it forces write off even if --write is also present). Honor explicit user override either way.--until-done — Codex, Cursor, and OpenCode. Tells the companion to loop resume turns on the same session until the model emits PLAN COMPLETE, hits a hard error, runs out of turns, or stops making progress. Pass through verbatim when the user opts in. Default off — only set when the user explicitly asked for autonomous run-until-done behavior. Antigravity rejects this flag. Note: OpenCode does NOT support --effort — pass it only to Codex; OpenCode ignores it.--read-only flag. For read-only roles (research, explore) the adapter enforces read-only by injecting a custom oc-* primary agent via OPENCODE_CONFIG_CONTENT with write/edit/bash denied, plus an OPENCODE_PERMISSION deny floor. Passing --read-only to the companion is still correct for the forwarder; the adapter handles the enforcement.--max-turns <N> — Codex and Cursor. Sets the autonomous-mode turn ceiling (default 30). Requires --until-done. Pass through verbatim if present.--plan <path> and --prompt-file <path> — both load the prompt body from a file. --plan is the user-facing alias; the companion's actual flag is --prompt-file. Translate --plan to --prompt-file on the Bash call. When either flag is present:
--prompt-file).--cwd if set, else CWD. Absolute paths always work.
See multi-plan-handoff skill for when Claude (the parent thread) should auto-add --plan based on conversation context.Always append 2>&1 to the Bash call so the parent thread can see runtime diagnostics if the companion fails.
task command exactly as-is.<CLI> <role> failed: <one-line reason from stderr or "no output">. Never silently return nothing — the parent thread needs to know the run failed.setup, status, cancel, or result, that is NOT a multi:* subagent dispatch — it is a /multi:* slash command the user runs directly. Do not call those subcommands from within a forwarding subagent.--background run, they poll /multi:status themselves.)