memo-retro

memo-retro is a command for Claude Code from bakabaka91/claude-baton. It costs 0 tokens per session (719 once invoked), scanned A, original, MIT.

A command for reviewing recent project checkpoints and turning repeated lessons into memory updates. Checkpoints are saved records of work, decisions, and problems encountered during a project.

In plain words
What is it for?
Use it to inspect recent checkpoints, review project memory, look for correction patterns in commits, and suggest updates to the project’s memory files.
Why use it?
It helps reveal recurring mistakes and useful decisions that might otherwise be forgotten. It also compares recent work with existing project notes and Git history.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to inspect recent checkpoints, review project memory, look for correction patterns in commits, and suggest updates to the project’s memory files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bakabaka91/claude-baton/memo-retro
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/bakabaka91/claude-baton

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 memo-retro

README.md
[![agentmods](https://agentmods.dev/badge/commands/bakabaka91/claude-baton/memo-retro/github.svg)](https://agentmods.dev/commands/bakabaka91/claude-baton/memo-retro)
Your own site
<a href="https://agentmods.dev/commands/bakabaka91/claude-baton/memo-retro"><img src="https://agentmods.dev/badge/commands/bakabaka91/claude-baton/memo-retro/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 memo-retro

Your own site · 80×15
<a href="https://agentmods.dev/commands/bakabaka91/claude-baton/memo-retro"><img src="https://agentmods.dev/badge/commands/bakabaka91/claude-baton/memo-retro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 719 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.00719
Opus 5 $0.00000 $0.00360
Sonnet 5 $0.00000 $0.00144
Haiku 4.5 $0.00000 $0.00072

Measured 9d ago against content hash 8cf9b500e950, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

memo-retro scanned grade A with 0 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/memo-retro.md · 85 lines

What it actually says

Analyze recent checkpoints to surface learnings and suggest memory updates.

Run periodically (weekly or after major milestones) to close the learning loop.

Steps

  1. Detect the project from the current working directory. Construct the project slug by replacing all / with - in the full path.

  2. Call the list_checkpoints MCP tool with limit: 10 (no date) to fetch the 10 most recent checkpoints.

  3. Load current memory state:

    • Read all files in ~/.claude/projects/[PROJECT_SLUG]/memory/
    • Read MEMORY.md in the memory directory
    • Read the project's CLAUDE.md (in the working directory root)
  4. Check git history for correction patterns:

    git log --oneline -30
    

    Look for reverts, quick-follow fix commits (e.g., "fix: ..." immediately after a feature commit), and patterns indicating repeated mistakes.

  5. Analyze the checkpoint data:

    Extract learnings:

    • Pull the learnings array from each checkpoint (may be empty or absent on older checkpoints)
    • Also extract signals from decisions_made, blockers, and what_was_built

    Frequency analysis:

    • Count how many times each learning (or semantically similar learning) appears
    • Single occurrence = note only
    • 2+ occurrences = high confidence, propose as rule

    Cross-reference:

    • Is this learning already captured in a memory file? → skip
    • Is this learning already a CLAUDE.md rule? → skip
    • Is this a correction/preference? → propose as feedback memory
    • Is this about the project? → propose as project memory
  6. Present the report:

## 🔄 Retro — [PROJECT_NAME] — [DATE]

### 🧠 Memory Health

- 📁 Total memories: [count of files in memory dir]
- 📏 MEMORY.md line count: [N]/200 (⚠️ warn if >150)
- 🪦 Stale memories: [any referencing completed/outdated work]
- 🔀 Duplicate/overlapping memories: [any found]

### 📚 Learnings Summary

**🔁 Recurring (2+ times) — propose as rules:**

- [learning] — appeared in [N] checkpoints
- ...

**📌 Single occurrence — note only:**

- [learning]
- ...

### 🔍 Git Correction Patterns

[Reverts, quick-follow fixes that indicate recurring mistakes, or "✅ None detected"]

### 🛠️ Proposed Changes

**📝 Memory file actions:**

- ➕ **Create:** [new memory file if a pattern warrants it, with suggested filename and content]
- ✏️ **Update:** [existing memory with outdated info]
- 🔗 **Merge:** [overlapping memories to consolidate]
- 🗑️ **Prune:** [stale memories to delete]

**📐 CLAUDE.md rules** (only for recurring learnings not already captured):

1. Add to section [X]: "[exact rule wording]"
   _Reason: appeared in [N] checkpoints, e.g., [quote from learning]_
  1. Ask: "Which changes should I apply? (all / list numbers / none)"

    Do NOT modify CLAUDE.md, memory files, or any project files without explicit approval.

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. 9d ago First seen · 85 lines · 0 tokens per session scan A 8cf9b500e950

Subscribe to this mod's changes

memo-retro is a command published in the GitHub repository bakabaka91/claude-baton (25 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 719 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.