forward-compaction
by Reza · Professor · ★ 0 · updated 2 days ago
0
The model writes its own handoff through one tool and the plugin installs it at Claude Code's compaction, with facts recorded from typed events and every later message kept verbatim.
Install
git clone https://github.com/rezzminator/sub-agent-compactclaude --plugin-dir ./sub-agent-compact/plugins/forward-compactionThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.starttool.callsession.compactturn.stepturn.startturn.completeprompt.submitsession.receiveskill.promptagent.spawnclassic.Stopclassic.SubagentStopsession.end- API calls
$.agent.list$.clock.after$.clock.now$.env.get$.fs.read$.fs.stat$.process.run$.session.compact$.session.id$.session.messages$.session.usage$.state.get$.state.set$.tool.register$.ui.log- Can see
every tool callcompactionevery promptevery skillsubagent spawnsclassic hooks- Reach
- level 2 of 3 runs processesdrives Claudereads filesreads env varsreads the transcriptreads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/rezzminator/sub-agent-compact
- Path in repo
plugins/forward-compaction- Source commit
05575e5the exact code the scan read- Author
- Reza · Professor @rezzminator
- 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.