What is handoff-compact?
handoff-compact is a Claude Code mod by trytofly94 that replaces Claude Code's compaction with a structured handoff: a fork of the session writes it from the prompt cache, and the conversation continues from exactly that handoff. It is listed under Cost & usage and has 12 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | trytofly94 |
| Repository | trytofly94/handoff-compact |
| Popularity | 12 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (60/100) |
| Rank | #443 of 5,272 Claude Code mods; #80 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-03 |
| Stars this week | +2 |
| Hooks | 3 events |
| Sees | compaction |
| Draws on | nothing |
Is handoff-compact safe to install?
handoff-compact scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 4 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 |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.compact | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.ui.log | draws interface |
$.ui.toast | draws interface |
How do I install handoff-compact?
- 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/trytofly94/handoff-compact claude plugin validate ./handoff-compact/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/trytofly94/handoff-compact && claude --plugin-dir ./handoff-compact/.
Or ask Claude to set it up
Paste this into Claude Code and it installs handoff-compact for you:
Install the "handoff-compact" Claude Code mod from https://github.com/trytofly94/handoff-compact. Run claude plugin validate on it first and show me what it can access before you enable it.