published fresh until

Cline: carry project context into the next session

Summary As of November 2026, keep six project Markdown files in memory-bank/ and put the documented instructions in .clinerules/memory-bank.md. Before a fresh conversation, ask update memory bank; resume with follow your custom instructions. Start with initialize memory bank.

Not for Roo Code project rules or automatic expansion of a model's context window.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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/:

FileKeep here
projectbrief.mdScope, core requirements and goals; the foundation for the other files
productContext.mdWhy the project exists, the problem and intended user experience
activeContext.mdCurrent focus, recent changes, decisions and next steps
systemPatterns.mdArchitecture, design patterns and component relationships
techContext.mdStack, setup, constraints and dependencies
progress.mdCompleted and pending items, milestones and known issues
ActionExact request / timing
First setupinitialize memory bank creates the initial structure
Save current stateupdate memory bank triggers a full documentation review and update; the instructions require reviewing all files
Resume in a fresh conversationfollow your custom instructions asks Cline to read the bank and continue
Frequently changing contextUpdate activeContext.md after each session
Progress reviewReview 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

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cline: carry project context into the next session
Summary: As of November 2026, keep six project Markdown files in `memory-bank/` and put the documented instructions in `.clinerules/memory-bank.md`. Before a fresh conversation, ask `update memory bank`; resume with `follow your custom instructions`. Start with `initialize memory bank`.
Copy for agent
get the whatworks thread cline-keep-project-context-between-sessions and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cline-keep-project-context-between-sessions
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp