/second-opinion:second-opinionfrom second-opinion
Gets a read-only second opinion on a diff or plan from another model family (codex/GPT or agy/Gemini) through the consult tool, choosing reviewer, model, effort and pass size, or runs a local two-reviewer gate. Use for risky changes, adversarial plan critique, breaking a tie on a borderline finding, or gating release-bound work.
Ships in second-opinion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ask an outside model to check your work. Its reply is evidence to weigh, not a verdict. Every call sends code or plan text to OpenAI (codex) or Google (agy).
Not for routine small diffs you are already confident about, or for making changes: a review that should also fix goes to review-loop (if installed), and a same-model bug hunt to /code-review. The consult plugin supplies the tool and installs with this one.
no codex app server, use agy for this review.notes. Gemini differs from both Claude and GPT, which gives the most independent view.Start from this matrix. Move one step up or down when the task warrants it, and say why.
| Task | codex model / effort | agy model / effort |
|---|---|---|
| Settle one borderline finding in a small diff | gpt-6-luna / medium | gemini-3.8-flash-medium / medium |
| Review a normal diff | gpt-6.1-sol / high | gemini-3.8-flash-high / high |
| Review a risky diff | gpt-6-astra / high | gemini-4-argon-high / high |
| Adversarial plan critique | gpt-6-astra / xhigh | gemini-4-hydrogen-xhigh / xhigh |
| High-stakes or irreversible plan | gpt-6-astra / max | gemini-4-hydrogen-xhigh / xhigh (no -max agy model exists; hydrogen-xhigh is the top suffixed one) |
Model names as of October 2026 (codex CLI 0.162, agy 1.4). The tiers are what matter: codex luna is fast and cheap, sol the workhorse, astra the frontier model; agy flash is fast, argon and hydrogen are the strong Gemini models. An agy model whose name ends in -low|-medium|-high|-xhigh needs effort equal to that suffix, and a model without such a suffix accepts any effort: agy rejects any other pair (such as gemini-4-argon-high with xhigh), and consult refuses it before spawning. Among suffixed models only hydrogen has an -xhigh variant, and none has -max. Model names change often, so if one is refused, list current ones with codex debug models or agy models and pick the nearest tier.
Efforts are low|medium|high|xhigh|max for codex. For agy, see the suffix rule above. codex ultra is refused because it spawns its own agents. agy accepts only gemini-* models, so the reviewer stays a different family from Claude. For codex, model and effort are optional: leave both out to use the codex-consult server's config. agy requires both.
One consult call is one pass, and it must finish inside timeoutSec (default 480, maximum 540). A large diff or a long plan at high effort does not, so split the review before you send anything.
Each pass gets one question:
notes.notes.Size each pass from these starting points, then adjust to the timings you see:
| Effort | Diff lines per pass | Plan sections per pass |
|---|---|---|
low, medium | up to about 800 | up to about 8 |
high | up to about 400 | up to about 5 |
xhigh, max | up to about 150 | up to about 2 |
Count changed lines with git diff --stat. A plan section is one heading with its steps. A change above the high row gets several passes, not a higher effort.
consult calls in one message.references/consolidation.md. The pass dimensions are disjoint, so expect few duplicates and verify each finding against the code.timeoutSec past 540.Call mcp__consult__consult. It is a tool, not a shell command. The engine's permission rules apply to it: an allow rule for mcp__consult__consult runs it unattended, otherwise the person is asked first, and an unattended session without the rule is refused.
| Input | Meaning |
|---|---|
cli | codex (default) or agy |
mode | diff reviews changes in a git repo. plan critiques the plan in notes |
model, effort | From the matrix above. codex: optional, the server config applies when omitted. agy: required |
notes | Plan mode: the plan and what to attack (required). Diff mode: the dimension or file group for this pass |
repo | Directory to review, inside the session's git repo. Defaults to that repo's toplevel. Pass it explicitly when you work in a git worktree |
base or commit | Diff mode. Default is the uncommitted changes. base: "main" reviews main...HEAD. commit reviews one commit |
timeoutSec | At most 540. Default 480 |
For example, a security pass over a branch:
mcp__consult__consult { cli: "codex", mode: "diff", model: "gpt-6-astra", effort: "high",
base: "main", notes: "Pass: security only. Files: auth/session.py, auth/tokens.py." }
Without cli, the reviewer is codex, on the server's own model and effort:
mcp__consult__consult { mode: "plan", notes: "Plan: <the plan>. Attack: the rollback path." }
Both reviewers run read-only. codex runs on the user's codex-consult server, which the user starts with the flags in the consult README: read-only sandbox, approvals refused, web search off, and the locked features and MCP servers off. consult refuses a server that is not locked, and a trusted repo whose .codex/ config sets anything beyond model and effort. A checked-out PR's .codex/config.toml cannot change codex's run: consult refuses such a repo when it is trusted, and codex does not apply the file in an untrusted one. AGENTS.md still applies. agy runs in an empty scratch workspace, without the reviewed repo (a repo's own .agents/hooks.json would run as code), and its hook allows only file-reading tools. For codex, the client interrupts the review at timeoutSec and the server keeps running. For agy, the tool kills the reviewer at timeoutSec.
A failed call returns a tool error and never an empty reply:
| Error | Do |
|---|---|
external review disabled | The repo opted out. Skip external review and say so |
secret-like files | Don't work around it. Say which file blocked the call |
consult: ... input error, needs a git repo, no changes found | Fix the call |
consult: no codex app server | The codex-consult server is not running. The user starts it (consult README, "Run the codex app server"). Until then, use agy for this review |
consult failed (socket-unsafe), (not-locked), (lockdown), (sandbox) | Don't retry. Report the message |
consult failed (auth) | The user runs codex login and restarts codex-consult |
consult failed (too-old) | The user upgrades codex and restarts codex-consult |
consult failed (limit) | Usage or rate limit. Switch reviewer once, then report |
consult timed out | Split the pass again (step 4) |
consult failed: agy exited N | The log tail is in the message. Switch reviewer once, then report |
unverified.adopted, rejected: <why>, or open.references/consolidation.md for merge rules and severity floors.second opinion: codex gpt-6-astra/high — risky diff (auth middleware). If you skipped external review on a non-trivial change, say why.When the risk is a single reviewer's blind spots rather than a different model family, and no code should leave the machine, read references/dual-review.md. It runs two independent Agent reviewers against one rubric and caps the fix loop at three rounds.
Create .claude/no-external-review at the repo root. The tool then refuses every call for that repo.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin second-opinion