Harness Retro
A retrospective for Claude Code. It reads your past sessions, finds where Claude kept getting it wrong, and proposes changes to your setup so it stops.
Every Claude Code session is saved as a transcript in ~/.claude/projects. Those transcripts record each time you had to say "no, I said...", stop Claude mid-turn, or watch it retry the same failing command. Most of that friction comes from a few causes. Claude was missing a fact, ignored a rule, or had no check to catch the mistake. Fix the setup and the friction stops coming back.
Harness Retro is a Claude Code plugin with one skill. It:
- Mines a project's transcripts with a fast local script (stdlib Python, no network).
- Groups the hits into recurring patterns, with quotes and dates as evidence.
- Reads your current CLAUDE.md files, memory, settings and skills, so it doesn't propose rules you already have.
- Proposes the lightest fix for each pattern: a memory entry, a CLAUDE.md rule, a hook, an allowlist entry, or a skill.
- Applies only the changes you approve.
Install
As a plugin:
/plugin marketplace add timini/harness-retro
/plugin install harness-retro@harness-retro
Or as a personal skill, without the plugin system:
git clone https://github.com/timini/harness-retro
cp -r harness-retro/plugin/skills/harness-retro ~/.claude/skills/
Requirements: Python 3.9 or later on your PATH as python3. There are no other dependencies.
Use
From inside the project you want to review:
/harness-retro:harness-retro # plugin install
/harness-retro # personal skill install
You can also ask in plain words, such as "run a retro on my last month of sessions here", "where has Claude been struggling in this repo?" or "learn from past sessions and update CLAUDE.md". You can name a time window, another project, or all projects.
What it looks for
| Signal | How it is detected | Weight |
|---|
user_correction | A human message (not the first in a session) that pushes back: "no", "I said", "still", "again", "why did you", "doesn't work", swearing. Scored higher for strong words, shouting, or a long run of tool calls before it. | 3 to 7 |
edit_revert | An edit whose new text restores text that an earlier edit to the same file removed | 3 |
edit_churn | The same file edited 6 or more times in one session (plan files excluded) | 2 to 5 |
tool_error_streak | 3 or more failed tool calls within the last 6 | 2 |
interrupted | You stopped Claude mid-turn | 2 |
permission_denied | A tool call you or the permission classifier blocked | 2 |
self_retraction | Claude says "you're right", "my mistake", "I misread" | 2 |
The regexes are deliberately loose. The miner aims for recall. The skill then has Claude throw out false positives, such as "don't" in an ordinary instruction, and opens the transcript around any hit it can't judge from the excerpt.
Ignored: task notifications, system reminders, messages from other Claude sessions (agent teams), compaction summaries, slash command output, and subagent transcripts.
Example
This is an invented example of the report format:
1. Runs the test suite with plain pytest instead of the repo's make target
Seen 5 times in 3 sessions (2026-10-02 to 2026-10-21).
"it's still failing, I said use make test-unit" (Fix flaky auth tests, 10-02)
"again, make test-unit, not pytest" (Add retry to client, 10-21)
Cause: missing knowledge. Nothing in CLAUDE.md mentions the make targets.
Proposed: add to ./CLAUDE.md
## Tests
Run tests with `make test-unit` (sets the env vars pytest needs). Never call pytest directly.
2. Declares the UI fixed without looking at it
Seen 3 times in 2 sessions. "the page still looks the same"
Cause: missing verification. A rule exists in ~/.claude/CLAUDE.md and was ignored twice.
Proposed: a skill step, not another copy of the rule ...
Apply which? [1] [2] [none]
How it works
plugin/
.claude-plugin/plugin.json
skills/harness-retro/
SKILL.md workflow Claude follows: mine, triage, group, check harness, propose, apply
scripts/mine.py transcript miner
.claude-plugin/marketplace.json makes the repo installable as a marketplace
tests/test_mine.py synthetic transcript tests
Transcripts can be hundreds of megabytes, far too big for a model to read. mine.py streams each <session>.jsonl, keeps only user, assistant and title records, and writes a ranked JSON summary capped at about 40 KB. Claude reads the summary, not the raw logs.
You can run the miner on its own:
python3 -I plugin/skills/harness-retro/scripts/mine.py [PATH] [--project=KEY] [--since 30d] \
[--max-sessions 200] [--max-bytes 40000] --out retro.json