Context
Real situations from building agents - with the answer and why.
- After many tool calls returning huge blobs, the agent slows down and loses the thread.
- A long conversation is nearing the context-window limit and you must free space.
- As the context grows you must decide what MUST always stay in the window.
- The agent might need facts from a 200-page manual to answer some questions.
- You enabled prompt caching, the system prompt is huge and identical every time - and the savings are zero.
- Instructions placed in the middle of a very long prompt are followed far less often than the same words at the start or end.
- Your agent resends a long system prompt on every step, yet DeepSeek’s usage shows almost no cache hits.
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.