New here? Start this series at Day 31: Give an agent an outcome, a boundary and a stop condition first
- Day 31: Give an agent an outcome, a boundary and a stop condition first
- Day 32: Agent behavior is a loop, not a prompt
- Day 33: Plan before acting when actions cost money or carry risk
- Day 34: Tool access is where AI becomes operational risk
- Day 35: Agent memory is several stores, each with its own rules
- Day 36: Reflection is worth it only when it changes the next action
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.
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.
More on these topics
Comparison · · 8 min read
Direct APIs, MCP tools and Code Mode: three ways an agent reaches your systems
How I choose between hand-written tools, MCP tool calls and Code Mode by where the plan runs, and why I built codemcp to test it.
Decision note · · 2 min read
We built our own TypeScript orchestrator, and stayed on it
Why our enterprise AI platform runs agents on a TypeScript execution layer we started almost two years ago, and why reaching near-parity with the frameworks argued for staying.
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.
Discussion