Skip to content
1 min read · 95 words

Variable: DEFAULT_THIS_TURN_RESULT_KEEP

ts
const DEFAULT_THIS_TURN_RESULT_KEEP: 3 = 3;

Defined in: src/batteries/context/thrift/subtractive_pass.ts:100

How many of the NEWEST this-turn tool-result bodies to protect from budget-shedding as a last-resort backstop, by default.

Remarks

A normal read→answer turn produces 1–2 this-turn results, so N = 3 leaves the common case untouched; a deep read-loop (several searches/reads in one turn) that piles up more can shed its OLDEST bodies past this cap (the model has moved past them by the time it has made this many calls). The single newest this-turn result is always kept regardless of this cap — see subtractToFit's step 3b.