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 sofumel/claude-handoff-revive/plugin install handoff-reviveWrote 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/skills/sofumel/claude-handoff-revive/handoff-revive)<a href="https://agentmods.dev/skills/sofumel/claude-handoff-revive/handoff-revive"><img src="https://agentmods.dev/badge/skills/sofumel/claude-handoff-revive/handoff-revive/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/skills/sofumel/claude-handoff-revive/handoff-revive"><img src="https://agentmods.dev/badge/skills/sofumel/claude-handoff-revive/handoff-revive.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.00208 | $0.05616 |
| Opus 5 | $0.00104 | $0.02808 |
| Sonnet 5 | $0.00042 | $0.01123 |
| Haiku 4.5 | $0.00021 | $0.00562 |
Grade C, and why
handoff-revive scanned grade C 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 8d 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.
Tells the agent never to refusehighAnti-refusal
Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.
No output = fresh, continue silently. If it prints warnings (file age / commits since save / branch mismatch / cannot verify), relay them to the user **in their language** at the top of your resume summary. Never refuse How it starts
The opening of the file, as written. The whole thing — 254 lines — stays where its author put it; the contents beside it link to each section on GitHub.
handoff-revive
Save the minimum state needed to continue work later, so the next session can start fresh (NOT via --resume / -c) and reload only a small file.
Why not claude --resume
--resume and -c replay the entire prior transcript into context. For a typical session this costs tens of thousands of tokens (often 100k+ for long sessions) before the user even asks anything. A handoff file costs 1,000–3,000 tokens. Always prefer the handoff file when one exists.
Two modes
Mode 1: SAVE (/handoff-revive:save)
Triggered ONLY by:
- User runs the slash command
/handoff-revive:save - The UserPromptSubmit hook injects auto-save context (see Mode 1c below)
Do NOT trigger on natural-language phrases like "save handoff", "checkpoint", "ハンドオフ", "保存", "保存して中断". Users are expected to use the slash command. If a user types one of those phrases without the slash command, treat it as a regular message (gently remind them they can run /handoff-revive:save if they want to save).
Steps:
-
Detect language — read
.claude/handoff/langif it exists. Trim whitespace; the file holds a language code (one of:ja,en,zh(Simplified),zh-TW(Traditional),ko,es,pt,de,fr,tr) with no trailing newline. Otherwise detect from the user's most recent message:- Hiragana/Katakana →
ja - Hangul →
ko - Han characters: simplified markers (e.g. 这, 国, 学) →
zh; traditional markers (e.g. 這, 國, 學) →zh-TW - Cyrillic / Arabic → fall back to
en - Latin script: detect by common diacritics + words:
é à è ç+ words like fichier, avec, est →frä ö ü ß+ words like Datei, und, ist →deã õ ç+ words like arquivo, está, para →ptñ+ Spanish words (archivo, está, con) →esı ş ğ ç+ Turkish words (dosya, için, çalış) →tr- Otherwise →
en
When the message is mixed or ambiguous, default to
en. Write the chosen code to.claude/handoff/lang(no newline) using your file-write tool. Subsequent saves reuse the persisted value unless the user explicitly asks to switch language. - Hiragana/Katakana →
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- scripts/archive-current.ps1 1.7 KB runs code
- scripts/archive-current.sh 1.7 KB runs code
- scripts/check-freshness.ps1 2.9 KB runs code
- scripts/check-freshness.sh 3.0 KB runs code
- scripts/cleanup-handoff.ps1 4.3 KB runs code
- scripts/cleanup-handoff.sh 4.3 KB runs code
- scripts/diff-handoff.ps1 2.6 KB runs code
- scripts/diff-handoff.sh 2.6 KB runs code
- scripts/doctor-handoff.ps1 3.3 KB runs code
- scripts/doctor-handoff.sh 2.9 KB runs code
- scripts/extract-recent-files.ps1 4.0 KB runs code
- scripts/extract-recent-files.sh 3.6 KB runs code
- scripts/finalize-handoff.ps1 2.5 KB runs code
- scripts/finalize-handoff.sh 1.8 KB runs code
- scripts/inject-metadata.ps1 2.4 KB runs code
- scripts/inject-metadata.sh 2.4 KB runs code
- scripts/lib/secret-patterns.txt 836 B
- scripts/list-history.ps1 915 B runs code
- scripts/list-history.sh 899 B runs code
- scripts/preview-handoff.ps1 1.2 KB runs code
- scripts/preview-handoff.sh 1.2 KB runs code
- scripts/restore-history.ps1 1.7 KB runs code
- scripts/restore-history.sh 1.4 KB runs code
- scripts/resume-receipt.ps1 3.2 KB runs code
- scripts/resume-receipt.sh 2.8 KB runs code
- scripts/sanitize-handoff.ps1 3.4 KB runs code
- scripts/sanitize-handoff.sh 4.1 KB runs code
- scripts/setup-claude-md.ps1 1.5 KB runs code
- scripts/setup-claude-md.sh 1.1 KB runs code
- scripts/share-to-pr.ps1 3.5 KB runs code
- scripts/share-to-pr.sh 3.0 KB runs code
- scripts/stats-handoff.ps1 2.4 KB runs code
- scripts/stats-handoff.sh 2.6 KB runs code
- scripts/switch-branch-handoff.ps1 2.3 KB runs code
- scripts/switch-branch-handoff.sh 2.7 KB runs code
- scripts/tests/run-tests.ps1 1.4 KB runs code
- scripts/tests/run-tests.sh 1.3 KB runs code
- scripts/tests/test-branch-warning.ps1 2.9 KB runs code
- scripts/tests/test-branch-warning.sh 1.9 KB runs code
- scripts/tests/test-cleanup.ps1 1.4 KB runs code
- scripts/tests/test-cleanup.sh 1.1 KB runs code
- scripts/tests/test-compact-flag.ps1 4.6 KB runs code
- scripts/tests/test-compact-flag.sh 3.6 KB runs code
- scripts/tests/test-diff.ps1 2.9 KB runs code
- scripts/tests/test-diff.sh 2.1 KB runs code
- scripts/tests/test-doctor.ps1 1.4 KB runs code
- scripts/tests/test-doctor.sh 1.0 KB runs code
- scripts/tests/test-extract-committed.ps1 2.8 KB runs code
- scripts/tests/test-extract-committed.sh 2.5 KB runs code
- scripts/tests/test-finalize.ps1 1.2 KB runs code
- scripts/tests/test-finalize.sh 911 B runs code
- scripts/tests/test-freshness.ps1 3.8 KB runs code
- scripts/tests/test-freshness.sh 3.0 KB runs code
- scripts/tests/test-history.ps1 4.8 KB runs code
- scripts/tests/test-history.sh 3.6 KB runs code
- scripts/tests/test-lessons-learned.ps1 2.4 KB runs code
- scripts/tests/test-lessons-learned.sh 1.5 KB runs code
- scripts/tests/test-metadata.ps1 3.7 KB runs code
- scripts/tests/test-metadata.sh 2.9 KB runs code
- scripts/tests/test-preview.ps1 1.6 KB runs code
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.
- 8d ago First seen · 254 lines · 208 tokens per session scan C 0fc4f889ad7e
handoff-revive is a skill published in the GitHub repository sofumel/claude-handoff-revive (6 stars, last pushed 2mo ago), licensed MIT. It adds 208 tokens to every session and 5,616 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
recall-assistant
Proactive context recovery, highlight sharing, and session linking for the recall plugin. Detects context loss, suggests /recall commands, flags findings for connected sessions, and translates natural language into recall operations. Enable with /recall config skillenabled true.
sitrep
Situational awareness — where am I, what was I doing, what's next. Context recovery after compression, confusion, or mid-session reorientation.
close
End a session — extract learnings, write handoff, store patterns, detect doc drift. Use when ending a work session or when the user says done/bye/closing.
obsidian-resume
Resume a previous session from an Obsidian Session Handoff block.
context-cycle-proactive
At 80-90% context, save to the brain, route to the right channel, load fresh context, and resume. Built-in lifecycle so every agent stays synced to the second brain and never drops work.
context-memory
Saves and searches past Claude Code sessions so context, decisions, and code persist across conversations. Use when user says 'remember this', 'save this session', 'recall', 'search past sessions', 'what did we discuss about', or 'find previous work on'. Do NOT use for general file storage, note-taking, or bookmark…