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.
npx agentmods add commands/stefan-jansen/claude-code-toolkit/handoffgit clone --depth 1 https://github.com/stefan-jansen/claude-code-toolkitWhat 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 | $0.00000 | $0.02347 |
| Opus 5 | $0.00000 | $0.01174 |
| Sonnet 5 | $0.00000 | $0.00469 |
| Haiku 4.5 | $0.00000 | $0.00235 |
Grade D, and why
handoff scanned grade D with 2 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
find .claude/transitions/ -type f -name "*.md" -mtime -3 Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
find .claude/transitions/ -type d -name "2025-*" -mtime +90 -exec rm -rf {} \; How it starts
The opening of the file, as written. The whole thing — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Conversation Handoff
Prepare a smooth transition for the next conversation when approaching context limits or switching focus.
Purpose
Creates a structured handoff document that:
- Extracts session-specific context for immediate continuation
- Updates permanent memory with durable learnings
- Prepares clean transition for the next agent
What Gets Created
Transition Document
Location: .claude/transitions/YYYY-MM-DD/HHMMSS.md (UTC timestamps)
Contains:
- Current Work Context: What was being worked on, why, and current state
- Recent Decisions: Important choices made this session (not yet in permanent docs)
- Active Challenges: Current blockers, open questions, debugging context
- Next Steps: Specific, actionable tasks ready for immediate execution
- Session-Specific State: File changes, test results, temporary findings
Memory Updates (if needed)
Updates .claude/memory/ files with durable knowledge:
- project_state.md: Architecture changes, new components
- conventions.md: Discovered patterns, coding standards
- dependencies.md: New integrations, API changes
Usage
# Standard handoff - analyzes conversation and creates transition
/handoff
# With specific focus for next session
/handoff "focusing on performance optimization"
# Quick handoff (minimal extraction)
/handoff --quick
Handoff Process
I'll analyze our conversation and execute these steps:
Step 1: Verify Working Directory (CRITICAL)
# ALWAYS check PWD first
pwd
# Verify .claude/transitions/ exists
[ -d ".claude/transitions" ] || echo "ERROR: Wrong directory!"
Stop if not in correct directory - Do not proceed with file creation.
Step 2: Create Transition File
# Get UTC timestamp
UTC_DATE=$(date -u +%Y-%m-%d)
UTC_TIME=$(date -u +%H%M%S)
# Create date directory
mkdir -p ".claude/transitions/$UTC_DATE"
# Create transition file
TRANSITION_FILE=".claude/transitions/$UTC_DATE/$UTC_TIME.md"
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.
- 2d ago First seen · 312 lines · 0 tokens per session scan D 4d55222be162
handoff is a command published in the GitHub repository stefan-jansen/claude-code-toolkit (85 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,347 tokens. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
ctx
Search agent history or trace code to its original agent session.
enrich
Enrich project memory by mining 100 recently merged PRs: extracts decisions, conventions, gotchas, and architectural facts from PR discussions, review comments, and PR bodies.
reportloop
Interactively walk through all issues in REVIEWREPORT.md: explains each issue, asks to fix or skip, handles follow-up questions, and applies fixes one by one in severity order.
a11y
Audit and fix WCAG AA compliance — semantic HTML, ARIA, keyboard, contrast, reduced-motion.
components
Build component catalog with props, states, and accessibility.
docs
Audit docs, fix doc rot, enforce README and changelog standards.