tool_use input for write ops + broad fallback → stubbed
thinking blocks → removed entirely
API usage metadata → stripped
We estimate that ~70% of tool result bytes come from results > 500 chars
(conservative — real sessions often see 85-95%).
We estimate ~30% of tool_use request bytes are from stubbable input fields
(Write/Edit payloads, Task prompts, etc.).
Estimate post-trim token count from the session analysis breakdown.
Trim rules (mirrors trimmer.ts):
We estimate that ~70% of tool result bytes come from results > 500 chars (conservative — real sessions often see 85-95%). We estimate ~30% of tool_use request bytes are from stubbable input fields (Write/Edit payloads, Task prompts, etc.).