Home / Claude Code mods / Context & memory / context-handoff

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.

Updated 2026-11-02

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.

TypeClaude code mod
Authorigorfduarte
Repositoryigorfduarte/claude-mods
Popularity5 GitHub stars
CategoryContext & memory
SecurityHigh risk (52/100)
Rank#1,341 of 9,397 Claude Code mods; #139 in Context & memory
LicenseMIT
Last commit2026-11-02
Hooks5 events
Seescompaction, every prompt
Draws onnothing

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.command.register
$.command.rundrives Claude
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.process.runruns processes
$.session.compactdrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.session.model
$.session.usage
$.state.get
$.state.set
$.ui.logdraws interface
$.ui.toastdraws interface

How do I install context-handoff?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)