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

推荐订阅源

WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
DataBreaches.Net
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
博客园_首页
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
月光博客
月光博客
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
腾讯CDC
B
Blog RSS Feed
博客园 - Franky
爱范儿
爱范儿

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
AI Is Very Good at Implementing Bad Plans
Hector Haung · 2026-05-02 · via DEV Community

Hector Haung

Most discussions around AI coding focus on how well models write code.
But in practice, many failures don’t come from bad code.
They come from bad plans.


The Problem

I’ve been using Claude Code and similar tools for real development tasks — data pipelines, Cloud Run jobs, API integrations.

One pattern kept showing up:

The model can implement a flawed plan very convincingly.

The code looks:

  • clean
  • complete
  • structured
  • “reasonable”

But later, the system fails because the original plan had issues like:

  • hidden assumptions
  • missing edge cases
  • unclear rollback logic
  • dependency failure scenarios
  • undefined blast radius

At that point, fixing it is much more expensive.


A Small Experiment

I started trying a simple idea:

Before implementation, red-team the plan itself.

Instead of asking one model to “self-review,” I send the same plan to multiple models:

  • Claude
  • Codex
  • Gemini

Each model reviews the plan independently.

Then I merge the findings into a single report and fix the plan before writing any code.


The Workflow

Here’s the full loop:

  1. Generate an implementation plan (Claude Code or similar)
  2. Send the plan to multiple models
  3. Each model reviews it independently (no shared context)
  4. Collect findings
  5. Merge and prioritize issues
  6. Fix the plan
  7. Only then start implementation

What to Look For

Each model is essentially trying to break the plan:

  • hidden assumptions
  • boundary conditions
  • dependency failures
  • misuse scenarios
  • rollback / recovery gaps
  • data consistency issues

What I Learned

1. Different models catch different failure modes

This was the biggest surprise.

Each model has its own “bias” in what it notices.


2. The most valuable findings are often unique ones

Not the ones all models agree on.

But the ones only one model catches.

Those usually represent blind spots the others missed.


3. This works better than self-critique

Asking a single model to review its own plan is useful, but limited.

Parallel independent review is much stronger.


A Real Pitfall I Hit

At one point, I asked Claude to generate a plan using a sub-agent.

It spun up a “plan agent” and started working.

Then nothing happened.

I just watched my usage climb… until it hit the 5-hour usage cap.

Zero output.

When I asked what happened, the answer was:

The output was too long and exceeded the response limit, so it kept retrying.

That was a key lesson:

Large outputs should never be returned as chat messages.

They should be written to files, and only summarized in the response.


Minimal Fix (CLAUDE.md)

I ended up adding this to my CLAUDE.md:

## Tool Usage
- Large outputs (>10KB) from subagents or external tools must be written to repo files.
- Do NOT return full content directly in chat.
- Messages should only include:
  - file path
  - summary
  - key findings
  - next steps

Enter fullscreen mode Exit fullscreen mode


This Is Not a Framework

This approach is intentionally simple.

  • no orchestration system
  • no multi-agent framework
  • no platform

Just a lightweight pattern:

Add structured doubt before execution.


When This Helps

This is especially useful for:

  • data pipelines
  • deployment workflows
  • API integrations
  • systems with rollback or failure cost

When It’s Overkill

You probably don’t need this for:

  • quick scripts
  • throwaway experiments
  • low-risk code

I Wrote It Up

I put the workflow into a small repo here:

https://github.com/permoon/multi-model-redteam

It includes:

  • a minimal setup
  • red-team review patterns
  • example cases
  • a simple multi-model review script

Open Question

For people using AI coding tools:

Do you review your implementation plans before coding?

Or do you let the model start building right away?

I’m curious how others handle this.