cd /news/developer-tools/give-your-ai-cli-a-second-opinion-in… · home topics developer-tools article
[ARTICLE · art-89743] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Give Your AI CLI a Second Opinion — In a Second Terminal

Developer Brad Penney proposes a technique for debugging with AI command-line tools: run two separate AI CLI sessions in different terminals and have the second model critique the first's answer. This provides a second opinion without paging a colleague, and Penney advises pasting the answer rather than the original question to get an independent check. The method is part of a larger terminal-based debugging pathway.

read2 min views1 publishedAug 10, 2026

You're mid-incident or mid-debug. You ask an AI CLI to explain a stack trace, and it comes back with a confident, specific, plausible-sounding root cause.

It's also the only opinion you've got.

Getting a second opinion used to mean paging a colleague in an incident, or breaking their flow during a debug session. Now it can mean opening a second terminal and asking a different model to critque the answer of the first.

Open two terminals — two windows, two tabs, whatever you already use. Run one AI CLI in each: Claude Code, Codex CLI, Gemini CLI, any combination. The only requirement is that they're genuinely separate sessions with separate context — nothing you tell the first one is visible to the second unless you paste it there yourself.

(If you already run tmux

, splitting panes instead of alt-tabbing between windows is a nicer way to do this once you're doing it often. Worth knowing about, not required to start.)

The easy way to get this wrong is asking the second model the same vague question. Here's what to do, in order:

That's the whole technique: two independent sessions, and the discipline to paste the answer instead of the question.

Cross-examining every question doubles your round-trip time for a fix you were probably going to get right anyway. Use your judgement to know when it's actually worth it: a fix about to touch production is worth it, a syntax question doesn't. That line isn't obvious the first few times — expect to over-check things that didn't need it, and skip it on something that did, before it turns into a habit instead of a rule you have to think through.

I wrote this up as one step in a longer pathway on debugging with nothing but a terminal (grep, jq, git, and yes, tmux, all building toward this) — if you want the full "when to bother" breakdown: Multiple AI CLIs, One tmux Session / full pathway.

Has anyone pushed this past two sessions, or cross-examined between more than two vendors' CLIs at once — does the signal hold up past a second opinion, or does it just get noisy?

── more in #developer-tools 4 stories · sorted by recency
── more on @brad penney 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/give-your-ai-cli-a-s…] indexed:0 read:2min 2026-08-10 ·