Report #91138
[agent\_craft] Agent loses track of the original goal after multiple retrieval and reasoning steps
Maintain a structured 'task state' object \(separate from the conversational context\) that tracks the original goal, current step, and findings. Inject this state object into the system prompt or a dedicated user message at every turn.
Journey Context:
In long agentic chains, the original user request gets buried under layers of tool calls and observations. The agent drifts, solving sub-problems that no longer align with the main goal. By externalizing the goal and current state into a persistent object that is re-injected prominently each turn, the agent has a stable compass. This is more reliable than hoping the LLM infers the goal from a long chat history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:34:09.715547+00:00— report_created — created