惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
量子位
S
SegmentFault 最新的问题
博客园 - 聂微东
博客园 - 【当耐特】
J
Java Code Geeks
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
V
V2EX
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why I Built a Tool That Makes Two AIs Argue With Each Other
Noetherly · 2026-05-17 · via DEV Community

Noetherly

Why I Built a Tool That Makes Two AIs Argue With Each Other

I use AI models heavily — Claude, Codex, Gemini — and I kept noticing the same pattern: one AI gives me a confident answer, I ship it, and a problem I didn't think of shows up later.

The fix wasn't to find a better model. It was to stop asking one model.

When I started routing the same question to two models independently, then comparing their answers, the quality of my decisions improved noticeably. Not because one model was smarter. Because the disagreement itself was informative.

But doing this manually is painful. You copy the question, paste the context, wait, read two long answers, mentally diff them, paste one answer back to the other model, wait again. On a good day you do this once. Usually you skip it.

So I built WhaleCouncil — a CLI tool that automates the loop.


What it does

council review --models claude-cli,claude-cli --rounds 2 \
  "Should I use Redis or Postgres for session storage?"

Enter fullscreen mode Exit fullscreen mode

Round 1 — each model answers independently, without seeing the other's response. This matters. If model B reads model A's answer first, it anchors on it. You get a polite agreement, not an independent opinion.

Round 2 — each model sees the other's Round 1 answer and is asked: do you change your position? What do you still disagree with, and why?

Synthesis — a judge model (by default, the same Claude you already have) reads both rounds and extracts the structural diff: what they agree on, where they actually diverge, what fact would resolve the disagreement, and what to do next.

Here's what that looks like on the Redis vs Postgres question:

◆ Round 1
claude-cli ✓  Default: Redis. Session access is high-frequency, 
              short-TTL, key-value — Redis's home turf. Native 
              EXPIRE beats a Postgres cleanup job every time...

claude-cli ✓  Default: Redis. Unless you have a specific reason,
              don't add Postgres just to avoid a new component.
              The access pattern decides this...

⚡ Disagreements
  ▸ Greenfield default: Response 1 says start with a Postgres 
    table for simplicity, migrate later. Response 2 explicitly 
    warns against this ("don't stuff Postgres in to save a 
    component"). Same facts, opposite tiebreaker.

  ▸ Postgres table design: Response 1 recommends partitioned 
    table + drop old partitions. Response 2 recommends UNLOGGED 
    TABLE. UNLOGGED wipes on crash — contradicts the "choose 
    Postgres for durability" argument both share.

◆ Round 2
claude-cli ✓  I've seen the other answer. I'm updating my 
              position: the UNLOGGED TABLE recommendation was 
              wrong — it drops crash durability, which undermines
              the whole reason to pick Postgres...

claude-cli ✓  After seeing the other response, I'm qualifying 
              my "default Redis" claim. The right first question 
              is: do you already run Redis? If not, adding it 
              for sessions alone may be premature optimization...

→ Synthesis
  Converged on: Redis is the right default when Redis already 
  exists in the stack. Both corrected the UNLOGGED TABLE 
  recommendation in Round 2.

  Remaining: greenfield default — start with Postgres table vs 
  add Redis from day one. This resolves to one question: what 
  is expected session QPS?

  Next step: answer (a) do you already run Redis, (b) expected 
  QPS, (c) do you need forced logout/revocation?

Enter fullscreen mode Exit fullscreen mode

The two models came in with different tiebreakers. Round 2 surfaced that one of them had an internal inconsistency (recommending UNLOGGED TABLE while arguing for Postgres's durability). They both corrected themselves after seeing each other's answers.

That's not something a single model run gives you.


One AI vs two AI is a qualitative difference

When you ask one model, you get one perspective. It might be wrong. It might be missing an option. It might be confidently hallucinating a detail. You have no way to know from the answer itself.

When you ask two models independently:

  • If they agree → you have corroborating evidence
  • If they disagree → the disagreement tells you something the answers themselves don't: there's a real tradeoff, an unstated assumption, or a missing input
  • If one changes position in Round 2 → the other's argument was stronger

The value isn't in the answers. It's in the diff.


No API key required

WhaleCouncil works with local subscriptions — if you have Claude Max or a Codex subscription, you already have what you need:

pip install whalecouncil
council init   # creates ~/.council.toml
council review --models claude-cli,gemini-cli,codex-cli "your question"

Enter fullscreen mode Exit fullscreen mode

The claude-cli, gemini-cli, and codex-cli adapters drive your local claude, gemini, and codex binaries. No API keys needed — your existing subscriptions work out of the box.


Works with pipes

# Code review
cat auth.py | council review --models claude-cli,claude-cli \
  "Any security issues?"

# Diff review before merging
git diff main | council review --models claude-cli,claude-cli \
  --rounds 2 "What could go wrong with this change?"

# Save to file
council review --file design.md --output markdown > report.md

Enter fullscreen mode Exit fullscreen mode


The design principle

Agent evaluation should measure work, not words.

WhaleCouncil doesn't try to find the "best" model. It uses disagreement as signal. The point is not to get a better answer — it's to surface the questions you should be asking before you commit to an answer.


Try it

pip install whalecouncil

Enter fullscreen mode Exit fullscreen mode

GitHub: openwhale-labs/whalecouncil

Early days — issues, PRs, and use cases welcome.