Quick Start
Get AIDE Memory running in your project in two minutes.
Install
npx aide-memory initThis command:
- Creates the
.aide/directory - Installs four hooks (PreToolUse, Stop, UserPromptSubmit, PreCompact)
- Writes rules files for Claude Code and Cursor
- Configures the MCP server
- Zero config required
(Optional) Scan your project
Generate initial memories from your codebase structure:
npx aide-memory init --scanThis scans your project and creates initial memories for common patterns, dependencies, and architecture patterns.
Work normally
Start working with your agent. Hooks capture corrections automatically:
- When you say “No, use composition here,” the hook stores it as a memory
- When the context window fills, the PreCompact hook saves planning decisions
- When a task finishes, the Stop hook extracts final decisions
Check what’s been captured
npx aide-memory listView all captured memories:
npx aide-memory list --scope src/components/**
npx aide-memory list --layer preferencesNext session
Your agent gets nudges automatically:
3 memories exist for src/components/**. Call aide_recall if relevant.That is ~20 tokens. The agent decides whether those memories matter for the current task.
Common Commands
List memories
# All memories
npx aide-memory list
# For a specific path
npx aide-memory list --scope src/checkout/**
# For a specific layer
npx aide-memory list --layer preferences
# Both
npx aide-memory list --scope src/** --layer technicalSearch memories
# Full-text search
npx aide-memory search "composition pattern"
# With path scope
npx aide-memory search "test utilities" --scope tests/**Delete a memory
npx aide-memory forget <memory-id>View memory details
npx aide-memory show <memory-id>Clear all memories
npx aide-memory resetConfiguration
Configure AIDE Memory via:
npx aide-memory config set <key> <value>
npx aide-memory config get <key>Available settings
embeddings.provider—transformers(default) orollamaembeddings.model— Model to use (Transformers.js or Ollama)sqlite.path— Path to SQLite database (default:.aide/aide.db)hooks.enabled— Enable/disable hooks globally
Using Multiple Editors
AIDE Memory works with Claude Code and Cursor. Install in any project:
npx aide-memory initThe same .aide/ directory is read by both tools. Memories captured in Claude Code are available in Cursor immediately.
Team Sharing
Commit memories to git:
git add .aide/memories/
git commit -m "Store team patterns and preferences"
git pushTeam members get the memories via:
git pullNo Docker, no sync service, no authentication. Just git.
Troubleshooting
Memories not being captured
Check that hooks are installed:
npx aide-memory hooks listIf hooks are missing, reinstall:
npx aide-memory initMemory not showing up in next session
Verify the memory exists:
npx aide-memory listVerify the path scope matches your current file:
npx aide-memory list --scope src/components/**Full-text search not working
Falls back automatically to LIKE-based search. To rebuild the FTS5 index:
npx aide-memory db rebuildNext Steps
- Features — All 8 features explained
- Architecture — How AIDE Memory works under the hood
- Comparison — vs claude-mem and engram
- FAQ — Common questions