fn kept_per_agent(state: &AppState) -> usize
How many entries each agent keeps, newest first (agent:inputhistory:max, 10,000 unless set); 0 turns recording off.
agent:inputhistory:max