Windsurf Cascade has two documented mechanisms for context across conversations:
Windsurf’s own recommendation is to use Rules or repository AGENTS.md for durable team knowledge instead of relying only on generated Memories.
Generated Memories:
~/.codeium/windsurf/memories/.Rules:
~/.codeium/windsurf/memories/global_rules.md..windsurf/rules/**/*.md.AGENTS.md in a workspace directory, processed by the same Rules engine./etc/windsurf/rules/*.md on Linux/WSL or /Library/Application Support/Windsurf/rules/*.md on macOS..windsurfrules may exist and should be detected best-effort.MEMORY.md-style index for generated Memories; treat each discovered memory artifact as a candidate item and fail closed on unknown formats.trigger modes such as always_on, glob, model_decision, or manual.AGENTS.md are always active and do not use frontmatter.Recommended import order:
.windsurf/rules/**/*.md and root/nested AGENTS.md files.~/.codeium/windsurf/memories/ generated Memories for the active workspace.global_rules.md only with explicit user-scope opt-in.Suggested mapping:
decision, discovery, pattern, preference, or manual based on content.always_on rules -> pattern or config with activation provenance.glob rules -> pattern with source glob provenance.model_decision or manual rules -> manual unless the content is clearly a durable decision or convention.Important importer behavior: