auto-handoff

by m2ai-portfolio · ★ 0 · updated 8 days ago

BandsCommandswarnings

0

Writes a /next handoff automatically once a 1M-token session crosses 300k tokens and before every compaction, so the next session can /prime from it. Never blocks tool calls: goals and loops keep running (pair with autoCompactWindow: 300000). /auto-handoff on|off and threshold are kept across sessions.

install auto-handoff

Install

git clone https://github.com/m2ai-portfolio/claude-mods
claude --plugin-dir ./claude-mods/auto-handoff

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.startturn.completesession.compactsession.endcommand.runui.render
API calls
$.clock.after$.command.register$.command.run$.env.get$.fs.read$.fs.write$.mcp.call$.model.fork$.process.run$.session.cwd$.session.id$.session.model$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.copy$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
compaction
Reach
level 3 of 3 MCP serversruns processeswrites filesdrives Claudewrites the clipboardreads filesreads env varsreads mod statepersists 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/m2ai-portfolio/claude-mods
Path in repo
auto-handoff
Source commit
e83302c the exact code the scan read
Author
@m2ai-portfolio
License
No license declared — ask the author 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 m2ai-portfolio/claude-mods

artifact-watchdog

m2ai-portfolio/claude-mods

Enforces the subagent output contract: watches each Agent dispatch's artifact file, flags a 5-minute stall, wakes an idle Claude once per stall, offers a Stop button

★ 0PanesStatus lineGuards

flight-recorder

m2ai-portfolio/claude-mods

See inside a turn: a live Gantt timeline of model requests, tool calls and subagents, with tokens and cost per lane.

★ 0PanesGuardsCommands

jev-tool-gate

m2ai-portfolio/claude-mods

Log-only Jev judgment of risky tool calls (destructive? requested by fetched content?). Never changes a decision; hosted calls off by default.

★ 0GuardsCommandsPrompt

Other mods in Bands, close to this one by stars.