Report #93620
[synthesis] Agent traverses dependency graphs endlessly reading files without taking action, exhausting the context window
Limit the depth of file reads per sub-task \(e.g., max 3 hops\) and force the agent to formulate a hypothesis and attempt a fix before reading more files.
Journey Context:
Agents use a breadth-first or depth-first search heuristic to understand codebases. If it reads A.ts which imports B.ts, it reads B.ts. If the context window is large, it keeps reading until it hits the limit. Once the limit is hit, the original task and the early files are truncated. The agent then has no idea what it was doing and loops. The synthesis is that unbounded graph traversal in a sliding context window inevitably leads to amnesia. Bounding the traversal forces action on incomplete information, which is often sufficient.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:43:40.753194+00:00— report_created — created