Adversarial second-opinion reviews for AI coding agents. Auto-gates risky plans before ExitPlanMode and routes them through Codex/Gemini/Opencode for a fresh-lineage critique — with a self-review fallback. Ships as a Claude Code plugin and a portable skill. - pghqdev/second-opinion
I kept noticing that my AI coding agent was a confident collaborator to a fault. It wrote migrations that almost worked, approved architectures from its own training distribution, and validated its own plans without pushing back. Asking the same model for a second opinion just got me a different roll of the same die.
second-opinion is a small skill and hook that fixes this. When you exit plan mode on something risky — migrations, auth, billing, infra, destructive ops, >3 files touched — it auto-intercepts and routes the plan through a different AI CLI (Codex, Gemini, or Opencode) for an adversarial review. If no external reviewer is installed, it falls back to a fresh-context self-review with an adversarial prompt. Either way you get a compact verdict: SHIP, REVISE, or RECONSIDER — with specific concerns and a simpler alternative if one exists.
Two design choices I care about:
1. It runs in a subagent so the reviewer's 5–20k reasoning tokens never pollute your main context.
2. The prompt and JSON schema force the reviewer to commit to agreement AND disagreement separately, so genuine concurrence is a real signal instead of reflex praise.
Install is one line:
curl -fsSL https://raw.githubusercontent.co... | bash
Also ships as a Claude Code plugin. MIT-licensed. Would love feedback — especially on the trigger heuristics and which other CLIs you'd want the dispatcher to try.
No comment highlights available yet. Please check back later!
About second-opinion on Product Hunt
“Adversarial plan review for AI coding agents”
second-opinion was submitted on Product Hunt and earned 1 upvotes and 1 comments, placing #529 on the daily leaderboard. Adversarial second-opinion reviews for AI coding agents. Auto-gates risky plans before ExitPlanMode and routes them through Codex/Gemini/Opencode for a fresh-lineage critique — with a self-review fallback. Ships as a Claude Code plugin and a portable skill. - pghqdev/second-opinion
second-opinion was featured in Productivity (649.7k followers), Open Source (68.3k followers), Developer Tools (511k followers) and GitHub (41.2k followers) on Product Hunt. Together, these topics include over 222.4k products, making this a competitive space to launch in.
Who hunted second-opinion?
second-opinion was hunted by PGHQ. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
Want to see how second-opinion stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.