Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.267 ·

Compaction path records whether it was 'replaced by hook' vs core-run

Compaction now records when a hook fully replaced Claude Code's own summarization logic

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaCompactionwhat it touches
KindInternal Changesin v2.1.267,
Under the hood

Compaction now records when a hook fully replaced Claude Code's own summarization logic

What

When Claude Code compacts a conversation (shrinking old messages into a summary to save space), it now builds a marker recording whether the built-in compaction process actually ran, or whether a session.compact hook replaced it entirely. This is reported along with token counts through a new telemetry event, tengu_compact_replaced_by_hook.

Why

This gives Claude Code (and whoever reviews this telemetry) visibility into whether a custom hook is taking over compaction instead of the default logic, which matters for diagnosing unexpected compaction behavior.

See this entry in the whole of v2.1.267 →