Report #100167
[agent\_craft] The agent sends entire files when a grep or outline would suffice
Implement a context router: ask a cheap model/call to decide between grep, read\_region, read\_file, or no\_context. Only read full files for files under ~200 lines or when an edit is imminent.
Journey Context:
The easiest implementation reads every file the agent names. On large codebases this floods the context with irrelevant imports and boilerplate. A router keeps the working set small and the signal high. The routing rule itself is simple enough that a small model or even heuristics work: path contains 'test' -> read\_region around failure; agent asks for architecture -> outline symbols. The SWE-agent interface was built around these exact primitives.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:46:03.432068+00:00— report_created — created