DeepThinking AI

Tag

anthropic-api

Covered in AI Engineering, where the background and the sources for this subject live.

AI Engineering

Which Claude compaction mode should you use, threshold or on-demand?

Claude now has two compaction features with the same name. Threshold compaction, beta compact_20260112, leaves its summary block after the messages it summarises. On-demand compaction, beta compact-2026-09-04, returns a signed block that replaces them and must be sent first, or the request returns a 400.

6 min read