Reflexion Prompting Guide: Verbal Self-Reflection After Failures (2026)

How reflexion prompting works — the agent writes a reflection after each failed attempt, accumulating episodic memory that guides later retries.