What is compact-handoff?
compact-handoff is a Claude Code mod by AnExiledDev that replaces the engine's compaction with a subagent's handoff, and measures whether it can be one. It is listed under Context & memory and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | AnExiledDev |
| Repository | AnExiledDev/compact-handoff-plugin |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | High risk (56/100) |
| Rank | #2,620 of 5,272 Claude Code mods; #248 in Context & memory |
| Last commit | 2026-10-05 |
| Hooks | 6 events |
| Sees | compaction, mcp__compact-handoff__ab_fork calls, mcp__compact-handoff__force_compact calls, mcp__compact-handoff__handoff_feedback calls, mcp__compact-handoff__handoff_list calls, mcp__compact-handoff__handoff_lookup calls, mcp__compact-handoff__handoff_search calls, mcp__compact-handoff__handoff_status calls, mcp__compact-handoff__probe_budget calls, mcp__compact-handoff__probe_spawn calls, mcp__compact-handoff__refresh_handoff calls |
| Draws on | nothing |
Is compact-handoff safe to install?
compact-handoff scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. 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 |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.agent.register | |
$.agent.spawn | drives Claude |
$.clock.sleep | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.complete | drives Claude |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.session.compact | drives Claude |
$.session.cwd | |
$.session.id |
How do I install compact-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/AnExiledDev/compact-handoff-plugin claude plugin validate ./compact-handoff-plugin/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add AnExiledDev/compact-handoff-plugin && claude plugin install compact-handoff@compact-handoff
Or ask Claude to set it up
Paste this into Claude Code and it installs compact-handoff for you:
Install the "compact-handoff" Claude Code mod from https://github.com/AnExiledDev/compact-handoff-plugin. Run claude plugin validate on it first and show me what it can access before you enable it.