What is context-handoff?
context-handoff is a Claude Code mod by Gat0rRex that tells the model when the context passes 250k tokens (heads-up) and 300k (hand off), so it finishes the task it's on and then hands off to a fresh session instead of starting another. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | Gat0rRex |
| Repository | Gat0rRex/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Low risk (88/100) |
| Rank | #6,046 of 9,397 Claude Code mods; #1,125 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-02 |
| Hooks | 4 events |
| Sees | compaction, every prompt, every tool call |
| Draws on | nothing |
Is context-handoff safe to install?
context-handoff scores 88/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 7 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 no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| 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 |
|---|---|
$.session.usage | |
$.state.get | |
$.state.set |
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/Gat0rRex/claude-mods claude plugin validate ./claude-mods/context-handoff
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Gat0rRex/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/Gat0rRex/claude-mods/tree/main/context-handoff. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Gat0rRex/claude-mods
This repository has 6 Claude Code mods on MCPMods.
- agent-spend: /agent-spend opens a pane listing each subagent's type, model, tokens and estimated cost against the session's total. (Low risk)
- checkpoint-watch: A band above the prompt saying how old the project's Checkpoint.md is and how many file edits it is behind, with a toast (Low risk)
- context-band: A band above the prompt showing how full the context is (amber from 300k tokens, red from 400k), the session's cost and (Low risk)
- loose-ends: A band above the prompt listing what Claude started and left running: background shells, terminal tabs it opened, previe (Review before installing)
- review-gate: A band above the prompt counting the files edited since a reviewer agent last finished; database files wait for db-adver (Low risk)