handoff-compact

by trytofly94 · ★ 5 · updated 2 days ago

Toastsvalidates

0

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.

install handoff-compact

Install

git clone https://github.com/trytofly94/handoff-compact
claude --plugin-dir ./handoff-compact

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.measureturn.completesession.compact
API calls
$.clock.after$.env.get$.fs.exists$.fs.read$.fs.write$.model.fork$.process.run$.prompt.submit$.session.compact$.session.cwd$.session.id$.session.messages$.ui.log$.ui.toast
Can see
compaction
Reach
level 2 of 3 runs processeswrites filesdrives Claudereads filesreads env varsreads the transcriptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/trytofly94/handoff-compact
Path in repo
repository root
Author
@trytofly94
License
MIT
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.