Report #97000
[agent\_craft] Agent reads entire large files into context, exhausting the window and causing earlier instructions to be dropped
Default to line-range reads \(e.g., read\_file with start\_line and end\_line\) or grep-based reads. Only allow full file reads if the file is under a strict line limit \(e.g., 250 lines\), enforced by the tool itself.
Journey Context:
Agents often cat files out of convenience. This is the primary cause of context rot. By restricting the read tool, you force the agent to navigate intelligently \(e.g., grep first, then read specific lines\), preserving the context for actual reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:23:52.394533+00:00— report_created — created