How 9 AI coding assistants handle memory, context, and persistent knowledge across sessions.
| Feature | Cursor | Windsurf | Copilot | Aider | Continue | Cline | Codex | Amazon Q | Zed |
|---|---|---|---|---|---|---|---|---|---|
| Instructions | .cursor/rules/*.mdc |
.windsurf/rules/ |
.github/copilot-instructions.md |
CONVENTIONS.md |
.continue/rules/ |
.clinerules |
AGENTS.md |
.amazonq/rules/ |
.rules |
| Glob scoping | Yes | No | Yes | No | No | No | No | No | No |
| Auto memory | Yes | Yes | No | No | No | Convention | Transcript | Yes | No |
| RAG/Embeddings | Yes (custom) | Yes | Yes (server) | No | Yes (config) | No | No | No | No |
| MCP support | Yes | Yes | No | No | Yes | Yes | Yes | No | Yes |
| Context transparency | Low | Low | Medium | High | High | High | Medium | Low | High |
Moved from legacy .cursorrules to .cursor/rules/ directory with .mdc files. Each supports frontmatter with description, globs (file pattern scoping), and alwaysApply. Rules can be always-on, manually invoked, or auto-attached based on glob patterns.
The Memories feature (2025) persists facts from conversations and applies them in future sessions. Per-project knowledge base of conventions, specifics, and preferences.
The most sophisticated publicly documented RAG pipeline:
.mdc format is proprietary, not portableThree scopes: Global, Workspace (.windsurf/rules/), System-level. 6,000-char per-rule limit, 12,000-char total active limit. Rules can be "Always On" or @-mentioned.
Cascade has auto-generate memories: stores context it deems useful during conversation. Stored at ~/.codeium/windsurf/memories/. Toggle for auto vs explicit-only.
Every interaction: load Memories → read open files → run codebase retrieval → read recent actions → assemble prompt.
.github/copilot-instructions.md for repo-level. Also .github/instructions/*.md with YAML frontmatter for scoped instructions. Priority: Personal > Repository > Organization.
No built-in cross-session memory. Copilot Spaces (replaced Knowledge Bases, Nov 2025): curated docs/code/context accessible via MCP from any IDE.
Workspace indexing + LSP intelligence + semantic search. Server-side. 100K character context in chat (April 2025).
CONVENTIONS.md loaded via .aider.conf.yml with read: CONVENTIONS.md. Config cascades: home dir < git root < cwd.
No persistent memory. Each session starts fresh. CONVENTIONS.md and the repo map are the persistent layer.
Signature feature: repository map via tree-sitter AST parsing. Static analysis (not embeddings). Users manually add files; repo map handles peripheral context.
.continue/rules/ directory. .continuerc.json overlays global config with mergeBehavior.
Full RAG pipeline with @codebase context provider: tree-sitter parsing + ripgrep + embeddings in LanceDB. Configurable embedding models (voyage-code-3 cloud or nomic-embed-text local).
Extensible @-mention system: @file, @codebase, @open, @terminal, @diff, @docs, @repo-map, @url. Custom providers in TypeScript/Python.
@codebase retrieval accuracy.clinerules files or .clinerules/ directory with multiple markdown files.
Cline's signature methodology — structured markdown files that the AI reads at session start:
projectbrief.md — project overview and goalsproductContext.md — product requirementsactiveContext.md — current work statesystemPatterns.md — architecture patternstechContext.md — tech stack, dependenciesprogress.md — done/in-progress/blocked.clinerulesAGENTS.md files with hierarchical cascade: global ~/.codex/AGENTS.md → project directories. 32 KiB combined cap.
Stores session transcripts locally with a resume subcommand. Lighter than true persistent memory but allows continuity.
Project rules in .amazonq/rules/ as markdown. Support priority levels.
Adopted the Memory Bank methodology (from Cline). Auto-generates memory bank files by analyzing the project. Can regenerate when project changes. Custom rules control generation.
.rules at project root. Also reads .cursorrules, CLAUDE.md, AGENTS.md (first match wins). Rules Library UI for managing defaults.
Explicit approach: manually drag files/code into Agent Panel, @-mention files/dirs/symbols/threads. Full transparency at the cost of manual curation.