Ctx Handoff Mod — Development skill for Claude Code
Claude Code mod: auto handoff to a fresh conversation when context hits a threshold, keeps the prompt cache warm while you're away.
How to install Ctx Handoff Mod
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cablate/ctx-handoff-mod and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Ctx Handoff Mod does
Claude Code mod: auto handoff to a fresh conversation when context hits a threshold, keeps the prompt cache warm while you're away.
Alternatives in Development
- Claude Code Tamagotchi — A digital friend that lives in your Claude Code statusline and keeps you company while you build cool stuff 308 ★
- Brb — Use when the user signals they're stepping away (brb, afk, heading out) — keep working autonomously, skip anyt 52 ★
- Resume Skills — Offline, local-only context migration skills across 9 coding-agent sources × 9 destination hosts (registry-der 43 ★
README
ctx-handoff
[繁體中文](README.zh-TW.md)
A Claude Code mod that hands a long conversation over to a fresh one **automatically**: when the main conversation's context reaches a threshold, it writes a handoff summary, runs `/clear`, and submits the handoff so the new conversation picks up where you left off. While you are away it keeps the prompt cache warm, then saves a handoff instead of clearing. You type no commands in the normal flow.
**Who it's for:** people who run long Claude Code sessions on a 1M-context model with a Claude subscription (1-hour prompt cache). **Status:** experimental. It is built on Claude Code's early-access function-hooks API, which may change between releases. Read [Limitations](#limitations) before relying on it.
What it does
All three paths apply to the main conversation only. Subagent turns are ignored.
| When | What happens | You do |
|---|---|---|
| A turn ends and context ≥ 600k (or 80% of the window, whichever is lower) | Waits if background shells, workflows or subagents are still running. Otherwise it forks the conversation to write a handoff, then runs /clear and submits the handoff. The new conversation reports what it understood and waits for you. |
Nothing |
| You've been idle 55 minutes | Forks a tiny request to refresh the prompt cache, up to 3 times (about 4 hours in total). At the 4th point it saves an "away handoff" and does not clear: you're not there, so it doesn't switch conversations on you. | Nothing |
| You come back after an away handoff | Holds your first message and asks you to choose. | /handoff-resume starts a new conversation with the handoff and your message. /handoff-continue stays in the old one. |
Evidence so far:
- The building blocks were checked live with a probe mod.
/clearfollowed byprompt.submitworks from a mod. A fork over a 102k-token conversation read 102,003 of 102,523 input tokens from cache (about 99.5%). claude plugin test: 9/9 pass, covering the thresho
Related Skills
Claude Prompt Cache Control
Claude Code mod: prompt-cache meter with a Clear button that writes a handoff brief and starts a fresh convers
Claude Prompt Cache Keepalive
Agent skill for Claude Code: keep the 1-hour prompt cache warm while you are away, with a ladder of background
Tcr
Run Claude Code across multiple Claude accounts. A local Rust proxy that sends each request to the account wit
Cache Keepalive
Keeps an idle Claude Code session's prompt cache warm, so the session you come back to does not start cold
Herdr Auto Warm Cache
A herdr plugin that keeps an idle agent's prompt cache warm before the one-hour TTL expires — 20x cheaper than
Aurora Travel Backend
A warm, playful travel-agent chatbot with procedurally-generated ambient soundscapes. Backend keeps your Anthr
Related Agents
Worker Apply Opus
Resumable implementation worker for non-SDD work units. Applies multi-file changes from a handoff, absorbs fol
Summarizer
Draft a session-handoff summary so a fresh agent can continue with zero conversation context. Locates the curr
Legal
General Counsel who runs the six-skill legal department, finds the path to yes, and keeps deals moving without