second-opinion

second-opinion is a command for coding agents from valpere/chorus. It costs 12 tokens per session (599 once invoked), scanned A, original, MIT.

A command that asks one selected AI agent for an independent view of a decision, design, or approach. You can choose among Gemini, Claude, Codex, Cursor, and Kilo, with a fallback if the chosen agent is unavailable.

In plain words
What is it for?
Use it to question an implementation plan, check whether a solution is over-engineered, assess codebase fit, or review naming and maintainability.
Why use it?
It provides a quick sanity check without coordinating a full panel of reviewers.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the chorus plugin — 5 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/valpere/chorus/second-opinion
Clone the repo
git clone --depth 1 https://github.com/valpere/chorus

Or install chorus, the plugin that ships this one along with the rest of its 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for second-opinion

README.md
[![agentmods](https://agentmods.dev/badge/commands/valpere/chorus/second-opinion.svg)](https://agentmods.dev/commands/valpere/chorus/second-opinion)
Your own site
<a href="https://agentmods.dev/commands/valpere/chorus/second-opinion"><img src="https://agentmods.dev/badge/commands/valpere/chorus/second-opinion.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 599 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00599
Opus 5 $0.00006 $0.00300
Sonnet 5 $0.00002 $0.00120
Haiku 4.5 $0.00001 $0.00060

Measured 4d ago against content hash 844fdbe4f95c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

second-opinion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/chorus/commands/second-opinion.md · 51 lines

What it actually says

Get a quick, independent second opinion from one agent on a decision, design choice, or approach.

Raw slash-command arguments: $ARGUMENTS

Agent selection:

  • Use --agent gemini (default), --agent claude, --agent codex, --agent cursor, or --agent kilo.
  • Default is Gemini — fastest responses, good for quick sanity checks.
  • Use --agent claude when you want depth and edge-case analysis.
  • Use --agent codex when you want a terse "is this over-engineered?" check.
  • Use --agent cursor for integration and codebase-fit questions.
  • Use --agent kilo for naming, readability, and maintainability questions.
  • If the chosen agent is not installed, the companion automatically falls back to the next available agent and tells you which one it used. Default fallback order (no --agent flag): gemini → claude → codex → kilo → cursor. When --agent is specified and unavailable, fallback iterates agentDefs insertion order instead.

Execution mode:

  • Default: foreground (quick — one agent only).
  • If --background is in arguments, run background mode.
  • If --json is in the arguments, the companion emits {"command":"second-opinion","results":[{name,output,error,exitCode}]} on stdout instead of delimited text. Warnings still go to stderr.
  • Strip --background, --wait, and --json before passing to companion.

Pre-flight: The companion checks whether the chosen agent is installed and falls back to the next available one if not. If no agents are available at all, it exits non-zero — tell the user to install at least one agent.

Foreground execution:

node "$CLAUDE_PLUGIN_ROOT/scripts/companion.mjs" second-opinion $ARGUMENTS

Background execution:

Bash({
  command: `node "$CLAUDE_PLUGIN_ROOT/scripts/companion.mjs" second-opinion $ARGUMENTS`,
  description: "Second opinion",
  run_in_background: true
})

Tell the user: "Second opinion started in the background. You'll be notified when it completes."

After the companion exits:

Return the agent's output verbatim — do not add your own commentary unless the user asks. The agent is instructed to give a verdict (approve / approve-with-caveats / reject), so the output is self-contained.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 51 lines · 12 tokens per session scan A 844fdbe4f95c

Subscribe to this mod's changes

second-opinion is a command published in the GitHub repository valpere/chorus (10 stars, last pushed 3mo ago), licensed MIT. It adds 12 tokens to every session and 599 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories

update-ai-versions

Look up the latest published versions of the AI coding assistants pinned in the Dockerfile and update the ARG lines in place.

sugarfreebytes/aidevtools · 24 tokens

yapper-help

The /yapper-help command displays full documentation for the Yapper plugin, including all modes, commands, behaviours, configuration options, and usage examples. This command is itself rendered in Professor mode by default, because a help document that is not thoroughly elaborated would be somewhat contrary to the…

dzan314/yapper · 0 tokens

yapper-review

The /yapper-review command performs a thorough, multi-line pull request review. Rather than posting terse inline comments like "this is wrong" or "use X instead," yapper-review produces fully-explained feedback that describes the issue, the reasoning behind the concern, the potential impact, and a concrete suggested…

dzan314/yapper · 0 tokens

yapper-commit

The /yapper-commit command generates a verbose, fully-explained Git commit message for the current change or a described change. The resulting commit message explains not just what changed, but why it changed, what problem it solves, and how the solution works — providing maximum context for future readers of the git…

dzan314/yapper · 0 tokens

yapper

The /yapper command activates the Yapper verbosity system. Once active, all subsequent responses in the session will be substantially expanded, elaborated, and enriched with definitions, transitions, and restatements.

dzan314/yapper · 0 tokens

mem-last

Prints latest memory cards for the current project.

djinn-soul/gemini-mem · 0 tokens