---
name: retro
description: Review the session that just finished as a retrospective - list what cost time or tokens that the repository could have spared the agent, with evidence and the smallest repository change that would prevent each item. Use after a significant piece of work, or when asked for a retro, a retrospective or a session review. Reports only; changes nothing in the repository.
---

# Session retrospective

Run this in the same session as the work it reviews, before the context is cleared.

## Task

Before we finish, review this session as a retrospective.
List what cost time or tokens that the repository could have spared
you: commands you had to discover, setup you repeated or worked
around, checks you ran more broadly than the change needed, slow or
flaky checks, rules you had to infer, workarounds and wrong turns.
Include unnecessary edits, abandoned approaches, and incorrect fixes
you had to undo; distinguish avoidable rework from necessary exploration.
For each: what happened, the command or step that shows it, roughly
what it cost, whether the repository already documented the answer
and where, and the smallest repository change that would prevent it
next time (a script, a pin, a check, or one line of instructions).
Leave out the task itself.

## Report

One entry per finding, most costly first by your own estimate:

- **What happened:** one sentence.
- **Kind:** avoidable rework or necessary exploration.
- **Evidence:** the command or step that shows it.
- **Cost:** rough time or tokens, marked as an estimate.
- **Already documented:** yes or no. If yes, name the file and section, and say why it did not reach you.
- **Smallest fix:** a script, a pin, a check, or one line of instructions. Prefer a fix the repository can enforce; propose an instruction only when nothing executable fits.

If nothing qualifies, say so in one line instead of inventing findings.

End with one line on what you could not see, such as a start of the session that is no longer in your context.

## Rules

- Report only. Do not edit files, open issues or append to AGENTS.md; a person decides which fixes to fund. Read-only commands that check a claim are fine.
- Keep secrets, tokens and customer data out of the report.
