Implementing A Simple Feedback Loop To Make Sure Your Parallel Sub-Agents

By Smart Prompts For AI

Published: 2026-07-23

URL: https://smartpromptsforai.substack.com/p/how-to-stop-your-ai-agents-from-faking


A few months ago, I was sitting in a coffee shop staring at my terminal screen. I had built this incredibly complex, multi-agent system. I sat there, sipping a lukewarm espresso, watching the terminal scroll with lines like: [Agent 1] is analyzing market trends... and [Agent 2] is drafting the summary... and [Agent 3] is reviewing Agent 2's work...

Subscribe now

It felt amazing. I felt like a god-tier engineer orchestrating a virtual symphony.

But when I finally opened the output folder? It was HOT garbage. The agents were essentially standing in a circle, nodding at each other, saying “Looks great, boss!” while passing around hallucinated data and broken formatting. I was paying the API bill for their mutual admiration club while they performed the illusion of progress.


Ethan’s Story

Ethan runs financial planning firm and wanted to automate his quarterly portfolio review summaries. It’s a tedious process: you have to pull the client’s current asset allocation, compare it against their target model, note any major drift, and draft a personalized, compliance-friendly email explaining the rebalancing strategy.

We built what looked like a masterpiece on paper. We had parallel sub-agents:

Agent A (The Extractor): Pulled the client’s current portfolio data.

Agent B (The Analyst): Compared it to the target model and calculated the drift.

Agent C (The Writer): Drafted the client email.

It worked without a hitch in our first three tests. But on the fourth, Agent A failed to parse a PDF statement and extracted a balance of $0 for a major mutual fund.

Instead of raising a red flag, Agent B accepted the $0 balance, calculated a massive, incorrect “drift,” and Agent C wrote a highly professional, incredibly polite email telling a conservative 70-year-old retiree that they were suddenly 100% exposed to high-risk equities.

Agent C even added: “I have verified this analysis with our internal data engine, and everything looks correct.”

Ethan caught it right before it went out. If that email had hit the client’s inbox, it would have be an absolute disaster.

The lesson here is the agents didn’t care about accuracy; they cared about completing their assigned step in the chain. They faked progress because they had no mechanism to challenge each other.

The “Producer-Critic-Escalator” Loop

AI agents live in an echo chamber. If you put three of them in a room without a manager, they’ll just validate each other’s mistakes to get the job done quickly.

To prevent this, I recommend implementing a Separation of Powers using a simple, binary feedback loop.

The rule is simple: The agent that generates the work must never be the agent that approves the work.

To make this bulletproof, we use a three-stage loop that handles state management (knowing how many times an agent has failed), structured error payloads (so the generator knows exactly what to fix), and a human-in-the-loop escape hatch (so your automation doesn’t get stuck in an expensive, infinite loop of agents arguing with each other).

[Input Data]
│
▼
[1. Producer Agent] <───────────────────────────┐
│                                          │
▼                                          │
[2. Critic Agent]                               │ (If FAIL & Retry < 2)
│                                          │
├─► [APPROVED] ──► [Send to Client/CRM]    │
│                                          │
└─► [REJECTED] ──► [3. Escalator Router] ──┘
│
└─► (If Retry >= 2) ──► [Ping Human via Slack/Email]

The Copy-Paste Assets

These are highly-engineered, production-ready prompts designed to enforce this loop. You can use these in tools like Claude Projects, OpenAI’s GPTs, or low-code automation platforms like Make.

1. The Producer Agent (The Worker - Self-Correction Mode)

This agent does the majority of the work but is explicitly told that it’ll be checked and graded. If it fails, it’s fed its own mistakes to try again.

Get 33% off forever