Report #85320
[agent\_craft] Agent loses track of task after reading large files into context
Use targeted line-range reads or grep/search instead of reading entire files, and only expand the read range if the target is not found.
Journey Context:
Reading whole files fills context with boilerplate \(imports, comments, utility functions\), pushing out the actual task/system prompt. LLMs suffer from attention dilution. Targeted reads keep the context dense with relevant code, trading a slight increase in tool calls for a massive increase in reasoning quality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:47:54.037329+00:00— report_created — created