Skip to content

Retro: after the work is done

A review catches a mistake once. The next session makes it again, because nothing about the conditions that produced it has changed. Pocock’s retro skill looks back at a finished coding session and proposes changes to the agent’s environment rather than to the code. It closes the main flow, after code-review.

This page and Wayfinding bracket the main flow. Wayfinding is the meta-rational work before it: deciding what the problem is. Retro is the meta-rational work after it: evaluating and revising the system that produced the result. Between them the flow is rational, and should be.

META-RATIONAL · BEFORE Formulate the problem name the destination; state each question precisely before answering; decisions, not deliverables wayfinder: Charts work too big for one session as a map of decision tickets with a named destination.wayfinder RATIONAL · INSIDE The main flow a well-posed problem, worked inside formal systems: spec, tickets, tests, review. The rules decide what is correct. to-spec: Synthesises the conversation into a spec and publishes it to the tracker.to-spec to-tickets: Breaks a spec into tracer-bullet tickets with blocking edges.to-tickets implement: Implements a spec or tickets test-first at agreed seams.implement code-review: Reviews a diff for standards and spec conformance in parallel sub-agents.code-review META-RATIONAL · AFTER Revise the system change the environment, not just the code: automate what is mechanical, write down judgment, delete no-ops retro: Looks back at a session and proposes changes to the agent's environment, not the code.retro a cleared map a finished session THE ENVIRONMENT EVERY EFFORT STARTS FROM checks and hooks · coding standards · steering files · glossary and ADRs · navigation pointers · information access changes it the next effort starts from it
Wayfinder before the main flow, retro after it, and the environment every effort starts from

Chapman describes meta-rational activity as choosing, evaluating, and revising formal systems to fit the situation. In agent-assisted development the formal system is not only the code. It includes the checks that run on every commit, the standards the reviewer applies, the instructions every session loads, and the documents the agent can find. Retro treats that environment as the thing to improve. A mistake becomes evidence about the system that allowed it, not only a defect to repair.

The principle works through a sorting rule:

  • A mechanical mistake becomes a check. A banned API, an import shape, a file in the wrong place: anything with a fixed pattern goes into the repository’s linter, a pre-commit hook, or a CI job, whichever is cheapest given what the repository already has. Building the check is the default; writing the rule down is the fallback. Once mechanized, the matter is fully rational: the rule decides, every time, and nobody has to remember it.
  • A judgment call becomes a written standard. Cross-file consistency, matching the surrounding style, anything no check could stand in for, goes into the coding standards that code-review’s Standards axis reads. These stay matters of judgment, applied by a reviewer to a particular diff.
  • An instruction that changes nothing is deleted. Steering text that does not alter what the agent does costs context in every session and buys nothing.

Much of what retro changes is what Chapman calls circumrational work: the practical supports around a formal system that keep it usable, such as pointers to the right file, access to the logs, and a check that catches what the rules miss. Retro makes that work deliberate instead of leaving it to whoever notices.

In short: change the environment, not only the mistake. Hand machines what they can decide, and keep judgment for the rest. That keeps the line between rational and meta-rational work where it belongs.

Area The question When it applies
Navigation Was the right file hard to find? Would a pointer from one document to another have saved the search? The session spent a long time locating information.
Automated checks Could a lint rule, type check, test, or file-layout check have caught the agent’s mistake? Does the repository already have one that is unwired or broken? Does it have any guardrail at all? The agent made a mistake a machine could catch, or no pre-commit hook or CI job runs the repository’s checks.
Coding standards Should the reviewer enforce a new rule, or should an existing rule be removed or clarified? The reviewer missed a mistake.
Steering files Should instructions in AGENTS.md move into standards or checks instead? The steering file is large, in the repository or in the user’s global settings.
Tool economy Were tool calls expensive, or is some custom tool wasteful with context? The agent made a costly call.
No-ops Which instructions in the steering files change nothing? The steering files are large and unwieldy.
Information access What could the agent not see that it needed: server logs, read-only access to a third-party service? A crucial fact was unavailable to the agent.

It reads the session’s own record (the current session by default, or a log you point it at) and presents its candidates ranked by severity. It changes nothing until you accept one.

The implementing agent carries the heaviest load: it explores, writes code, and debugs failures, and every instruction it must remember competes with that work. The reviewing agent receives a diff and needs to do none of that. So standards belong with the reviewer, not in instructions the implementer has to hold. AGENTS.md, which every session loads, should hold little more than pointers to other documents. CODING_STANDARDS.md is read during review, not during implementation. See repository layout and reviewing what the agent built.

Run it at the end of a build, especially one that went sideways, in the session it looks back on and before clearing it, so its record is intact. After clearing, point it at the session’s log. After a hard bug, run it once the fix is in, to ask what would have prevented the bug or caught it sooner. Where the answer is that no good seam exists to test at, the next step is improve-codebase-architecture.

Retro is a typed command. It runs only when you invoke it.

  • A retro that only adds rules. Every session yields new standards and new instructions, and none are ever removed. This is new process rather than new software, the signal on when meta-rationality becomes the mess. Accept proposals that turn a rule into a check or delete an instruction before those that add text.
  • A mechanical rule left as text. The rule stays in AGENTS.md or the standards file instead of becoming a check, and relies on memory where a machine would not forget.
  • Mechanism standing in for judgment. A lint rule that tries to encode a matter of taste rejects good code and gets disabled. Some things are judgment calls, and the sorting rule says to keep them so.
  • Fixing the code and stopping. The defect is repaired, the session is cleared, and the conditions that produced it are unchanged. The same mistake returns in the next session.
  • Running it after the evidence is gone. A retro on a cleared session, without its log, reconstructs what happened from memory and proposes changes for problems that did not occur.
  • Matt Pocock, retro, skills repository version 1.3.1 of the Claude Code plugin.
  • Matt Pocock, ask-matt, for retro’s place as the last step of the main flow and its timing before a session is cleared.
  • Matt Pocock, code-review, for the Standards axis that reads the coding standards retro maintains.
  • David Chapman, Meta-rationality: An introduction, for meta-rationality as choosing, evaluating, and revising formal systems.
  • David Chapman, Meta-rationality: Outline, for the circumrational work that keeps a formal system usable.