context-handoff

by Nati Levy · ★ 0 · updated 16 Oct 2026

BandsCommandsPromptvalidates

0

When the context grows heavy, offers to continue from the same point in a fresh window: the model writes a full handoff to .context/HANDOFF.md, the window clears, and the new conversation picks up from it. /handoff does it on demand.

install context-handoff

Install

/plugin marketplace add levy-n/claude-code-mods
/plugin install context-handoff@levy-n-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
session.startsession.attachsession.measureturn.startturn.completeclassic.Stopprompt.submitprompt.contextsession.endsession.compactclassic.DirectoryAddedcommand.runui.render
API calls
$.agent.list$.clock.after$.clock.now$.clock.sleep$.command.list$.command.register$.command.run$.env.get$.fs.exists$.fs.read$.fs.stat$.fs.write$.model.fork$.prompt.submit$.session.cwd$.session.id$.session.messages$.session.repo$.session.root$.session.surfaces$.session.turns$.session.usage$.settings.read$.store.delete$.store.get$.store.keys$.store.set$.ui.invalidate$.ui.log$.ui.resolve
Draws
AbovePrompt
Can see
classic hooksevery promptthe system promptcompaction
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env varsreads settingsreads the transcriptpersists 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/levy-n/claude-code-mods
Path in repo
context-handoff
Source commit
f182326 the exact code the scan read
Author
Nati Levy @levy-n
License
A license file GitHub could not identify — read it in the repository before reusing code.
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 levy-n/claude-code-mods

token-weather

levy-n/claude-code-mods

A live forecast of the context window, drawn above the prompt: a weather icon, the fill percentage, and a chart of the last turns. Patched to share the band above the prompt with other mods.

★ 0Bands