What is context-handoff?
context-handoff is a Claude Code mod by igorfduarte that watches the context window; past a threshold the agent writes a handoff with the next message, then the session compacts and gets it back. It is listed under Context & memory and has 5 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | igorfduarte |
| Repository | igorfduarte/claude-mods |
| Popularity | 5 GitHub stars |
| Category | Context & memory |
| Security | High risk (52/100) |
| Rank | #1,341 of 9,397 Claude Code mods; #139 in Context & memory |
| License | MIT |
| Last commit | 2026-11-02 |
| Hooks | 5 events |
| Sees | compaction, every prompt |
| Draws on | nothing |
Is context-handoff safe to install?
context-handoff scores 52/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.compact | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.model | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.log | draws interface |
$.ui.toast | draws interface |
How do I install context-handoff?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/igorfduarte/claude-mods claude plugin validate ./claude-mods/plugins/context-handoff
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add igorfduarte/claude-mods && claude plugin install context-handoff@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs context-handoff for you:
Install the "context-handoff" Claude Code mod from https://github.com/igorfduarte/claude-mods/tree/main/plugins/context-handoff. Run claude plugin validate on it first and show me what it can access before you enable it.
More from igorfduarte/claude-mods
This repository has 4 Claude Code mods on MCPMods.
- agent-deck: A live side panel of the session's subagents (model, current activity, context, time) and a progress bar above the promp (Low risk)
- cache-clock: A pill above the prompt that says whether the prompt cache is warm or cold, counts down to cold, and pings to keep it wa (Low risk)
- prompt-polish: Before a prompt is sent, Jev decides whether it could be written better; if so, Claude rewrites it and puts it back in t (Review before installing)