Reflexion: Self-Critique, Feedback, and Iterative Improvement
Reflexion in one sentence
Reflexion is a pattern where the agent attempts a solution, evaluates it, writes a short âlessonâ, and uses that lesson to do better on the next attempt.
Why reflection works
LLMs are surprisingly good at catching their own mistakes when you ask them to review with a different lens: âCheck for missing constraintsâ, âVerify numbersâ, âLook for contradictionsâ.
A practical 3-pass structure
- Draft: produce the best answer/plan
- Critique: find issues (factual gaps, constraint violations)
- Revise: fix issues and produce final output
Where to store reflections
Store reflections as compact bullets in a long-term memory store (vector DB or key-value). You donât want to store entire conversationsâstore ârules of thumbâ the agent can reuse.
Anti-pattern: reflection loops forever
Set a max number of revisions. In practice, 1â2 rounds of critique is enough for most tasks.
What reflexion is NOT
Reflexion is not fine-tuning. Itâs runtime self-improvement via structured feedback.

