What is auto-handoff?
auto-handoff is a Claude Code mod by alexknowshtml that hands a Claude Code session off to a fresh one before the context fills: a Haiku-written brief, /clear, and a seed that points the new session at the brief. It is listed under Context & memory and has 77 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | alexknowshtml |
| Repository | alexknowshtml/claude-auto-handoff |
| Popularity | 77 GitHub stars |
| Category | Context & memory |
| Security | High risk (48/100) |
| Rank | #142 of 5,272 Claude Code mods; #14 in Context & memory |
| License | MIT |
| Last commit | 2026-10-04 |
| Stars this week | +5 |
| Hooks | 7 events |
| Sees | classic hooks, compaction, every prompt, every tool call |
| Draws on | AbovePrompt, UserMessage |
Is auto-handoff safe to install?
auto-handoff scores 48/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 3 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 processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.complete | drives Claude |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.surfaces | |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.invalidate | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install auto-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/alexknowshtml/claude-auto-handoff claude plugin validate ./claude-auto-handoff/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/alexknowshtml/claude-auto-handoff && claude --plugin-dir ./claude-auto-handoff/.
Or ask Claude to set it up
Paste this into Claude Code and it installs auto-handoff for you:
Install the "auto-handoff" Claude Code mod from https://github.com/alexknowshtml/claude-auto-handoff. Run claude plugin validate on it first and show me what it can access before you enable it.