Cline Memory Bank
Last updated
Last updated
What does this instruction set aim to achieve?
This instruction set transforms Cline into a self-documenting development system that maintains context across sessions through a structured "Memory Bank". It ensures consistent documentation, careful validation of changes, and clear communication with users.
What types of projects or tasks is this best suited for?
Projects requiring extensive context tracking.
Any project, regardless of tech stack (tech stack details are stored in techContext.md
).
Ongoing and new projects.
How to Add These Instructions
Open VSCode
Click the Cline extension settings dial ⚙️
Find the "Custom Instructions" field
Copy and paste the instructions from the section below
Project Setup
Create an empty cline_docs
folder in your project root (i.e. YOUR-PROJECT-FOLDER/cline_docs)
For first use, provide a project brief and ask Cline to "initialize memory bank"
Best Practices
Monitor for [MEMORY BANK: ACTIVE]
flags during operation.
Pay attention to confidence checks on critical operations.
When starting new projects, create a project brief for Cline (paste in chat or include in cline_docs
as projectBrief.md
) to use in creating the initial context files.
note: productBrief.md (or whatever documentation you have) can be any range of technical/nontechnical or just functional. Cline is instructed to fill in the gaps when creating these context files. For example, if you don't choose a tech stack, Cline will for you.
Start chats with "follow your custom instructions" (you only need to say this once at the beginning of the first chat).
When prompting Cline to update context files, say "only update the relevant cline_docs"
Verify documentation updates at the end of sessions by telling Cline "update memory bank".
Update memory bank at ~2 million tokens and end the session.
Author
nickbaumann98
Contributors
Contributors (Discord: Cline's #prompts):
@SniperMunyShotz