Skip to content
1 min read · 54 words

Variable: DEFAULT_SUMMARISE_AT_TOKENS

ts
const DEFAULT_SUMMARISE_AT_TOKENS: 2500 = 2500;

Defined in: src/batteries/context/compact/summarizer.ts:41

The token threshold, measured over the OLDER (non-verbatim) region's combined text, past which a (re)summarization call fires.

Remarks

The flagship reference agent's own calibrated value (COMPACT_SUMMARISE_AT_TOKENS), lifted unchanged — modeled on Claude Code auto-compacting as it approaches the context limit (there, a fraction of an 8k window).