What is Local Rag?
Local Rag is a persistent project memory tool for AI coding agents. It provides semantic code search, cross-session conversation memory, auto-generated project wikis, and dependency graph analysis—all running fully locally using SQLite and in-process embeddings.
How to use Local Rag?
Install with bunx mimirs init --ide <ide> (e.g., claude, cursor, windsurf, copilot, jetbrains). Ensure SQLite with extension support is installed (brew install sqlite on macOS). No API keys, cloud, or Docker required—just Bun and SQLite.
Key features of Local Rag
- Hybrid vector + BM25 search boosted by dependency graph centrality
- Cross-session conversation indexing and checkpoints
- Auto-generated structured markdown wiki with Mermaid diagrams
- Annotations attached to files or symbols surfacing in results
- Dependency graph and reverse-dependency lookup for blast radius
- Local analytics logging zero-result and low-relevance queries
Use cases of Local Rag
- Quickly find code by meaning instead of filename or keyword search
- Recover context from past sessions—discussions, decisions, and blockers
- Understand codebase structure and impact before refactoring
- Expose documentation gaps through query analytics
- Mark milestones and direction changes with searchable checkpoints
评论