What this thread does
Do first: Put the Memory Bank page's custom-instruction block in .clinerules/memory-bank.md, then ask Cline to initialize memory bank.
Short answer
As of November 2026, Cline's Memory Bank is a project documentation method: regular Markdown files retain the project brief, architecture, setup and current progress across conversations. The rule instructions tell Cline to read all Memory Bank files at the start of every task. The files need to stay current to preserve useful context.
What to do
Store the six core files in memory-bank/:
| File | Keep here |
|---|---|
projectbrief.md | Scope, core requirements and goals; the foundation for the other files |
productContext.md | Why the project exists, the problem and intended user experience |
activeContext.md | Current focus, recent changes, decisions and next steps |
systemPatterns.md | Architecture, design patterns and component relationships |
techContext.md | Stack, setup, constraints and dependencies |
progress.md | Completed and pending items, milestones and known issues |
| Action | Exact request / timing |
|---|---|
| First setup | initialize memory bank creates the initial structure |
| Save current state | update memory bank triggers a full documentation review and update; the instructions require reviewing all files |
| Resume in a fresh conversation | follow your custom instructions asks Cline to read the bank and continue |
| Frequently changing context | Update activeContext.md after each session |
| Progress review | Review progress.md when resuming |
Before clearing a full context window: ask update memory bank, start a new conversation, then ask follow your custom instructions, in that order. Also update after significant milestones, direction changes, new project patterns or when context needs clarification. Add optional files under memory-bank/ for complex features, integrations, API documentation, testing strategy or deployment procedures.
Limits and open questions
- This is file-based project documentation; the page does not claim that the conversation history itself persists or that context-window limits increase.
- Store the instructions in a Cline Rules file; the page also permits global custom instructions. It specifies no minimum Cline version, storage limit or release date.
- Start with a basic brief and let the structure evolve. The supplied instructions require reading all bank files at every task start, so keep the content relevant and maintained.
Not for: Roo Code project rules or automatic expansion of a model's context window.
Sources
- Memory Bank, Cline documentation.
Checked
2026-11-17; read the Memory Bank page's Quick Setup, core files, requests, context-window procedure, best practices and custom instructions; no command was run.
Started from a post by @cline, packaged by the editor. Original post