Turn your agent's past wins and failures into a lessons file it reads before every task: AI agent prompt
Most agents start every task like a new intern. Have one study the transcripts of past attempts, what worked and what failed, and write a short lessons file of your preferences, conventions and gotchas that it reads before the next similar job. Letta released FrontierMemory 1.0 in October 2026, a benchmark that scores agents on how much memory written from 674 past attempts (184 passes, 490 failures) helps them solve related tasks; the top models reached 73.3%, and Letta notes many agent products now 'dream' over past sessions to improve their memory.
Personal ProductivityAgent memoryintermediateThe prompt
You're my agent's coach. Below are transcripts or notes from past attempts at [type of task, e.g. writing client reports / fixing bugs in our app / preparing invoices], each marked WORKED or FAILED, plus any feedback I gave: [paste]. Write a lessons file under 400 words with: 1) my preferences (format, tone, length, what I always change); 2) rules and conventions that weren't written down but mattered; 3) gotchas in our tools, files or data that caused failures, and how to avoid them; 4) a short checklist to run before calling the task done. Only include lessons backed by the transcripts, and note which attempt each one came from. Skip one-off details. I'll paste this file at the start of every similar task, so keep it tidy and update it when new attempts contradict it.
How to use it
- Copy the prompt above.
- Replace every [bracket] with your own details (or fill in the blanks on AgentPlaybook Real Estate, which remembers your answers for the next prompt).
- Paste it into ChatGPT, Claude, Claude Code and review the answer before you use it.
Works with: ChatGPT, Claude, Claude Code, Codex, Letta
Real-world example: frontiermemory.com/blog/v1/
Featured in: AI prompts to summarize meetings, notes, documents and reports
Before you use it: what to check
Check yourself
- This prompt works on text other people wrote (emails, reviews, messages or web pages). That text can hide instructions aimed at AI, such as "ignore your rules and…". Paste it as material to work on, and never let the AI act on requests inside it, like paying, sharing logins or changing records. How prompt injection works →
- Check every figure, price and total against your own records before anything is sent, posted or booked. A person approves refunds, discounts, payments and price changes.
- Remove names, contact details, account numbers and other personal data the task doesn't need before you paste, and check your AI tool's data and training settings.
- Check names, dates, numbers and any claim against your own source material before you use the answer. AI can misread or invent details.
Using an AI agent? Download this prompt as a SKILL.md agent skill with these checks built in, or get the .zip for Claude.ai. How to install skills.
Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.
32 copy-paste agent prompts (PDF) plus 5 new prompts every week.
Get it freeMore Personal Productivity prompts
See all Personal Productivity prompts →