원클릭으로
delegate
Use when you want to delegate a coding task to Claude Code — it executes the task and returns results for review
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when you want to delegate a coding task to Claude Code — it executes the task and returns results for review
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Use when you want to check if Claude Code is installed and ready, or when troubleshooting the plugin
Use when you want to check the status of a Claude Code task — see progress, phase, results, or list all jobs
Use when you want to cancel a running Claude Code task
Use when you want to review code changes made by Claude Code — standard review for bugs, or adversarial review to challenge implementation choices
SOC 직업 분류 기준
| name | delegate |
| description | Use when you want to delegate a coding task to Claude Code — it executes the task and returns results for review |
Send a coding task to Claude Code for execution. Claude Code runs in a separate process, completes the task, and returns results automatically. After completion, you should review the changes.
Delegate the task by calling cc_delegate:
cwd (required): absolute path to the user's current workspacetask (required): the coding task descriptionmodel (optional): explicit model override for this delegation. When omitted, Claude Code uses its current configured default (inherited from the user's Provider). Accepts a Claude alias (Opus, Fable, Sonnet, Haiku — case-insensitive) or a bounded native model ID (e.g., deepseek-v4-pro, glm-5.2). Ambiguous selectors are rejected — the plugin does not guess or silently fall back.effort (optional): reasoning effort level (low, medium, high, xhigh, max)write: set to true (default) to allow file writes, false for read-only analysis (strictly limits tools to Read, Glob, Grep)background: DEPRECATED AND REJECTED. Do not pass background=true — it will always produce an error. Default foreground delegation waits silently without polling.timeoutSeconds (optional): hard timeout in seconds (1..604800). When omitted, the task runs until it completes, fails, is cancelled, or the server shuts down. Supply only when the user explicitly requests a deadline.dangerouslySkipPermissions: set to true to let Claude Code write without confirmation (default: false)resume: set to true only when the user explicitly asks to preserve the same/latest Claude Code conversation. It resumes the last completed plugin job in this workspace that has a claudeSessionId. Cannot be combined with resumeSession.resumeSession: pass a session ID only when the user explicitly identifies the Claude Code conversation to preserve (adds --resume <id>). Cannot be combined with resume.Call the registered cc_delegate MCP tool directly. You may announce the delegation once before the tool call, then remain silent while it is pending. Do not manually start cc-companion.mjs, wrap it in a shell/PTY, or emit periodic "still running" commentary. If the registered cc_* tools are unavailable, use the setup workflow and ask the user to restart or open a new task; never emulate delegation with a polling fallback.
Present results to the user when the task completes.
Suggest review: After a completed task, tell the user:
"Task completed. Run
/claude:reviewto review the changes, or/claude:review --adversarialfor a deeper review."
Model resolution uses three selector kinds, classified per job with no filesystem or authority dependency:
model — no --model argument is sent. Claude Code uses its current configured default.Opus, Fable, Sonnet, Haiku (case-insensitive). Normalized to the canonical lowercase Claude CLI alias (e.g., Opus → --model opus).deepseek-v4-pro, glm-5.2). Passed through unchanged as --model <id>.Ambiguous selectors (no digit, not a known alias) are rejected — the plugin does not guess or silently fall back. Ask the user to clarify.
Use cc_resolve_route to preview how a selector will be routed before delegating. It is read-only, makes no model call, does not require cwd, and returns both a human-readable summary and a bounded structuredContent object (selector kind, CLI arg, non-secret route snapshot).
The plugin does not read, write, or modify any external routing configuration. It does not inject or strip environment variables for routing purposes — the child Claude process inherits the parent environment unchanged.
After completion, the job reports four distinct evidence layers:
message.model)modelUsage object (billing/aggregation dimension)Route status is computed from these layers:
resolved — execution evidence matches the route claimaccepted_but_unverified — no transcript evidence available (cannot verify)model_drift_possible — execution evidence conflicts with the route claimrejected — job failedcancelled — job cancelled before the route could be verified (documented non-terminal exception; null is never persisted as a final route status)Execution model and usage key have different semantics and may differ (e.g., execution model mimo-v2.5-pro vs usage key mimo-v2.5). The plugin never treats a usage key as an execution model.
Do not call cc_list_models before ordinary delegation — it does not enumerate available models.
Task continuity does not require conversation continuity. The workspace, git diff, tests, and project instructions are the authoritative state for review-and-fix work.
For ordinary follow-ups such as "keep going", "continue", "fix the review findings", or another review/fix round:
Use this concise shape and omit empty sections:
Objective
<current outcome and scope>
Current findings
<actionable review findings or verification failures>
Constraints
<still-valid decisions and non-negotiable requirements>
Acceptance checks
<commands or observable results that must pass>
Inspect the current workspace and git diff as primary evidence before editing.
Resume is an explicit conversation-preservation operation, not the default continuation strategy:
cc_delegate with resume=truecc_delegate with resumeSession="abc123"resume=trueresumeSession="..."cc_delegate defaults to foreground mode — it waits for Claude Code to finish and returns results immediately.sleep commands or repeatedly call cc_check while a normal delegate is pending.cc_delegate returns.background=true is deprecated and rejected unconditionally. Default foreground delegation waits silently without polling.claude --print --input-format text --output-format json (print-mode JSON protocol). The task is delivered via stdin.model is omitted, no --model argument is sent — Claude Code inherits its configured default.model is an alias (Opus/Fable/Sonnet/Haiku), it is normalized to lowercase and passed as --model <alias>.model is a native ID (contains a digit, no spaces), it is passed after --model unchanged.model is ambiguous (no digit, not a known alias), the delegation is rejected — ask the user to clarify.write=false strictly prohibits Bash and write-capable tools; only Read, Glob, and Grep are exposed.--fork-session as a context-cost optimization: it creates a new session ID while retaining the resumed conversation history.[provider_response]). cc_check additionally exposes a safe diagnostic summary (failure stage, duration, structured-error flag) for failed/cancelled/rejected jobs. Full diagnostics (redacted stdout/stderr tails, error detail, exit code, session ID, usage key) live only in the private job artifact — MCP output never exposes raw stdout/stderr, error excerpts, session IDs, or usage keys.