Quick Setup
- Copy the custom instructions below
- Add to custom instructions or a
.clinerulesfile - Ask Cline to “initialize memory bank”
How It Works
Memory Bank files are regular markdown files in your project that both you and Cline can access. They’re organized hierarchically to build a complete picture of your project:.png)
Core Files
| File | Purpose |
|---|---|
projectbrief.md | Foundation document with core requirements and goals |
productContext.md | Why the project exists, problems it solves, UX goals |
activeContext.md | Current focus, recent changes, next steps (updates most frequently) |
systemPatterns.md | Architecture, design patterns, component relationships |
techContext.md | Tech stack, setup, constraints, dependencies |
progress.md | What works, what’s left, known issues |
Key Commands
- “follow your custom instructions” - Tells Cline to read Memory Bank and continue where you left off
- “initialize memory bank” - Creates the initial structure for a new project
- “update memory bank” - Triggers a full documentation review and update
Managing Context Windows
When your context window fills up:- Ask Cline to “update memory bank” to document current state
- Start a new conversation
- Ask Cline to “follow your custom instructions”
.png)
Best Practices
- Start with a basic project brief and let structure evolve
- Let Cline help create initial structure
activeContext.mdchanges most frequentlyprogress.mdtracks milestones- Update after significant milestones or direction changes
Memory Bank Custom Instructions
Copy this into custom instructions or a.clinerules file:
FAQ
Custom instructions or .clinerules? Either works. Custom instructions apply globally..clinerules is project-specific and stored in your repo.
How often should I update?
After significant milestones or direction changes. For active development, every few sessions.
Does this work with other AI tools?
Yes. Memory Bank is a documentation methodology that works with any AI that can read docs. Commands may differ but the approach works across tools.
Different from README files?
Memory Bank provides structured, comprehensive documentation designed for AI context management, going beyond what a single README covers.
For more information, see the Memory Bank blog post.
