A short, opinionated .clinerules file at repo root shapes how Cline codes, names things, and avoids bad patterns. Here is what to put in it—and what to leave out.
.windsurfrules and Cascade memory: Windsurf's behavior controls
Windsurf has two separate behavior controls: .windsurfrules persists across every session forever, while Cascade memory only lasts for the current session. Mixing them up causes subtle, confusing drift.