recap

A recap command that summarizes recent coding-agent sessions, including completed work, changed files, important decisions, and observations.

In plain words
What is it for?
Use it to review the last few sessions or summarize work about a particular topic or date range. It can identify recurring files, decisions, and activity patterns.
Why use it?
It saves you from reviewing each recent session and its event timeline manually.

Command

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.

agentmods
npx agentmods add commands/thisisyoyodev/claude-rag/recap
Clone the repo
git clone --depth 1 https://github.com/ThisisYoYoDev/claude-rag
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.00308
Opus 5 $0.00010 $0.00154
Sonnet 5 $0.00004 $0.00062
Haiku 4.5 $0.00002 $0.00031

Measured 2d ago against content hash f6357e28b323, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

recap 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 2d 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/recap.md · 27 lines

What it actually says

RAG Recap

Generate a recap of recent work: "$ARGUMENTS"

Steps

  1. Use stats to get an overview (total events, sessions, projects)
  2. Use browse_sessions to list recent sessions (limit: 5-10)
  3. For each interesting session, use timeline to see what happened
  4. If the user specified a topic or date range, use search to find relevant events

Output format

Write a concise recap with:

  • Summary: 2-3 sentences of what happened overall
  • Sessions: list each session with its key activity (what was asked, what was built/fixed)
  • Files touched: most frequently interacted files
  • Key decisions: any notable choices or trade-offs found
  • Insights: patterns noticed (e.g. "session #3 used 3x more tokens than average", "auth-related work dominated this week")

Keep it concise and actionable. If "$ARGUMENTS" is empty, recap the last 5 sessions.

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. 2d ago First seen · 27 lines · 21 tokens per session scan A f6357e28b323

Subscribe to this mod's changes

recap is a command published in the GitHub repository ThisisYoYoDev/claude-rag (9 stars, last pushed 5mo ago), licensed MIT. It adds 21 tokens to every session and 308 once invoked, about $0.0001 per session on Opus 5. 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-08-31.