Skip to main content

HISTORY_SEARCH_DEFAULT_MAX_SESSIONS

Constant HISTORY_SEARCH_DEFAULT_MAX_SESSIONS 

Source
const HISTORY_SEARCH_DEFAULT_MAX_SESSIONS: usize = 20;
Expand description

Default/cap for how many of an agent’s sessions one search may open (SPEC_AGENT_HISTORY_SEARCH_2026_09_17.md). Full-parsing every session of a long-lived agent isn’t viable (the session that motivated the spec was 14.7 MB / 6682 records, one of several), so candidates are taken newest-first and the default answers “what did I do recently”.