Start studying
Module 11 · AI Agents Module contents
Module 11  ·  Card 7 / 17intermediate

Reflection and Self-Critique

Reflection adds a step where the agent reviews its own output before treating it as finished.

It is often as simple as a second call asking what is wrong with this and how would you fix it.

Models are noticeably better at spotting a flaw than at avoiding it first time.

It works best with real evidence to check against: a failing test, a schema error, a retrieved passage.

Reflecting on nothing but its own opinion tends to produce confident agreement rather than improvement.

Learn in depth ↓
Module 11 · AI Agents · 17 concepts
In depth  /  15 lines

Reflection and Self-Critique, in more detail

The simplest agent produces an answer and stops, with no stage at which it examines what it made.

Reflection inserts that stage: generate, critique, then revise in light of the critique.

The critique can come from the same model, a different model, or a tool that checks the work.

The reason it helps is an asymmetry that shows up repeatedly in evaluation.

Recognising that an argument has a gap is easier than producing an argument with no gaps.

So a second pass with a critical framing often finds defects the first pass could not avoid.

The quality of the critique depends almost entirely on what it can check against.

A failing unit test, a schema validation error or a stack trace makes the criticism concrete.

A retrieved passage lets the agent verify a claim rather than merely reconsider it.

With no such evidence, self-critique degrades into restating the answer more confidently.

Models are poor at detecting their own hallucinations, since the same weights produced them.

That is why separating the critic from the generator, by model or by prompt, helps.

Reflexion is the named variant that stores critiques as memory across attempts at a task.

Each retry therefore starts knowing what went wrong last time rather than repeating it.

Two rounds capture most of the benefit; beyond that the cost usually outruns the improvement.

Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
When is a reflection step most likely to actually improve the output?
AI Agents

17 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close