Home / Claude Code mods / Cost & usage / handoff-compact

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.

Updated 2026-10-03

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.

TypeClaude code mod
Authortrytofly94
Repositorytrytofly94/handoff-compact
Popularity12 GitHub stars
CategoryCost & usage
SecurityReview before installing (60/100)
Rank#443 of 5,272 Claude Code mods; #80 in Cost & usage
LicenseMIT
Last commit2026-10-03
Stars this week+2
Hooks3 events
Seescompaction
Draws onnothing

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.model.forkdrives Claude
$.process.runruns processes
$.prompt.submitdrives Claude
$.session.compactdrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.ui.logdraws interface
$.ui.toastdraws interface

How do I install handoff-compact?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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/.
  3. 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.