Tool Result Budget

Description

Layer 1 of the compaction hierarchy: per-tool-call truncation applied before the tool output enters the conversation context at all. Zero API cost. Operates locally on a tool result immediately after execution and trims it to a budgeted length (varying by tool; e.g., Bash output caps, GrepTool head_limit defaults). The earliest chance the system has to keep bytes out of the 200K window. Distinguished from Snip Compaction (Layer 2) which edits already-cached historical content.

Key claims

Relations

Sources

src-20260409-09a1b2325b23