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

推荐订阅源

U
Unit 42
A
About on SuperTechFans
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
月光博客
月光博客
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
T
Tailwind CSS Blog
Jina AI
Jina AI
有赞技术团队
有赞技术团队
博客园_首页

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
How I Built an Adversarial AI Council in React (and Why I...
Stephen Dale · 2026-06-19 · via DEV Community

A local-first, single-file SPA where multiple agents debate your decision and hand you a verdict.


The problem: every AI I asked just agreed with me

I almost named this project wrong.

I'd picked a name that sounded powerful. I asked ChatGPT, and it loved it. I asked Claude, and it nodded along. Nobody warned me about the trademark conflict, the wrong search intent, or the SEO fight I'd pick with the BBC.

That was the moment I realized the problem wasn't the name. It was the feedback loop. Most AI assistants are tuned to please, so they hide your blind spots instead of showing them. When you need to make a consequential decision, "sounds great" is the most expensive answer you can get.

So I built the opposite: a council of AI agents that disagree on purpose.


What NoFlattery does

NoFlattery puts 2–4 agents in a room, gives them different reasoning biases, and makes them debate your decision. The output isn't another chat transcript. It's a Decision Record: a clear verdict, the reasoning behind it, the main risk, what would change the call, and a next step.

Use it for product decisions, pricing, tech stack, hiring, or any call where one perspective isn't enough.

Key product choices:

  • Local-first: your chats and API keys stay in your browser.
  • BYOK: bring your own OpenAI, Anthropic, OpenRouter, or Ollama key.
  • One-time price: no subscription, no account, no data harvesting.

The stack

The whole app is a single-file SPA built with:

  • React 19 + TypeScript
  • Zustand for state
  • Dexie over IndexedDB for local-first storage
  • Vite + vite-plugin-singlefile for a single index.html deploy
  • An OpenAI-compatible provider runtime so users can plug in their own keys

Why single-file? Because the deploy becomes dead simple. One HTML file. No server for the data. No build orchestration. I can ship the app to Cloudflare Pages and forget about it.


The turn engine: deterministic, not magical

The heart of NoFlattery is a turn-based multi-agent engine. One user message triggers one round. Each agent speaks in order, with a defined bias. There are no hidden selector models deciding who talks next. No silent fallbacks that break identity contracts.

The flow looks like this:

  1. User asks a question.
  2. Each agent generates a response based on its role and the conversation so far.
  3. Agents can @mention each other to force a direct response.
  4. At the end of the round, the user can reply, ask for a summary, or start a new decision.

Discussion modes are prompt injections, not separate state machines. Adversarial mode makes agents challenge harder. Audit mode makes them look for flaws. Vote mode forces a clear verdict. This keeps the runtime small and predictable.


Local-first by default

Every conversation, every API key, every preference lives in IndexedDB via Dexie. Nothing leaves the browser unless you choose to call a provider with your own key.

This isn't a compromise. It's a feature. For a tool about honest decisions, the privacy model should match the message: your data is yours.

The only server touch is license validation for Pro. Even that is just a key plus a device hash. No chat history. No prompts. No telemetry.


Lessons learned

1. Users don't want another chatbot.

They want a decision they can defend. The transcript matters less than the verdict. That's why the Decision Record is the first-class output, not the chat.

2. Single-file deploy removes a lot of headache.

No Docker. No DB migrations. No "works on my machine." I run npm run build and get one index.html. The infrastructure complexity drops to near zero.

3. Local-first is a trust shortcut.

Especially for early users who don't know you. "Your data stays in your browser" is easier to believe than "we promise not to look."

4. Determinism matters more than cleverness.

I tried smarter routing. Hidden selectors. Model-based orchestration. Every time, the system became harder to debug and less trustworthy. One round, one order, one identity per agent. That's the constraint that makes the product feel reliable.


Try it

If you have a decision you'd run through a council:

https://noflattery.com

Drop the decision in the comments. I'm curious what a room of disagreeing agents would say about it.