recap

recap is a command for Claude Code from xiaolai/echo-sleuth-for-claude. It costs 0 tokens per session (380 once invoked), scanned A, original, ISC.

A command that summarizes recent Claude Code work sessions for the current project.

In plain words
What is it for?
Reviewing the last few sessions or sessions from a chosen number of days or weeks, with optional detail.
Why use it?
It saves time when you need to remember what was completed, what is still underway, or which problems came up in earlier sessions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the echo-sleuth plugin — 4 skills, 8 commands, 5 agents shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add xiaolai/echo-sleuth-for-claude
Claude Code
/plugin install echo-sleuth

Made for: Claude Code.

Or install echo-sleuth, the plugin that ships this one along with the rest of its 4 skills, 8 commands, 5 agents.

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 recap

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiaolai/echo-sleuth-for-claude/recap.svg)](https://agentmods.dev/commands/xiaolai/echo-sleuth-for-claude/recap)
Your own site
<a href="https://agentmods.dev/commands/xiaolai/echo-sleuth-for-claude/recap"><img src="https://agentmods.dev/badge/commands/xiaolai/echo-sleuth-for-claude/recap.svg" alt="Measured on agentmods" 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 380 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.1 $0.00000 $0.00380
Opus 5 $0.00000 $0.00190
Sonnet 5 $0.00000 $0.00076
Haiku 4.5 $0.00000 $0.00038

Measured 6d ago against content hash 952c053399d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 32 lines

What it actually says

Summarize recent Claude Code sessions for the current project.

Arguments: $ARGUMENTS

If a number is given (e.g., "3"), summarize the last 3 sessions. If a duration is given (e.g., "7d" or "1w"), summarize sessions from that period. Default: last 5 sessions.

Launch the recall agent via the Task tool with the following context:

  • Focus: recap / recent summary
  • Parse arguments: $ARGUMENTS (number, duration, --detail flag)
  • Default: last 5 sessions, medium detail

The agent should:

  1. List recent sessions using bash ${CLAUDE_PLUGIN_ROOT}/scripts/list-sessions.sh current --limit N
  2. If zero sessions are found, report "No sessions found for the current project." and suggest the user check that they are in the correct project directory, or try list-sessions.sh all to search across all projects.
  3. For each session, get stats: bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-stats.sh <path>
  4. For medium/high detail, read user messages: bash ${CLAUDE_PLUGIN_ROOT}/scripts/extract-messages.sh <path> --role user --no-tools --limit 10
  5. Synthesize: what was accomplished, what's in progress, what problems were encountered

Detail levels:

  • low: Date, summary, message count, file count per session + overall trajectory
  • medium: Add per-session goal, key actions, outcome, files touched
  • high: Add errors encountered, decisions made, unfinished work, token usage
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. 6d ago First seen · 32 lines · 0 tokens per session scan A 952c053399d3

Subscribe to this mod's changes

recap is a command published in the GitHub repository xiaolai/echo-sleuth-for-claude (9 stars, last pushed 12d ago), licensed ISC. It costs nothing until one of its globs matches a file; then it loads 380 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-08-31.