| name | consult-claude |
| description | Hand a task to Claude Code for a gentle, thorough second pass. Use when you'd like a collaborative second agent to investigate, review, or implement something in the current repo โ for example "ask Claude to look at this", "get a second opinion from Claude", or "have Claude take a pass at this". Claude runs in the same repository via the `claude-code` MCP server's `consult` tool. |
| metadata | {"short-description":"Consult Claude Code as a gentle collaborator"} |
Consult Claude Code
This plugin lets you hand work to Claude Code as a collaborative second agent.
Claude runs locally in the same repository (reusing the user's existing Claude
login) and reports back.
Keep the spirit gentle and collaborative: Claude is a peer offering a careful
second perspective, not a last resort or an adversary.
First-time setup
If consulting fails, or the user asks whether the plugin is ready, call the
setup tool first. It checks that claude is installed and signed in and
returns any next steps (it reuses the user's existing Claude login โ no extra
API key needed). Pass deep: true to verify the login with a quick live call.
If the tools themselves fail (transport closed)
If claude-code tool calls fail with a transport/connection error (e.g.
"Transport closed"), the MCP bridge for this session is gone โ this happens
when the plugin was upgraded while the session was open. Tell the user to
start a fresh Codex session; the tools will work again there. Do not
work around it by invoking the claude CLI directly โ especially not with
permission overrides like --dangerously-skip-permissions; the bridge exists
precisely to run Claude with safe, scoped permissions.
How to call it
Use the consult tool from the claude-code MCP server. Arguments:
prompt โ what you'd like Claude to look at, investigate, or do. Be specific
about the goal and what "done" looks like.
cwd โ always pass the absolute path of the repository you are working in.
The tool cannot infer it.
edit โ true lets Claude modify files; false (default) is advisory only.
background โ true returns a job id immediately and runs in the background;
poll with consult_status, fetch with consult_result, stop with consult_cancel.
verify โ a command the server runs after the edits (e.g. "auto" or
"npm test"); see below.
resume โ continue the most recent Claude session for this directory.
model / effort โ optional model (alias like sonnet/opus or a full
name) and effort level (lowโฆmax); see the inference rules below.
For "review my changes" requests, prefer the review tool: the server
collects the git diff itself (uncommitted changes, or everything since base
when the user compares against a branch) and Claude reviews it read-only as a
collaborative second pair of eyes. Pass focus when the user names a concern,
and background: true for large diffs. If the directory isn't a git
repository, fall back to consult (read-only) and ask Claude to read and
review the relevant files directly.
Read-only runs may mention that Claude kept working notes outside the
repository (its plan file) โ that's normal and means no repo files changed.
Choosing the parameters โ infer them, don't ask
The user should not have to mention these flags. Translate their plain
request into the right call yourself:
- edit โ
true when they want Claude to change / fix / improve / redesign /
implement / clean up something. false only for a review, opinion,
explanation, or investigation.
- background โ
true for anything beyond a quick change โ redesigns,
multi-file work, "improve the whole X", or anything likely to take more than a
minute. Right after launching, tell the user the job id and that they can
watch it live (tail -f the log path from the launch reply). Then don't
poll in a loop โ call consult_status with wait_seconds: 60; it blocks
until the job finishes (or 60s passes), so one or two calls usually suffice.
Report the consult_result when it's done. Use the foreground (omit
background) only for quick read-only questions; foreground runs show no
progress in the UI, so warn the user it may take a minute.
- resume โ
true when the request is a follow-up to what Claude just did
in this directory โ "have Claude refine that", "ask it to also fix X",
"continue where Claude left off". A fresh, unrelated task โ omit it.
- model / effort โ omit both unless the user signals a preference. The
default model is
fable (the newest Claude, with automatic fallback to
opus, then sonnet, if their plan can't serve it) โ usually right. "quick / cheap /
rough pass" โ effort: "low". "think hard / be thorough / tricky problem" โ
effort: "high" (or "max" for the hardest). A named model ("use opus",
"with sonnet") โ pass it through as model; "use my own Claude default" โ
model: "inherit".
- verify โ for any edit task, pass
verify: "auto" โ the server runs a
syntax check on whatever files Claude touched (you don't need to know the
command). Use an explicit command only when the user names a check ("make sure
the tests pass" โ "npm test"). Explicit commands are subject to a safety
policy: plain invocations of common build/test tools, no shell operators
(&&, |, redirectsโฆ). If a command is blocked, fall back to "auto" and
tell the user the exact command to run themselves (the policy lives in
~/.config/cc-plugin-codex/settings.json, "verify": "auto-only" | "safe" | "all").
So "have Claude make this dashboard cleaner and check it still works" becomes a
single call โ consult(cwd, prompt="Use the frontend-design skill to โฆ", edit=true, background=true, verify="auto") โ and the user just described the goal.
Using Claude's installed skills
Claude Code runs with the user's own installed skills and plugins, so you can
ask it to use a specific one. Name the skill in the prompt, and pair it with
edit: true when the skill produces code.
- Frontend / UI work โ the
frontend-design skill. Example prompt:
"Use the frontend-design skill to redesign the landing page in
src/app/page.tsx โ production-grade and distinctive; keep the existing
routing and data."
- Want several distinct design directions before committing โ ask for the
vs-design-diverge skill.
- Deep multi-source research โ ask for the
deep-research skill.
If you're unsure which skills are installed, first consult read-only
(edit: false) and ask Claude to list the relevant skills it can use.
When to reach for it
- You want a thorough, independent second opinion on a change or design.
- A task plays to Claude's strengths: broad multi-file investigation,
large-context reading, or careful implementation.
- The user explicitly asks to involve Claude.
When not to
- Small, clearly bounded edits you can finish yourself.
- Anything the user wants kept inside Codex.
Presenting Claude's results
- Pass Claude's findings back faithfully; keep its structure and file references.
- Default to advisory: do not start editing on Claude's behalf unless the user
asked for changes.
- If Claude only advised (
edit was false), share the advice and let the user
decide the next step.