mit einem Klick
slm-recall
// Search SuperLocalMemory for relevant facts, decisions, and past context. Use when the user asks to recall, search, find, or retrieve stored information. Invokes 5-channel retrieval with LightGBM reranking via MCP.
// Search SuperLocalMemory for relevant facts, decisions, and past context. Use when the user asks to recall, search, find, or retrieve stored information. Invokes 5-channel retrieval with LightGBM reranking via MCP.
Build or rebuild the knowledge graph from existing memories using TF-IDF entity extraction and Leiden clustering. Use when search results seem poor, after bulk imports, or to optimize performance. Automatically discovers relationships between memories and creates topic clusters.
List most recent memories in chronological order. Use when the user wants to see what was recently saved, review recent conversations, check what they worked on today, or browse memory history. Shows memories sorted by creation time (newest first).
Save content to SuperLocalMemory with intelligent indexing and knowledge graph integration. Use when the user wants to remember information, save context, store coding decisions, or persist knowledge for future sessions. Automatically indexes, graphs, and learns patterns.
Check SuperLocalMemory system status, health, and statistics. Use when the user wants to know memory count, graph stats, patterns learned, database health, or system diagnostics. Shows comprehensive system health dashboard.
Switch between memory profiles for context isolation and management. Use when the user wants to change profile context, separate work/personal memories, or manage multiple independent memory spaces. Each profile has its own database, graph, and patterns.
Build or rebuild the knowledge graph from existing memories using TF-IDF entity extraction and Leiden clustering. Use when search results seem poor, after bulk imports, or to optimize performance. Automatically discovers relationships between memories and creates topic clusters.
| name | slm-recall |
| description | Search SuperLocalMemory for relevant facts, decisions, and past context. Use when the user asks to recall, search, find, or retrieve stored information. Invokes 5-channel retrieval with LightGBM reranking via MCP. |
| version | 3.4.23 |
| license | AGPL-3.0-or-later |
| compatibility | SuperLocalMemory v3.4.22 — MCP (preferred) or CLI fallback |
| attribution | {"creator":"Varun Pratap Bhardwaj","role":"Solution Architect & Creator","project":"SuperLocalMemory v3"} |
Search and retrieve memories using semantic similarity, knowledge graph relationships, and full-text search.
slm recall "<query>" [--limit N] [--min-score 0.0-1.0] [--tags tag1,tag2] [--project name]
slm recall "FastAPI"
Output:
🔍 Search Results (3 found)
[ID: 42] Score: 0.85
We use FastAPI for REST APIs
Tags: python, backend, api
Project: myapp
Created: 2026-02-05 14:23
[ID: 38] Score: 0.72
FastAPI is faster than Flask for high-throughput APIs
Tags: performance, python
Project: default
Created: 2026-02-01 09:15
[ID: 29] Score: 0.68
Async endpoints in FastAPI improve concurrency
Tags: async, fastapi, python
Project: myapp
Created: 2026-01-28 11:42
slm recall "authentication" --limit 3
Returns: Top 3 most relevant results
slm recall "React hooks" --min-score 0.7
Only returns results with relevance score ≥ 0.7
slm recall "database" --tags postgresql,performance
Only searches memories tagged with specified tags
slm recall "API design" --project myapp
Only searches memories in specified project
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
<query> | string | Yes | - | Search query |
--limit | integer | No | 10 | Max results to return |
--min-score | float | No | 0.3 | Minimum relevance (0.0-1-tags` |
--project | string | No | None | Filter by project |
SuperLocalMemory uses 3 search methods simultaneously and merges results:
Example:
Query: "authentication patterns"
Matches: "JWT tokens", "OAuth flow", "session management"
Example:
Query: "FastAPI"
Graph finds: "REST API" → "JWT auth" → "token refresh"
Example:
Query: "PostgreSQL 15"
Finds: Exact mentions of "PostgreSQL 15"
Score range: 0.0 - 1.0
| Score | Meaning |
|---|---|
| 0.9 - 1.0 | Excellent match (almost exact) |
| 0.7 - 0.9 | Strong match (very relevant) |
| 0.5 - 0.7 | Good match (related) |
| 0.3 - 0.5 | Weak match (loosely related) |
| < 0.3 | Poor match (filtered out by default) |
Factors affecting score:
Most AI assistants automatically invoke this skill when you ask:
Example in Cursor/Claude:
You: "What did we decide about authentication?"
AI: [Automatically invokes slm-recall skill]
Found 3 memories about JWT tokens and OAuth...
1. Recall then remember:
# Find existing memories
slm recall "API design"
# Add new related memory
slm remember "New API versioning strategy: use /v2/ prefix" --tags api,versioning
2. Recall then build graph:
# Find memories
slm recall "performance"
# Rebuild graph to discover new connections
slm build-graph
Find and export:
# Search and save to file
slm recall "security" --min-score 0.7 > security-notes.txt
# Count memories matching query
slm recall "python" --limit 999 | grep "^\\[ID:" | wc -l
Regular reminders:
# Daily standup helper (cron job)
#!/bin/bash
echo "Yesterday's decisions:"
slm recall "decided" --limit 5
echo -e "\nCurrent blockers:"
slm recall "blocked" --tags critical --limit 3
Causes:
Solutions:
# Lower minimum score
slm recall "query" --min-score 0.1
# Remove filters
slm recall "query" # No project/tag filters
# Check what memories exist
slm list --limit 20
Causes:
Solutions:
# Rebuild indexes
slm build-graph
# Use filters to narrow search
slm recall "query" --project myapp --tags specific-tag
# Increase min-score (fewer results = faster)
slm recall "query" --min-score 0.7
Causes:
Solutions:
# Be more specific
❌ slm recall "it"
✅ slm recall "authentication system"
# Use multiple keywords
✅ slm recall "FastAPI JWT authentication"
# Use tags to filter
✅ slm recall "performance" --tags database
🔍 Search Results (3 found)
[ID: 42] Score: 0.85
Content preview...
Tags: tag1, tag2
Project: myapp
Created: 2026-02-05
# JSON output (for scripts)
slm recall "query" --format json
# {"results": [{"id": 42, "content": "...", "score": 0.85}, ...]}
# CSV output
slm recall "query" --format csv
# id,content,score,tags,project,created_at
# 42,"Content...",0.85,"tag1,tag2",myapp,2026-02-05
| Database Size | Search Time | Notes |
|---|---|---|
| 100 memories | ~100ms | Instant |
| 1,000 memories | ~500ms | Fast |
| 10,000 memories | ~1.5s | Acceptable |
| 50,000 memories | ~5s | Consider filtering |
Optimization tips:
--min-score to filter early--tags or --project to narrow searchslm build-graphslm remember "<content>" - Save a new memoryslm list - List recent memories (no search)slm status - Check memory count and graph statsslm build-graph - Optimize search performanceCreated by: Varun Pratap Bhardwaj (Solution Architect) Project: SuperLocalMemory V2 License: MIT (see LICENSE) Repository: https://github.com/varun369/SuperLocalMemoryV2
Open source doesn't mean removing credit. Attribution must be preserved per MIT License terms.
Preferred: Use the recall MCP tool directly — it uses 5-channel retrieval
(semantic, BM25, entity-graph, temporal, Hopfield) with LightGBM reranking
and feeds the learning loop.
recall(query="your query", limit=10, session_id="<current_session>")
CLI fallback (also valid, no MCP required):
slm recall "<query>" [--limit N]
Always pass session_id when using MCP so engagement signals feed the ranker.