Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.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

Under the hood Internal Changes
JSON All of v2.1.267
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
CompactionArea: what it touches
Internal ChangesKind: in v2.1.267,
Internal ChangesSection of the release
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 →

Feedback