-
-
Notifications
You must be signed in to change notification settings - Fork 11
Quick Start Tutorial
Your first memory in 2 minutes - Get started with SuperLocalMemory V2's intelligent local memory system for AI coding assistants.
Before starting, ensure you have:
- Python 3.8 or higher installed (
python3 --version) - Git installed (for cloning repository)
- 5 minutes of time
Already installed? Skip to Your First Memory.
# Clone repository
git clone https://github.com/varun369/SuperLocalMemoryV2.git
cd SuperLocalMemoryV2
# Install
./install.shgit clone https://github.com/varun369/SuperLocalMemoryV2.git
cd SuperLocalMemoryV2
.\install.ps1What happens during installation:
- Creates
~/.claude-memory/directory - Initializes SQLite database
- Auto-detects installed IDEs (Cursor, Windsurf, Claude Desktop, VS Code)
- Configures MCP server for detected tools
- Installs CLI wrapper (
slmcommand) - Sets up shell completions (bash/zsh)
Verify installation:
slm statusExpected output:
✓ Database: OK (0 memories)
✓ Knowledge Graph: Ready
✓ Pattern Learning: Ready
✓ Current Profile: default
For detailed installation troubleshooting, see the Installation Guide.
slm remember "We use FastAPI for REST APIs in this project"Output:
Memory added with ID: 1
✅ Memory saved successfully
Next steps:
• Use `slm recall <query>` to search this memory
• Use `slm list` to see recent memories
What just happened:
- Content saved to local SQLite database (
~/.claude-memory/memory.db) - TF-IDF vectors generated for semantic search
- Entities extracted ("FastAPI", "REST APIs")
- Pattern learning analyzed your preference for FastAPI
- Full-text search index updated
slm remember "JWT tokens expire after 24 hours" --tags security,auth,jwtWith tags for better organization:
- Helps filtering
- Improves search relevance
- Enables tag-based queries
slm remember "Database uses PostgreSQL 15 with UUID primary keys" --project myapp --tags database,postgresqlProject isolation prevents context bleeding between different codebases.
slm remember "CRITICAL: Production deploys require approval from @lead" --importance 10 --tags deployment,productionImportance levels (1-10):
- 1-3: Low priority (notes, ideas)
- 4-6: Normal (coding patterns, decisions)
- 7-9: High priority (critical info, warnings)
- 10: Critical (blockers, security issues)
slm recall "FastAPI"Output:
🔍 Search Results (1 found)
[ID: 1] Score: 0.95
We use FastAPI for REST APIs in this project
Tags: -
Project: default
Created: 2026-02-07 14:23
Three search methods working simultaneously:
- Semantic Search (TF-IDF) - Finds conceptually similar content
- Knowledge Graph - Discovers related memories via graph edges
- Full-Text Search (FTS5) - Exact keyword matching
# Limit results
slm recall "authentication" --limit 3
# Filter by relevance score
slm recall "React hooks" --min-score 0.7
# Filter by tags
slm recall "database" --tags postgresql,performance
# Filter by project
slm recall "API design" --project myappSee the CLI Cheatsheet for all search options.
slm list --limit 10Output:
📋 Recent Memories (3 total)
[ID: 3] CRITICAL: Production deploys require approval from @lead
Tags: deployment, production
Project: default
Created: 2026-02-07 14:25
[ID: 2] JWT tokens expire after 24 hours
Tags: security, auth, jwt
Project: default
Created: 2026-02-07 14:24
[ID: 1] We use FastAPI for REST APIs in this project
Tags: -
Project: default
Created: 2026-02-07 14:23
After adding several memories, build the knowledge graph to discover relationships:
slm build-graphOutput:
🔄 Building Knowledge Graph...
Phase 1: Entity Extraction
Scanning 3 memories...
Extracted 15 unique entities
Created 15 graph nodes
✓ Complete (0.1s)
Phase 2: Relationship Discovery
Computing similarity scores...
Created 8 edges (relationships)
Avg edges per node: 0.5
✓ Complete (0.2s)
✅ Knowledge graph built successfully!
Graph Statistics:
Nodes: 15
Edges: 8
Density: 0.37%
Why build the graph:
- Improves search quality
- Discovers hidden relationships
- Enables graph-enhanced recall
- Creates topic clusters
Learn more in the Knowledge Graph Guide.
slm statusOutput:
📊 SuperLocalMemory V2 Status
Database:
Total memories: 3
Database size: 12 KB
Location: /Users/username/.claude-memory/memory.db
Knowledge Graph:
Nodes: 15
Edges: 8
Clusters: 0 (run with --clustering to enable)
Pattern Learning:
Learned patterns: 2
Confidence threshold: 0.5
Current Profile: default
SuperLocalMemory works across 11+ IDEs and tools. All use the same local database - no data duplication.
After installation, Cursor automatically detects SuperLocalMemory.
Usage in Cursor:
You: "Remember that we use FastAPI for REST APIs"
AI: [Automatically invokes memory tools]
✓ Memory saved
You: "What did we decide about APIs?"
AI: [Searches memories]
Found: "We use FastAPI for REST APIs in this project"
# Use skills directly
/slm-remember "content"
/slm-recall "query"
/slm-list-recent
/slm-status# Slash commands
/slm-remember "content"
/slm-recall "query"# Universal CLI works everywhere
slm remember "content"
slm recall "query"
slm list
slm statusSee Multi-Profile Workflows for advanced usage.
Congratulations! You've completed the quick start tutorial.
- Multi-Profile Workflows - Separate work/personal contexts
- Knowledge Graph Guide - Deep dive into graph features
- Pattern Learning - How SuperLocalMemory learns your style
- CLI Cheatsheet - Complete command reference
- Python API - Programmatic access
-
Daily Standups:
slm recall "decided" --limit 5 -
Code Reviews:
slm remember "Code review feedback: Use async/await consistently" --tags codereview -
Bug Tracking:
slm remember "Bug: JWT tokens expire too fast" --tags bug --importance 8 -
Architecture Decisions:
slm remember "ADR: Use microservices over monolith" --tags architecture --importance 9
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Wiki: Complete Documentation
- Installation process
- First memory saved
- Search results with scores
- Knowledge graph visualization
- IDE integrations (Cursor, Windsurf, Claude Desktop)
Solution:
# Restart your shell
exec $SHELL
# Or manually add to PATH
echo 'export PATH="$HOME/.claude-memory/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcSolution:
# Verify installation
ls -la ~/.claude-memory/memory.db
# If missing, reinstall
cd SuperLocalMemoryV2
./install.shSolution:
# Check database
sqlite3 ~/.claude-memory/memory.db "SELECT COUNT(*) FROM memories;"
# If 0, check write permissions
chmod 755 ~/.claude-memory/
chmod 644 ~/.claude-memory/memory.dbFor more troubleshooting, see the Configuration guide.
You've learned how to:
- ✅ Install SuperLocalMemory V2
- ✅ Save your first memory
- ✅ Search memories semantically
- ✅ List recent memories
- ✅ Build knowledge graph
- ✅ Check system status
- ✅ Use across different tools
100% local. 100% private. 100% yours.
Created by Varun Pratap Bhardwaj Solution Architect • SuperLocalMemory V2
SuperLocalMemory V3 — Your AI Finally Remembers You. 100% local. 100% private. 100% free.
Part of Qualixar | Created by Varun Pratap Bhardwaj | GitHub
SuperLocalMemory V3
Getting Started
Reference
Architecture
Enterprise
Release Notes
V2 Documentation