context-handoff
by igorfduarte · ★ 5 · updated 19 days ago
Watches the context window; past a threshold the agent writes a handoff with the next message, then the session compacts and gets it back.
Install
/plugin marketplace add igorfduarte/claude-mods/plugin install context-handoff@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startcommand.runturn.completesession.compactprompt.submit- API calls
$.clock.after$.clock.now$.command.register$.command.run$.env.get$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.process.run$.session.compact$.session.cwd$.session.id$.session.messages$.session.model$.session.usage$.state.get$.state.set$.ui.log$.ui.toast- Can see
compactionevery prompt- Reach
- level 2 of 3 runs processeswrites filesdrives Claudereads filesreads env varsreads the transcriptreads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/igorfduarte/claude-mods
- Path in repo
plugins/context-handoff- Source commit
ba54adfthe exact code the scan read- Author
- @igorfduarte
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from igorfduarte/claude-mods
agent-deck
igorfduarte/claude-mods
A live side panel of the session's subagents (model, current activity, context, time) and a progress bar above the prompt. /subagents opens or closes the panel.
cache-clock
igorfduarte/claude-mods
A pill above the prompt that says whether the prompt cache is warm or cold, counts down to cold, and pings to keep it warm.
prompt-polish
igorfduarte/claude-mods
Before a prompt is sent, Jev decides whether it could be written better; if so, Claude rewrites it and puts it back in the box for review.