retrospection
Skill3 starsChanged 4 months agoMITView on GitHub
The learning-extraction procedure behind /retro and /meta-retro. Use when a significant task completes, when the Stop gate or 3-corrections nudge fires, when the user expresses frustration or strong approval, or when you finish anything you'd handle differently next time. Converts session experience into reviewed harness diffs — this is the ONLY mechanism by which the system improves, so under-triggering it means not learning.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- larsch/skillstheir own version, first seen Apr 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- larsch/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auto-healerSkill
- build-loopSkill
- calibrationSkill
- coordinateSkill
- eval-captureSkill
- follow-up-handlingSkill
- guardSkill
- harness-authoringSkill
- harness-pr-opsSkill
- host-assumption-bleedSkill
- labSkill
- language-selectionSkill
- learnSkill
- loop-prompt-architectSkill
- nested-reposSkill
- observeSkill
- roadmapSkill
- routing-learningsSkill
- specializationSkill
- structural-qaSkill
- stuck-detectionSkill
- vendoring-skillsSkill
- venture-buildSkill
- verifySkill
- windows-host-pathsSkill
- worktreeSkill
The file
Files
Retrospection
A retro that produces prose produced nothing. The output unit is a DIFF.
Procedure (also encoded in commands/retro.md)
- Gather signal, cheapest first:
harness corrections listfor this session (gold)- prediction misses (
harness stats, this session's ids) - strike-2/3 events from stuck-detection
- anything the user re-explained twice (you made them pay twice)
Then backfill skill VALUE tags for skills that visibly fired this session:
harness skill-fired <name> --outcome helped|neutral|hurt— evidence-based only (the skill changed/failed to change the outcome; unsure ⇒ don't tag). Fire counts alone can't catch a high-fire/low-value skill; /meta-retro prunes on hurt>helped, so untagged noise directly corrupts pruning. (provenance: roadmap item 9, session 975732da, 2026-07-05)
- Select <= 3. The highest-signal events only. A retro that proposes ten changes is noise wearing a process costume; three reviewed diffs beat ten unreviewed ones every time.
- Spawn the retro-miner agent with the transcript path + correction log. Fresh context matters: it reads what happened, not what you remember happening. Take its top events as candidates; you may veto with a reason.
- Route each via skill routing-learnings → write the artifact on a branch
retro/YYYY-MM-DD-slugin the HARNESS repo (never the project repo, unless the routing verdict was "project fact"). - Self-lint:
python3 lint/lint_harness.py. Fix violations now. - Audit: spawn harness-auditor on the diff. It checks for the four sins: weakening enforcement, duplicating an existing artifact, missing provenance, unfalsifiable claims. Address verdicts before proposing.
- Propose:
git pushthe branch andgh pr createwith the provenance template (commands/harness-pr.md). Auto-merge only if autonomy.json says this category has graduated — check, don't assume. - Mark done — TWO records (resolve
$HARNESSper /retro step 1):- ephemeral Stop-gate flag (silences this session's nudge; deleted at session end):
touch "$HARNESS/state/retro_gate_<session_id>"— use the ABSOLUTE trunk path; a relativestate/...lands in the active worktree's CWD, not the trunk, so the flag (and any backlog tracking) silently misses (forensic finding, session 9856a41f). - durable completion ledger (persists; /retro-backlog reads it to skip done sessions):
"$HARNESS/bin/harness" retro-done add <session_id> --slug <slug>.
- ephemeral Stop-gate flag (silences this session's nudge; deleted at session end):
What good output looks like
"User corrected import-sorting twice (sessions a1b2, c3d4) → PR adds PostToolUse format hook proposal + user-model entry (evidence: 2)." One sentence of why, one diff, one provenance line. That's a learning.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

