{"slug": "give-your-ai-cli-a-second-opinion-in-a-second-terminal", "title": "Give Your AI CLI a Second Opinion — In a Second Terminal", "summary": "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.", "body_md": "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.\n\nIt's also the only opinion you've got.\n\nGetting 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.\n\nOpen 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.\n\n(If you already run `tmux`\n\n, 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.)\n\nThe easy way to get this wrong is asking the second model the same vague question. Here's what to do, in order:\n\nThat's the whole technique: two independent sessions, and the discipline to paste the answer instead of the question.\n\nCross-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.\n\nI 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](https://tools.bradpenney.io/efficiency/multiple_ai_clis_tmux/?utm_source=devto&utm_medium=referral&utm_campaign=terminal_pathway_teaser) / [full pathway](https://www.bradpenney.io/pathways/nothing-but-a-terminal?utm_source=devto&utm_medium=referral&utm_campaign=terminal_pathway_teaser).\n\nHas 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?", "url": "https://wpnews.pro/news/give-your-ai-cli-a-second-opinion-in-a-second-terminal", "canonical_source": "https://dev.to/bradpenney/give-your-ai-cli-a-second-opinion-in-a-second-terminal-dea", "published_at": "2026-08-10 01:23:13+00:00", "updated_at": "2026-08-10 01:46:13.271779+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "ai-tools"], "entities": ["Brad Penney", "Claude Code", "Codex CLI", "Gemini CLI", "tmux"], "alternates": {"html": "https://wpnews.pro/news/give-your-ai-cli-a-second-opinion-in-a-second-terminal", "markdown": "https://wpnews.pro/news/give-your-ai-cli-a-second-opinion-in-a-second-terminal.md", "text": "https://wpnews.pro/news/give-your-ai-cli-a-second-opinion-in-a-second-terminal.txt", "jsonld": "https://wpnews.pro/news/give-your-ai-cli-a-second-opinion-in-a-second-terminal.jsonld"}}