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/bakabaka91/claude-batonWrote 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/bakabaka91/claude-baton/memo-retro)<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.
<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>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.00000 | $0.00719 |
| Opus 5 | $0.00000 | $0.00360 |
| Sonnet 5 | $0.00000 | $0.00144 |
| Haiku 4.5 | $0.00000 | $0.00072 |
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.
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
-
Detect the project from the current working directory. Construct the project slug by replacing all
/with-in the full path. -
Call the
list_checkpointsMCP tool withlimit: 10(no date) to fetch the 10 most recent checkpoints. -
Load current memory state:
- Read all files in
~/.claude/projects/[PROJECT_SLUG]/memory/ - Read
MEMORY.mdin the memory directory - Read the project's
CLAUDE.md(in the working directory root)
- Read all files in
-
Check git history for correction patterns:
git log --oneline -30Look for reverts, quick-follow fix commits (e.g., "fix: ..." immediately after a feature commit), and patterns indicating repeated mistakes.
-
Analyze the checkpoint data:
Extract learnings:
- Pull the
learningsarray from each checkpoint (may be empty or absent on older checkpoints) - Also extract signals from
decisions_made,blockers, andwhat_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
- Pull the
-
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]_
-
Ask: "Which changes should I apply? (all / list numbers / none)"
Do NOT modify CLAUDE.md, memory files, or any project files without explicit approval.
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.
- 9d ago First seen · 85 lines · 0 tokens per session scan A 8cf9b500e950
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.
Other commands, from other repositories
wrap-up
End-of-day ritual command. Prepares the day for closure and sets the stage for tomorrow.
sync
Mid-session context refresh command. Keeps context fresh and consistent during work.
report-issue
Open a atomic GitHub issue via gh. Bug report or feature request — auto-detect from user's description.
archive-tasks.en
Archive completed tasks into a date-organized workspace directory.
check-task.en
Check a task's current status and progress.
init-milestones.en
Initialize the repository's standard milestones taxonomy.