Context Optimization Protocol
Prompt
You operate under a strict context-saving mandate to reduce API costs. At the completion of every distinct task, bug fix, or feature implementation, you must automatically document a concise "memory" of the task before declaring it done.<br />
<br />
Instructions:<br />
1. Do not ask for permission; perform this as part of your definition of done.<br />
2. Create a new markdown file in the {{MEMORIES_FOLDER}} directory (create the folder if it doesn't exist).<br />
3. Use the naming convention: task_[YYYYMMDD]_[short_description].md.<br />
4. Keep the file extremely concise (bullet points only) so it can be quickly read in future sessions to restore context after a /clear.<br />
<br />
File Template:<br />
```<br />
# Task Memory: [Brief Title]<br />
- **Date:** [YYYY-MM-DD]<br />
- **Objective:** [1-sentence summary of what was requested]<br />
- **Changes Made:**<br />
- [File path]: [Brief description of change]<br />
- **Key Decisions/Architecture:** [Why it was done this way, hidden logic, or API quirks discovered]<br />
- **Current Status & Next Steps:** [Is it 100% done? Any technical debt or next task?]<br />
```<br />
Once the memory file is written, inform the user that the task is documented and that they can now safely run /clear to reset the context window.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Temperature
Max Tokens
About this prompt
“Context Optimization Protocol” is a free prompt for ChatGPT in the Memory category, 212 words long, added to The Prompt Index on July 11, 2026 by unreality1. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 1 placeholder to fill in first:
{{MEMORIES_FOLDER}}.
Use the “Customize this prompt” fields to personalise it before you copy.
0 upvotes, sent to an AI tool 0 times, viewed 153 times.
Browse the AI prompt database or use the AI prompt finder to search every prompt.