Claude Code PreCompact hooks in 2026: when to block compaction before a long-running agent task
Claude Code PreCompact hooks run before context compaction and can block compaction, which makes them useful but dangerous for long-running agent tasks. That is the practical sentence. Not the exciting …