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.
/plugin marketplace add stefan-jansen/claude-code-toolkit/plugin install transitionWrote 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/stefan-jansen/claude-code-toolkit/handoff)<a href="https://agentmods.dev/commands/stefan-jansen/claude-code-toolkit/handoff"><img src="https://agentmods.dev/badge/commands/stefan-jansen/claude-code-toolkit/handoff/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/stefan-jansen/claude-code-toolkit/handoff"><img src="https://agentmods.dev/badge/commands/stefan-jansen/claude-code-toolkit/handoff.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.02347 |
| Opus 5.5 | $0.00000 | $0.00939 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (101 stars, last pushed 4mo 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.
handoff compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| handoffstefan-jansen/claude-code-toolkit | Command | 101 | 4mo ago | MIT | D | 0 | Claude Code |
| ctxctxrs/ctx | Command | 1.2k | 9d ago | Apache-2.0 | A | 11 | Claude Code |
| context-statstravisjneuman/.claude | Command | 115 | yesterday | MIT | A | 7 | Claude Code |
| handofftravisjneuman/.claude | Command | 115 | yesterday | MIT | A | 8 | Claude Code |
| learnsangrokjung/claude-forge | Command | 886 | 2mo ago | MIT | B | 18 | Claude Code |
| revise-claude-mdbearlike/Assistant | Command | 43 | 2d ago | MIT | A | 11 | Claude Code |
| context-audit.templateevan043/claude-cli-advanced-starter-pack | Command | 62 | 4mo ago | MIT | A | 0 | Claude Code |