Replace max_context_chars with max_context_tokens (default 200k est. tokens via char/4); compact and /status use the token budget.
Shrink older tool dumps for model requests without mutating history; check task cancellation between tool/model steps.