compact-handoff-answer

Reviewed at commit f99bfdf

EXPERIMENTAL companion of compact-handoff: supplies the replacement message for the compactions compact-handoff starts (a plugin cannot answer its own). Does…

Made by
REMvisual
What we checked

Companion of compact-handoff. When a compaction starts with compact-handoff's marker line, it installs the text after that line as the replacement message instead of Claude Code's own summary. Any other compaction is left alone. It reads no files, makes no network calls and stores nothing.

Review details

Static review of the source at the pinned commit; not run. One module (hooks/register.ts) registers session.compact with a catch that passes the event through. answerFor() returns null (so the engine continues normally) when the compaction comes from a sub-agent, has no instructions, or the first instruction line is not exactly compact-handoff:v1; otherwise it returns the remaining text as a single user message in place of the summary. No runtime calls on $, no fetch, no processes, no file access, no storage. Any plugin that can start a compaction with the marker line could choose the replacement text, which is the protocol's purpose. npm dependencies: none.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: no
Hooked events

EXPERIMENTAL companion of compact-handoff: supplies the replacement message for the compactions compact-handoff starts (a plugin cannot answer its own). Does nothing on any other compaction.

Made this mod? Add a badge to your README

modsforClaude badge for compact-handoff-answer

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/compact-handoff-answer.svg)](https://modsforclaude.com/mods/compact-handoff-answer/)

← All mods