Understand the Memory Bank lifecycle
mainThe Memory Bank operates through a structured lifecycle designed to maintain context and intelligence:
- Pre-Flight Validation (*a): Automatic check of project directory existence, core file presence (e.g.,
projectbrief.md), and custom documentation inventory. - Plan Mode (*b): Uses filesystem/list_directory results to develop a strategy, which is then documented in
activeContext.md. Paths must use forward slashes. - Act Mode (*c): Executes tasks based on
.clinerulesand the current context. - Documentation Updates (*d): Triggered by ≥25% code impact changes, new pattern discovery, user requests, or context ambiguity. Requires a full file re-read.
- Learning Process (*e): Identifies patterns, validates them with the user, and updates
.clinerulesto improve future execution.