recap

recap is a command for Claude Code from gf-labs/claude-toolbox. It costs 63 tokens per session (1,687 once invoked), scanned A, original, MIT.

A command for reconstructing recent work from commits, session notes, and changed files. It can look back over the current session or a chosen number of hours or days.

In plain words
What is it for?
Use it to answer “where was I?” after a break, using options such as --hours or --days.
Why use it?
It helps you resume work after stepping away without manually searching through project history and notes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions Claude Code.

Part of the tools plugin — 2 skills, 13 commands, 5 agents, 4 hooks shipped together

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/gf-labs/claude-toolbox/recap
Clone the repo
git clone --depth 1 https://github.com/gf-labs/claude-toolbox

Made for: Claude Code.

Or install tools, the plugin that ships this one along with the rest of its 2 skills, 13 commands, 5 agents, 4 hooks.

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/gf-labs/claude-toolbox/recap.svg)](https://agentmods.dev/commands/gf-labs/claude-toolbox/recap)
Your own site
<a href="https://agentmods.dev/commands/gf-labs/claude-toolbox/recap"><img src="https://agentmods.dev/badge/commands/gf-labs/claude-toolbox/recap.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00063 $0.01687
Opus 5 $0.00032 $0.00843
Sonnet 5 $0.00013 $0.00337
Haiku 4.5 $0.00006 $0.00169

Measured 5d ago against content hash db6c658d8515, 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 1 finding 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 5d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(['git', 'log', '--oneline', '--since', since], capture_output=True, text=True)
commands/recap.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Arguments

$ARGUMENTS

Parse --days N or --hours N from arguments. Default: current session (no time window). If --hours N is given, convert to fractional days (hours / 24). --days takes precedence over --hours if both are given.

Determine mode before running any commands:

  • If no --days or --hours args → session mode
  • If --days or --hours present → time-window mode

Collect context

Run all commands now before producing output.

Scope + date:

python3 ${CLAUDE_TOOLBOX_ROOT}/scripts/_scope.py
date +%Y-%m-%d

Current session (always run):

python3 ${CLAUDE_TOOLBOX_ROOT}/scripts/collect-summarize.py

Git branch + uncommitted state:

git branch -vv 2>/dev/null | head -1
git status --short 2>/dev/null | head -10

Git commits — time-window mode only (skip if session mode):

python3 -c "
from datetime import datetime, timedelta
import subprocess, sys
args = '$ARGUMENTS'.split()
days = None
for i, a in enumerate(args):
    if a == '--days' and i+1 < len(args):
        days = int(args[i+1]); break
    elif a == '--hours' and i+1 < len(args):
        days = int(args[i+1]) / 24; break
if days is None:
    print('(session mode — see git state above)')
    sys.exit(0)
since = (datetime.now() - timedelta(days=days)).strftime('%Y-%m-%dT%H:%M:%S')
result = subprocess.run(['git', 'log', '--oneline', '--since', since], capture_output=True, text=True)
print(result.stdout or '(no commits in window)')
"

Files changed — time-window mode only (skip if session mode; session mode uses FILES_TOUCHED above):

python3 -c "
from datetime import datetime, timedelta
import subprocess, sys
args = '$ARGUMENTS'.split()
days = None
for i, a in enumerate(args):
    if a == '--days' and i+1 < len(args):
        days = int(args[i+1]); break
    elif a == '--hours' and i+1 < len(args):
        days = int(args[i+1]) / 24; break
if days is None:
    print('(session mode — see FILES_TOUCHED above)')
    sys.exit(0)
since = (datetime.now() - timedelta(days=days)).strftime('%Y-%m-%dT%H:%M:%S')
result = subprocess.run(['git', 'log', '--name-only', '--pretty=format:', '--since', since], capture_output=True, text=True)
files = sorted(set(f for f in result.stdout.splitlines() if f.strip()))
print('\n'.join(files) if files else '(none)')
"

Read the full file on GitHub · 164 lines

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. 5d ago First seen · 164 lines · 63 tokens per session scan A db6c658d8515

Subscribe to this mod's changes

recap is a command published in the GitHub repository gf-labs/claude-toolbox (2 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 1,687 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.