# What is Reflection? Definition and meaning

A pattern where the model reviews its output, finds mistakes and revises it before finishing.

## Definition

**Reflection**: A pattern where the model reviews its output, finds mistakes and revises it before finishing.

In short: The agent critiques and improves its own work.

## When it is used

Raising quality on code, writing and reasoning tasks.

## Where it fits

Reflection belongs to **Patterns** in the [Agentic AI](/topics/agentic-ai) topic. These are the other terms in the same group:

- **[ReAct loop](/glossary/react-loop)**: An agent pattern in which the model writes a thought, takes an action with a tool, observes the result and repeats.
- **[Plan-and-execute](/glossary/plan-and-execute)**: A pattern where one step produces a plan and later steps execute and revise it.
- **[Tree-of-thoughts](/glossary/tree-of-thoughts)**: A search over multiple partial reasoning paths with evaluation and backtracking.
- **[Orchestrator-workers](/glossary/orchestrator-workers)**: One model breaks down a task dynamically and hands subtasks to workers, then combines their results.
- **[Multi-agent systems](/glossary/multi-agent-systems)**: A design in which specialized agents with separate contexts divide work and exchange results.
- **[Human-in-the-loop](/glossary/human-in-the-loop)**: Places human review at defined points of an automated workflow, especially before consequential actions.
- **[LLM-as-judge](/glossary/llm-as-judge)**: A model scores or compares responses against a rubric.
- **[Guardrails](/glossary/guardrails)**: Checks on inputs, outputs and actions that block unsafe, off-topic or malformed behaviour.

## Learn more

The full guide to **[Reflection](/tools/reflection)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [Redis](/glossary/redis) · Next term: [Regression boards](/glossary/regression-boards)
