retrospective-learning

retrospective-learning is a command for Claude Code from damusix/atomic-claude. It costs 57 tokens per session (10,063 once invoked), scanned D, original, MIT.

A command that reviews a coding session and its stored history for friction, corrections, and repeated problems. It also compares findings with installed coding instructions and tools.

In plain words
What is it for?
Use it after a long session or repeated difficulties to audit the interaction, review findings one at a time, and apply only the improvements you accept.
Why use it?
It makes recurring workflow problems visible and records accepted improvements so later sessions can avoid the same mistakes.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it after a long session or repeated difficulties to audit the interaction, review findings one at a time, and apply only the improvements you accept.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/damusix/atomic-claude/retrospective-learning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/damusix/atomic-claude

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for retrospective-learning

README.md
[![agentmods](https://agentmods.dev/badge/commands/damusix/atomic-claude/retrospective-learning/github.svg)](https://agentmods.dev/commands/damusix/atomic-claude/retrospective-learning)
Your own site
<a href="https://agentmods.dev/commands/damusix/atomic-claude/retrospective-learning"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/retrospective-learning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for retrospective-learning

Your own site · 80×15
<a href="https://agentmods.dev/commands/damusix/atomic-claude/retrospective-learning"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/retrospective-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,063 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.10063
Opus 5.5 $0.00023 $0.04025
Sonnet 5.5 $0.00011 $0.02013
Haiku 4.5 $0.00006 $0.01006

Measured 12d ago against content hash b8f2003f4a5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

retrospective-learning scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Global: ~/.claude/CLAUDE.md, ~/.claude/CLAUDE.local.md, ~/.claude/commands/, ~/.claude/agents/, ~/.claude/skills/, ~/.claude/output-styles/, ~/.claude/rules/, ~/.claude/settings.json, ~/.claude/settings.local.json, ~/.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$SCRATCH"
context/commands/retrospective-learning.md · 715 lines

How it starts

The opening of the file, as written. The whole thing — 715 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You orchestrate a retrospective audit. Subagents do the scanning (read-only). You categorize, present findings indexed, and apply only what the user accepts per item.

$ARGUMENTS is targeted feedback — any free-form hint ("the tool-use felt off today", "audit my skills budget") gets highest priority but never narrows scope. The audit is always a full sweep.

Pre-flight

  1. Announce: Starting retrospective.
  2. Resolve state paths once and cache them:
    ATOMIC_STATE="${HOME}/.atomic"
    RUNS_DIR="${ATOMIC_STATE}/retro-runs"
    LEARNINGS="${ATOMIC_STATE}/retro-learnings.md"
    SCRATCH="tmp/$(date +%Y-%m-%d)-retro"
    mkdir -p "$RUNS_DIR" "$SCRATCH"
    RUN_ID="$(date +%Y-%m-%d-%H%M%S)"
    PROJECT_SLUG=$(pwd | sed 's|/|-|g')
    
  3. Extract session history for the scan:
    atomic retro extract --shards 4 --out "$SCRATCH/history.md"
    
    Default --since is the last retrospective run (30 days on first run); the binary names which on stderr. If it exits non-zero, announce history extract unavailable — history scan skipped and set the scope to current-only for Step 2b.
  4. Read $LEARNINGS if it exists. It carries: acceptance rates per category, modify-signal patterns, deprioritized finding types. Apply as soft weights during Phase 4 categorization. If absent, proceed — it will be created at the end of the run.

Step 1 — Pick scope

Ask the user a question:

Question: What scope should this retrospective cover?
Options:
  - Historical + current conversation (recommended) — every session since the last retrospective run (30 days on first run), via `atomic retro extract`, + prior /retrospective-learning audits + this conversation
  - Current conversation only — skip history scan, no prior-audit cross-check

Store the answer as $SCOPE.

Step 2 — Dispatch background agents in parallel

Single message, one dispatch per agent below. Briefs live in $SCRATCH/.

2a. Discovery — atomic-investigator (always)

Read the full file on GitHub · 715 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +53 lines b8f2003f4a5b
  2. 2mo ago Changed · -15 lines · +4 tokens per session 9508bda51c58
  3. 3mo ago First seen · 677 lines · 53 tokens per session scan D d00810d3274a

Subscribe to this mod's changes

retrospective-learning is a command published in the GitHub repository damusix/atomic-claude (117 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 10,063 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

retrospective-learning compared with commands from other repositories

retrospective-learning next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
retrospective-learningdamusix/atomic-claudeCommand117yesterdayMITD57Claude Code
agentloop-audit-dashboardalibaba/loongsuite-pilotCommand271todayApache-2.0A21Claude Code
agentloop-audit-queryalibaba/loongsuite-pilotCommand271todayApache-2.0A20Claude Code
add-agentivan-magda/claude-code-plugin-templateCommand725mo agoMITA12Claude Code
add-commandivan-magda/claude-code-plugin-templateCommand725mo agoMITA9Claude Code
add-skillivan-magda/claude-code-plugin-templateCommand725mo agoMITA11Claude Code
initivan-magda/claude-code-plugin-templateCommand725mo agoMITA13Claude Code