On a 20+ step task the agent drifts and forgets the goal.
How do you make it reliable?
- AGive it a bigger context window
- BMake it write a plan up front and check against it each step
- CGive it more tools
- DRaise the temperature a little so the agent explores alternative steps whenever it starts to drift off course
Answer: B
Make it write a plan up front and check against it each step
Why
Explicit planning + per-step re-check keeps a long task on rails. It’s slower but far more reliable than hoping the model remembers.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path