Skip to content

Agent Reflection

Definition

Agent Reflection is a pattern where, after completing a step or episode, the agent analyzes its own reasoning, actions, and observations, forms textual criticism, and uses it as additional context for future iterations.

Place in the Loop

flowchart LR
    A[Action] --> B[Observation]
    B --> C[Reflection]
    C --> D[Plan Adjustment]
    D --> A

Reflection is embedded in the Agent Loop and can be stored in long-term Agent Memory for reuse.

Forms

Form Trigger
Step-by-step after each action
Episodic after completing a task
Hierarchical at the level of subtasks and plans

Limitations

  • Increases the number of model calls and cost.
  • Can degrade with excessive self-criticism without external validation.
  • Requires metrics to evaluate usefulness: see Agentic Evaluation.

See Also