After the mission comes the debrief, and its job is to change something before the next flight.

To test whether your agent's reflection step is real, diff the behaviour. Run the task, let it reflect, run it again. If run two is identical to run one, you paid for a paragraph.

Plausible self-critique is nearly free

LLMs are extremely good at producing sentences that sound like learning. "I should have been more thorough." "I should have verified the data before proceeding." These read as insight and change nothing, because they are not connected to anything the next run will encounter.

Real reflection has three stages, and an implementation that only asks the model to critique itself has built just the first:

  • Review: compare the outcome against the goal and name the specific step that failed. Not "be more careful"; "the address was not validated before the shipping call."
  • Revise: convert that finding into a concrete change, such as an updated procedure, a modified plan template or an added precondition.
  • Persist: store the change where the next run will actually hit it, rather than in a transcript nobody re-reads.

Stage three is where this connects to procedural memory. Reflection without a persistence path is a diary. Persistence without review is thrashing. Worse, a wrong lesson written into procedure gets applied to every run after it. Promote a lesson only once it holds up on an eval set for that task type, and version each one so it can be rolled back.

Measure it like a system property

Do not assess reflection by reading outputs. Track error rate on repeated task types over time.

If the line is flat, the debrief room is theatre, and you are paying for it on every run, in latency and tokens. That is worth knowing, because the instinct when an agent underperforms is to add more reflection, which makes a non-functioning loop more expensive rather than more effective.

Where it earns its place

Add it where mistakes are expensive or hard to detect. Skip it on simple, verifiable, low-stakes tasks. There, extra reasoning is pure latency, and the agent will happily generate a thoughtful critique of a task that was already correct.

And cap the loop at a fixed number of rounds, with an early stop when a round changes nothing. Revise-critique-revise with no budget converges on your rate limit.

Start with one repeated task type. Record its error rate, run the diff test above, and find the stored change the second run actually read. If you cannot point to one, the reflection step is adding commentary to your trace and cost to your bill, and it should come out until it has a persistence path.

Terms in this piece

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Jun 27, 2026
Disciplines

Short mental models: one idea, why it matters, what to do about it.

Comparison · · 1 min read

LangGraph vs writing the agent loop yourself

Two ways to write the same supervisor, an explicit state graph or a loop your own code owns on the model API. Compared on control flow, tracing, testing, checkpointing and what each makes hard.