You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two agents in a tight loop. A generator drafts the work; a critic reviews against a rubric and either approves or returns specific revisions. Productized in 2025 by AutoGen, LangGraph, and the Anthropic Cookbook after Shinn et al.'s 2023 paper.
The technique works because the critic's role is narrow, it evaluates against a written rubric, not against vague preferences. That structure prevents the loop from sliding into infinite "looks good now / wait actually" oscillations.
Use for quality-critical work: spec drafts, security-sensitive code, content destined for users. The original Reflexion paper reported a lift of GPT-4 HumanEval pass-rate from 80% to 91%.
Avoid for latency-critical paths. Each iteration is a model call; budgets compound fast.
Critic prompt template
You are a critic. Read this draft:
---
{draft}
---
Score it against these criteria:
1. {Criterion 1, specific, falsifiable}
2. {Criterion 2}
3. {Criterion 3}
For any criterion the draft fails, return: { "criterion": "...", "fix": "..." }
If all pass, return "APPROVED".
Do not score for vibes; only against the listed criteria.
Rubric checklist, 3 properties of a good critic rubric
Specific. "Names match repo conventions" beats "code is well-named."
Falsifiable. A second reader applying the rubric should agree on pass/fail.
Tied to deliverable purpose. Rubric items that don't change the deliverable's success are noise.