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.
git clone --depth 1 https://github.com/damusix/atomic-claudeWrote 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.
[](https://agentmods.dev/commands/damusix/atomic-claude/retrospective-learning)<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.
<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>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.
| Model | Per session | Once 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 |
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" 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
- Announce:
Starting retrospective. - 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') - Extract session history for the scan:
Defaultatomic retro extract --shards 4 --out "$SCRATCH/history.md"--sinceis the last retrospective run (30 days on first run); the binary names which on stderr. If it exits non-zero, announcehistory extract unavailable — history scan skippedand set the scope to current-only for Step 2b. - Read
$LEARNINGSif 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)
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.
- 12d ago Changed · +53 lines b8f2003f4a5b
- 2mo ago Changed · -15 lines · +4 tokens per session 9508bda51c58
- 3mo ago First seen · 677 lines · 53 tokens per session scan D d00810d3274a
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.
retrospective-learning compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| retrospective-learningdamusix/atomic-claude | Command | 117 | yesterday | MIT | D | 57 | Claude Code |
| agentloop-audit-dashboardalibaba/loongsuite-pilot | Command | 271 | today | Apache-2.0 | A | 21 | Claude Code |
| agentloop-audit-queryalibaba/loongsuite-pilot | Command | 271 | today | Apache-2.0 | A | 20 | Claude Code |
| add-agentivan-magda/claude-code-plugin-template | Command | 72 | 5mo ago | MIT | A | 12 | Claude Code |
| add-commandivan-magda/claude-code-plugin-template | Command | 72 | 5mo ago | MIT | A | 9 | Claude Code |
| add-skillivan-magda/claude-code-plugin-template | Command | 72 | 5mo ago | MIT | A | 11 | Claude Code |
| initivan-magda/claude-code-plugin-template | Command | 72 | 5mo ago | MIT | A | 13 | Claude Code |