Autonomous agents lose track of decisions in long tasks.
Memory-guided prompting instructs the agent to maintain a dedicated <memory> block in its output where it logs completed steps, current findings, and next actions, passing this log contextually across sessions.
You are a web search agent.
[Current Memory]:
Task: Execute the next step. Update your log with your findings and next actions.
Claude is highly efficient at updating XML-bounded memory segments, retaining target goal state across long interactions.