# SAG-Wiki: local file search and cited Q&A for people and coding agents

> SAG-Wiki is a local knowledge base that indexes folders of documents and code without LLM calls, and it lets people search them in a desktop app while coding agents query them through a command-line tool and a Skill.

- Project: SAG-Wiki by Zleap-AI
- List: Built for AI
- Kind: tool
- Works with: Claude Code, Codex, OpenCode
- Noticed: 1,684 GitHub stars (when we found it)
- Added: 2026-11-25T10:07:34+00:00
- Web page: https://ai-news.ikangai.com/built/sag-wiki/

SAG-Wiki indexes local folders of files, including documents, notes and code. According to the README, indexing and retrieval need no LLM calls or embeddings, and a million characters are indexed in approximately 200 ms. That figure covers text indexing only. It excludes document conversion, OCR and table recognition. Retrieval uses the author's SAG2 method, which the README says outperforms RAG and GraphRAG on benchmarks published in a linked paper. An LLM is used only when you ask for a generated answer, and that answer cites its source passage.

People can use a desktop app for macOS and Windows, or run a browser service on a Linux host with the npm package @zleap-ai/sag. Agents such as Claude Code, Codex and OpenCode install the bundled Skill from a single instruction. Semantic retrieval requires a decision model, which can be a local Jev-compatible service or a keyed provider. Cited Q&A needs an answer model and an API key. The README says original files stay on the machine, but queries and passages go to the services you configure. The project is MIT licensed.

The README lists several limits. Image text is not recognized in the Office text-only mode. Scanned PDFs become fully searchable only after background OCR finishes. Image recognition and audio or video transcription are optional downloads. Anyone relying on scanned documents should check the original for coverage.

## In the author's words

> A lightweight knowledge base for people and agents. Index and search your local files without LLM calls, then ask questions with answers you can trace to the source.

## When to reach for it

A reader who wants an agent to search their own notes can copy the split the README describes: keep indexing local, expose the search through a CLI that the agent calls, and send text to a model only for the final answer. It fits people who want search across their files without running a vector database.

## See it

- [SAG-Wiki](https://github.com/Zleap-AI/SAG-Wiki)
- [Website](https://sag-wiki.zleap.com)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
