context-handoff

by Gat0rRex · ★ 0 · updated 9 days ago

GuardsPromptAutomationvalidates

0

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.

install context-handoff

Install

/plugin marketplace add Gat0rRex/claude-mods
/plugin install context-handoff@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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
tool.callprompt.submitsession.compactsession.end
API calls
$.session.usage$.state.get$.state.set
Can see
every tool callevery promptcompaction
Reach
level 1 of 3 reads mod state

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Gat0rRex/claude-mods
Path in repo
context-handoff
Source commit
d219981 the exact code the scan read
Author
@Gat0rRex
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 Gat0rRex/claude-mods

agent-spend

Gat0rRex/claude-mods

/agent-spend opens a pane listing each subagent's type, model, tokens and estimated cost against the session's total.

★ 0PanesCommands

checkpoint-watch

Gat0rRex/claude-mods

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 when it falls well behind.

★ 0BandsGuards

context-band

Gat0rRex/claude-mods

A band above the prompt showing how full the context is (amber from 250k tokens, red from 350k), the session's cost and the plan's usage limits, with a toast at each line crossed.

★ 0Bands

loose-ends

Gat0rRex/claude-mods

A band above the prompt listing what Claude started and left running: background shells, terminal tabs it opened, preview servers.

★ 0BandsGuardsPrompt

review-gate

Gat0rRex/claude-mods

A band above the prompt counting the files edited since a reviewer agent last finished; database files wait for db-adversarial-reviewer.

★ 0BandsGuardsCommands