Reflexion Prompting — AI Glossary

Reflexion is an agent prompting pattern in which, after a failed attempt, the agent generates a short verbal reflection on what went wrong and uses that reflection as additional context for its next attempt. It scales test-time compute by letting the agent learn within a single task without any weight updates — the "learning" lives in the prompt.