Follow Discord
Sweep 08 Oct 2026 · 18:53Z Build v2.1.295 516 read Stable v2.1.286 Latest v2.1.295 Next v2.1.295 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.290 ·

PreCompact hooks are now told when compaction was automatic

The PreCompact hook now receives a trigger of auto for automatic compaction instead of always manual

Use it now Improvements
JSON All of v2.1.290
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.290,
What probably matters to youSection of the release

Unclear It is not clear whether automatic compaction ran these hooks through this same path before.

What

Compaction is when Claude Code shortens a long conversation by summarising it, so it fits in the model's memory. A hook is a command of your own that Claude Code runs at a set moment. The PreCompact hook runs just before compaction.

The trigger value the hook receives is now auto when compaction happens automatically. Before, it was always manual.

Why

A PreCompact hook can now tell the two cases apart. A hook that matches on trigger will now see auto for automatic compaction, so check any hook that expected only manual.

Read from
Names in the bundlePreCompact
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether automatic compaction ran these hooks through this same path before.

See this entry in the whole of v2.1.290 →

Feedback