---
title: "Evaluator and optimizer pattern for AI agents | Agentic Pattern Language"
description: "One model writes, another judges against clear criteria, and the loop repeats until it passes. Sourced from Anthropic, Spotify, and Microsoft."
url: https://agenticpatternlanguage.com/patterns/evaluator-optimizer/
---

7 [Systems of agents](https://agenticpatternlanguage.com/#systems-of-agents)

# Evaluator and optimizer

One model writes, another judges against clear criteria, and the loop repeats until it passes.

Also called Maker-checker loop, Generator-verifier, Critic loop, Review and critique pattern

Anthropic, Spotify, Microsoft, Google Cloud

[How to read this](https://agenticpatternlanguage.com/notation/)

## Builds on

* [LLM as a judge](https://agenticpatternlanguage.com/patterns/llm-as-a-judge/)

## Alternatives

* [Human approval](https://agenticpatternlanguage.com/patterns/human-approval/)
* [Reflection](https://agenticpatternlanguage.com/patterns/reflection/)
* [Multi-agent debate](https://agenticpatternlanguage.com/patterns/multi-agent-debate/)

## The problem

The output must meet clear criteria, and a first draft often does not.

> This workflow is particularly effective when we have clear evaluation criteria, and when iterative refinement provides measurable value.

Anthropic [Building effective AI agents](https://www.anthropic.com/engineering/building-effective-agents) Dec 19, 2024

> This pattern is suitable for tasks where outputs must be highly accurate or must conform to strict constraints before they're presented to a user or used in a downstream process.

Google Cloud [Choose a design pattern for your agentic AI system](https://cloud.google.com/architecture/choose-design-pattern-agentic-ai-system)

## Therefore

> In the evaluator-optimizer workflow, one LLM call generates a response while another provides evaluation and feedback in a loop.

Anthropic [Building effective AI agents](https://www.anthropic.com/engineering/building-effective-agents) Dec 19, 2024

> The maker-checker loop is a specific type of group chat orchestration in which one agent, the maker, creates or proposes something, and another agent, the checker, evaluates the result against defined criteria.

Microsoft [AI agent orchestration patterns](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns)

> In the review and critique pattern, a generator agent creates an initial output, such as a block of code or a summary of a document. Next, a critic agent evaluates this output against a predefined set of criteria, such as factual accuracy, adherence to formatting rules, or safety guidelines.

Google Cloud [Choose a design pattern for your agentic AI system](https://cloud.google.com/architecture/choose-design-pattern-agentic-ai-system)

## In use

Spotify’s Honk coding agent

> we know from internal metrics that out of thousands of agent sessions, the judge vetoes about a quarter of them. When that happens, the agent is able to course correct half the time.

Spotify [Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3)](https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3) Dec 9, 2025

Prithvi Rajasekaran, Anthropic Labs

> Taking inspiration from Generative Adversarial Networks (GANs), I designed a multi-agent structure with a generator and evaluator agent.

Anthropic [Harness design for long-running apps](https://www.anthropic.com/engineering/harness-design-long-running-apps) Mar 24, 2026

## Where it breaks

Every round adds a model call, and an evaluator can approve work it has found problems in.

> The workflow requires at least one additional model call for the critic's evaluation.

Google Cloud [Choose a design pattern for your agentic AI system](https://cloud.google.com/architecture/choose-design-pattern-agentic-ai-system)

> Out of the box, Claude is a poor QA agent. In early runs, I watched it identify legitimate issues, then talk itself into deciding they weren't a big deal and approve the work anyway.

Anthropic [Harness design for long-running apps](https://www.anthropic.com/engineering/harness-design-long-running-apps) Mar 24, 2026

## Sources

1. [Building effective AI agents](https://www.anthropic.com/engineering/building-effective-agents) Anthropic, Dec 19, 2024
2. [Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3)](https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3) Max Charas, Marc Bruggmann, Spotify, Dec 9, 2025
3. [Harness design for long-running apps](https://www.anthropic.com/engineering/harness-design-long-running-apps) Prithvi Rajasekaran, Anthropic, Mar 24, 2026
4. [AI agent orchestration patterns](https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns) Microsoft
   > Maker-checker loops are also known as evaluator-optimizer, generator-verifier, critic loops, or reflection loops.
5. [Choose a design pattern for your agentic AI system](https://cloud.google.com/architecture/choose-design-pattern-agentic-ai-system) Google Cloud
   > The multi-agent review and critique pattern, also known as the generator and critic pattern, improves the quality and reliability of generated content by using two specialized agents, typically in a sequential workflow.

Added Nov 14, 2026
