Agent Memory Strategy
A plan for what an agent should persist, summarize, or discard between steps.
Advanced · Works with ChatGPT, Claude, Gemini, Copilot
The prompt
Design a memory strategy for this agent's multi-step run.
What the agent does across a session:
{{AGENT_SESSION}}
Context window or cost constraints:
{{CONSTRAINTS}}
For each type of information the agent encounters, say whether it should be kept verbatim, summarized, or discarded after use, and why. Flag anything that could go stale (like a fetched price or status) and how the agent should treat it if referenced later.Why this prompt works
Flagging staleness explicitly stops an agent from confidently reusing a fetched fact after it may have changed.
How to customize it
- Identify anything time-sensitive that shouldn't be trusted after a delay
- State the actual context budget rather than 'keep it small'
Common mistakes
- Persisting full raw tool outputs when a summary would do
- Treating all context as equally safe to reuse regardless of age
Example
Input
Agent session: Agent researches a lead, drafts a pitch, then answers follow-up questions
What a good answer looks like
A table of information types with a keep/summarize/discard decision and staleness note.
Make this prompt fit your work
ModelCoach.ai scores your version, shows what to improve and explains why, right inside ChatGPT, Claude, Gemini and Copilot.