SAG-Wiki is an open source knowledge base that indexes local files without embeddings, a vector database, or model calls during indexing. Developers can point it at a folder, search the resulting index from a desktop app or CLI, and retrieve citations to exact source passages.
The project combines a Rust runtime, a Tauri desktop app, and agent integrations for Claude Code, Codex, and OpenCode. It has attracted more than 1,000 GitHub stars and targets workflows that need frequent, traceable searches across changing files.
Vectors leave the indexing path
SAG-Wiki’s installer is about 14 MB and requires no separate database. The project reports indexing roughly 1 million characters in 200 milliseconds, making incremental updates inexpensive when source files change.
Its SAG2 retrieval method builds a local index without embeddings or LLM calls. At query time, it expands the search and applies Jev evidence scoring, which ranks passages according to how strongly they support the query.
External services enter the workflow in specific modes. In-depth semantic retrieval requires a configured Jev service, while generated answers send selected passages to the model provider chosen by the user. Basic indexing remains local.
Read the benchmarks carefully
The team’s SAG2 paper evaluates evidence recall on 1,000 questions from each benchmark. Recall@10 measures whether the passages needed to answer a question appear among the first 10 results.