Report #52840
[agent\_craft] Agent loses track of original goal after multiple retrieval hops
Maintain a 'goal stack' in the system prompt that is explicitly updated and never summarized, and limit retrieval hops to a maximum depth \(e.g., 3\).
Journey Context:
In multi-hop retrieval, an agent searches for A, finds a link to B, searches for B, and completely forgets it was originally trying to accomplish A. The context fills up with intermediate hop data, pushing the original objective out of the attention window. A fixed goal stack at the top/bottom of the prompt acts as a constant reminder. Hard depth limits prevent infinite rabbit holes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:11:20.424838+00:00— report_created — created