Your agent resends a long system prompt on every step, yet DeepSeek’s usage shows almost no cache hits.
The prompt starts with “Today is <date and time>”.
- AMove the date to the end of the prompt
- BAsk DeepSeek support to switch the cache on for your account
- CShorten the system prompt so that every miss costs a little less
- DSend the tools in a random order so the model does not overfit
Answer: A
Move the date to the end of the prompt
Why
DeepSeek caches automatically, but only an identical prefix from the very first token. A timestamp at the top changes the start of every request, so everything after it misses. Move changing values to the end; there is nothing to switch on, shortening only shrinks the loss, and a random tool order breaks the prefix too.
- ContextAfter many tool calls returning huge blobs, the agent slows down and loses the thread.
- ContextA long conversation is nearing the context-window limit and you must free space.
- ContextAs the context grows you must decide what MUST always stay in the window.
- ContextThe agent might need facts from a 200-page manual to answer some questions.
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