[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109244":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":16,"starSnapshotCount":16,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},109244,"SAG-Wiki","Zleap-AI\u002FSAG-Wiki","Zleap-AI","A lightweight knowledge base for people and agents, with ultra fast indexing and most precise retrieval.","https:\u002F\u002Fsag-wiki.zleap.com",null,"Rust",1656,180,5,1,0,14,330,1478,84,104.75,"MIT License",false,"main",true,[],"2026-11-22 18:58:16","2026-11-23 15:21:35","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fsag-wiki-logo.png\" alt=\"SAG-Wiki\" width=\"294\" \u002F>\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">SAG-Wiki\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>English\u003C\u002Fstrong> · \u003Ca href=\"README-CN.md\">简体中文\u003C\u002Fa> · \u003Ca href=\"CHANGELOG.md\">Changelog\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.22588\">\u003Cimg alt=\"Paper\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpaper-arXiv%3A2610.22588-18181b\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Freleases\u002Flatest\">\u003Cimg alt=\"SAG-Wiki version\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FZleap-AI\u002FSAG-Wiki?label=SAG-Wiki&amp;color=18181b\" \u002F>\u003C\u002Fa>\n  \u003Cimg alt=\"Rust\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-2021-3776ab\" \u002F>\n  \u003Cimg alt=\"Tauri\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTauri-2-339933\" \u002F>\n  \u003Cimg alt=\"Svelte\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSvelte-5-18181b\" \u002F>\n  \u003Ca href=\"LICENSE\">\u003Cimg alt=\"License\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-18181b\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cstrong>Lightweight and easy. Fast indexing. Precise retrieval.\u003C\u002Fstrong>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  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.\n\u003C\u002Fp>\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fe9c5499d-6057-4add-ac7e-f57eae381a2f\n\nVersion 0.2.6 adds a Quick Search popup with a global shortcut, cross-language retrieval in Q&A, built-in documents indexed by default and revised conversion and indexing memory budgets. See the [changelog](CHANGELOG.md) and [bilingual documentation](docs-site\u002FREADME.md). The download link below points to the latest stable GitHub Release.\n\n## Contents\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#project\">Project\u003C\u002Fa> ·\n  \u003Ca href=\"#technology\">Technology\u003C\u002Fa> ·\n  \u003Ca href=\"#user-guide\">User Guide\u003C\u002Fa> ·\n  \u003Ca href=\"#agent-guide\">Agent Guide\u003C\u002Fa> ·\n  \u003Ca href=\"#developer-guide\">Developer Guide\u003C\u002Fa> ·\n  \u003Ca href=\"#community\">Community\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\n\u003Ca id=\"project\">\u003C\u002Fa>\n\n## SAG-Wiki in one minute\n\n[Download the latest desktop release for macOS and Windows](https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Freleases\u002Flatest)\n\n**Install for your agent**\n\n```text\nInstall https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Fblob\u002Fmain\u002Fcli\u002Fskills\u002Fsag\u002FSKILL.md and follow its setup flow for my current project.\n```\n\nThe installer size excludes optional document conversion components and recognition models downloaded on demand.\n\nAdd a folder to make your documents, notes, and code searchable. Find a passage, ask a question across files, open the source behind an answer, or give your coding agent access to the same knowledge base.\n\n- **Light:** just **14 MB** to download, with no separate database to install.\n- **Fast:** index a million characters in approximately **200 ms**, with no LLM calls for indexing or retrieval.\n- **Precise:** our original **SAG2** retrieval technology outperforms RAG, GraphRAG, and other approaches.\n\nRead and edit Markdown, preview HTML, explore related documents, or search from the terminal. PDF, Office, and EPUB documents convert out of the box; image recognition and audio\u002Fvideo transcription are optional components.\n\n### How it compares\n\n| Capability | **SAG-Wiki** | LLM Wiki | Typical vector RAG |\n| --- | --- | --- | --- |\n| Getting started | **Add a local folder** | Have an agent read sources and maintain wiki pages | Import documents, split them, and build a vector index |\n| Preparing knowledge | **No LLM calls or embeddings** | An LLM writes and updates summaries and links | An embedding model encodes document chunks |\n| Knowledge you search | **Original documents, with passage locations** | Generated, interlinked wiki pages | Indexed document chunks |\n| File changes | **Watch local files and update the index** | Have the agent revise affected pages | Update affected chunks and embeddings |\n| Finding information | **SAG2 evidence retrieval across files** | Navigate and query the maintained wiki | Retrieve by vector similarity, optionally with reranking |\n| Everyday use | **Desktop search, cited Q&A, document editing, and relationship exploration** | Agent workflows and a Markdown editor | Depends on the application |\n| Agent access | **CLI and a ready-to-install Skill** | Instructions for maintaining and reading the wiki | Application-specific tools or APIs |\n\nThe comparison uses [Karpathy's LLM Wiki pattern](https:\u002F\u002Fgist.github.com\u002Fkarpathy\u002F442a6bf555914893e9891c11519de94f) and the [standard vector RAG workflow](https:\u002F\u002Fdocs.langchain.com\u002Foss\u002Fpython\u002Fdeepagents\u002Fretrieval). Features vary by implementation.\n\n---\n\n\u003Ca id=\"technology\">\u003C\u002Fa>\n\n## Technology\n\nSAG-Wiki runs on **SAG2, our original retrieval method**. It builds a local index without embeddings or LLM calls, then uses Jev evidence scoring and query-time expansion to find supporting passages across documents. LLMs are used when you choose to generate an answer.\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fbcdf9dbf-7535-41d6-bd22-bde0ea824525\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fsag2-retrieval-comparison-en.png\" alt=\"SAG2 Recall@10 exceeds SAG and BM25 on high-difficulty MuSiQue, medium-difficulty 2WikiMultiHopQA, and low-difficulty HotpotQA, with relative percentage gains\" width=\"940\" \u002F>\n\u003C\u002Fp>\n\n\u003Csub>SAG-Wiki is represented by its underlying SAG2 benchmark results. Recall@10 measures evidence recall in the first ten results. SAG2 uses 1,000 questions per benchmark; MuSiQue was used for method development. SAG and BM25 are reference values from the original SAG paper. Difficulty labels are presentation categories; relative gains use the displayed scores.\u003C\u002Fsub>\n\n**[Read the SAG2 paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.22588)** · For the method, benchmark results, and reproduction code, see **[SAG-Benchmark](https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Benchmark)**.\n\n---\n\n\u003Ca id=\"user-guide\">\u003C\u002Fa>\n\n## User Guide\n\n| Feature | What you need |\n| --- | --- |\n| File indexing and quick search | Add a folder; no API key needed |\n| SAG2 semantic retrieval | Configure a Jev service; supply an API key when required |\n| Cited Q&A | Configure an answer model and API key; SAG2 retrieval also requires Jev configuration |\n\nSAG-Wiki itself is free and open source. External service charges depend on your chosen provider. Original files stay on your machine; in-depth retrieval and Q&A send the required questions, document passages, or context to the services you configure.\n\n### 1. Download and add a folder\n\nDownload the macOS DMG from the latest release link above, open it, and drag SAG Wiki into Applications. The current macOS build is not Apple-notarized, so macOS may display a security prompt on first launch.\n\nInstall and open SAG-Wiki, switch the sidebar to **Folders**, then click **+** beside folder management to add the folder you want to search. Your files stay in their original locations.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fproduct-folders-en.png\" alt=\"Local folders and documents in SAG-Wiki\" width=\"940\" \u002F>\n\u003C\u002Fp>\n\n### 2. Search your files\n\nOnce indexing finishes, use **Search** to find passages and preview the source. Quick search works locally; configure Jev in **Settings → Models** for in-depth semantic retrieval.\n\nFor a local Jev service, select **Custom** and enter its model name and base URL (for example, `http:\u002F\u002F127.0.0.1:8000\u002Fv1`), or its complete `\u002Fsystemone` or `\u002Fdecisions` endpoint. Choose **No authentication** under **Jev authentication** if the service does not require an API key; this omits the authorization header and removes the saved Jev key. The service must implement Jev’s `state`, `questions`, and `answers.*.noul` protocol. For the CLI, run `sag config --url http:\u002F\u002F127.0.0.1:8000\u002Fv1 --model YOUR_MODEL --auth none`. To switch back to a keyed service, use `--auth bearer --key-stdin` and enter that service’s key.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fproduct-search-en.png\" alt=\"Search results with the matching source passage\" width=\"940\" \u002F>\n\u003C\u002Fp>\n\n### 3. Ask questions and check the source\n\nConfigure your answer model in **Settings → Models**, then ask in **Chat**. Use `@` to select files, and click a citation to see the passage supporting the answer.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fproduct-chat-en.png\" alt=\"A question answered with document citations in SAG-Wiki\" width=\"940\" \u002F>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fproduct-citation-en.png\" alt=\"Opening a citation highlights the original passage\" width=\"940\" \u002F>\n\u003C\u002Fp>\n\n---\n\n\u003Ca id=\"agent-guide\">\u003C\u002Fa>\n\n## Agent Guide\n\nGive your agent this one sentence:\n\n```text\nInstall https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Fblob\u002Fmain\u002Fcli\u002Fskills\u002Fsag\u002FSKILL.md and follow its setup flow for my current project.\n```\n\nSAG supports **Claude Code, Codex, and OpenCode**. The Skill includes CLI installation, configuration, project indexing and verification. **The CLI works without SAG Wiki desktop** and shares its settings and knowledge base when the desktop is installed. Existing settings are reused; API-key-authenticated semantic search needs your own Jev key, entered privately in a terminal. The GitHub Skill link is the canonical installation entry; the agent retrieves its supporting files from the same directory.\n\nWith Node.js 18 or later installed:\n\n```sh\nnpm install -g @zleap-ai\u002Fsag\n```\n\nThe [published npm package](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@zleap-ai\u002Fsag) includes **macOS Apple Silicon and Windows x64** binaries. It requires no Rust toolchain or source compilation. Installing the CLI does not install the desktop app.\n\n\u003Cdetails>\n\u003Csummary>Manual installation and usage\u003C\u002Fsummary>\n\nIf `sag` is already installed, reuse it. Otherwise run the npm command above, then verify the command and complete first-time Jev setup in a terminal:\n\n```sh\nsag --version\nsag\n```\n\nInstall the linked [Skill folder](https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Ftree\u002Fmain\u002Fcli\u002Fskills\u002Fsag), including `SKILL.md` and `references\u002F`, at the location for your agent:\n\n| Agent | Skill folder |\n| --- | --- |\n| Codex | `~\u002F.agents\u002Fskills\u002Fsag\u002F` |\n| Claude Code | `~\u002F.claude\u002Fskills\u002Fsag\u002F` |\n| OpenCode | `~\u002F.config\u002Fopencode\u002Fskills\u002Fsag\u002F` |\n\nStart a new agent session. In the project you want to search, add the folder and confirm indexing is ready before searching:\n\n```sh\nsag add\nsag check\nsag \"Where is permission checked?\" . -m 5\n```\n\nSee the Skill's [setup guide](cli\u002Fskills\u002Fsag\u002Freferences\u002Fsetup.md#first-use-setup) for the complete agent workflow and the [CLI guide](docs\u002Fen\u002Fcli-and-harness.md) for other commands.\n\n\u003C\u002Fdetails>\n\n---\n\n\u003Ca id=\"developer-guide\">\u003C\u002Fa>\n\n## Developer Guide\n\nThe **Rust CLI is the runtime foundation**. The `sag` executable starts a shared local service; both terminal commands and the Tauri desktop connect to it through the same client. Indexing, retrieval, and model configuration live in one core, and remain available after the desktop exits.\n\n```mermaid\nflowchart TD\n    Desktop[\"Desktop · Svelte + Tauri\"] --> Client[\"sag-client\"]\n    Agent[\"Terminal \u002F Agent · sag CLI\"] --> Client\n    Client --> Service[\"sag service serve · Rust core\"]\n    Service --> Local[\"Local files + SQLite index\"]\n    Service --> Jev[\"Jev · evidence retrieval\"]\n    Service --> LLM[\"LLM · answer generation\"]\n```\n\n| Directory | Contents |\n| --- | --- |\n| `src\u002F` | Desktop interface |\n| `src-tauri\u002F` | Desktop system features and service connection |\n| `cli\u002F` | Command-line entry point and Skill installation |\n| `core\u002F` | Indexing, retrieval, and Q&A |\n| `client\u002F`, `protocol\u002F` | Client communication and protocol |\n\nFollow the [environment guide](docs\u002Fen\u002Fdevelopment.md#environment) to prepare Node.js, Rust, and your platform's Tauri development dependencies, then run:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki.git\ncd SAG-Wiki\nnpm ci\nnpm run tauri dev\n```\n\nAfter changes, run `npm run check` and `npm test`; the [checks section](docs\u002Fen\u002Fdevelopment.md#code-checks) lists all validation commands. See the [development guide](docs\u002Fen\u002Fdevelopment.md), [architecture](docs\u002Fen\u002Farchitecture.md), and [documentation index](docs\u002Fen\u002FREADME.md) for builds and implementation details.\n\n---\n\n## Contributing and License\n\nContributions are welcome through [Issues](https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Fissues) and [Pull Requests](https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Wiki\u002Fpulls). For changes to the application, follow the [development guide](docs\u002Fen\u002Fdevelopment.md); retrieval research and reproduction code live in [SAG-Benchmark](https:\u002F\u002Fgithub.com\u002FZleap-AI\u002FSAG-Benchmark).\n\nSAG-Wiki is released under the [MIT License](LICENSE). Third-party notices are in [src-tauri\u002Flicenses](src-tauri\u002Flicenses\u002F).\n\n---\n\n\u003Ca id=\"community\">\u003C\u002Fa>\n\n## Community\n\nJoin the SAG community on Discord or WeChat to connect with maintainers and other users.\n\n\u003Ctable align=\"center\">\n  \u003Ctr>\n    \u003Cth>Discord\u003C\u002Fth>\n    \u003Cth>WeChat\u003C\u002Fth>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fdiscord-community-qr.jpg\" alt=\"SAG Discord community QR code\" width=\"220\" \u002F>\u003C\u002Ftd>\n    \u003Ctd align=\"center\">\u003Cimg src=\"docs\u002Fassets\u002Freadme\u002Fwechat-community-qr.png\" alt=\"SAG WeChat community QR code\" width=\"220\" \u002F>\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n","SAG-Wiki 是一个轻量级本地知识库工具，专为个人用户和AI代理设计，支持快速索引与高精度检索。其核心采用自研的 SAG2 检索技术，无需调用大语言模型即可完成文档索引与语义问答，支持 Markdown、PDF、Office 等多格式文件的本地解析与跨语言检索；内置桌面客户端（基于 Tauri+Svelte）与 CLI 工具，安装包仅 14 MB，百万字符索引耗时约 200 ms。适用于个人知识管理、研发团队文档中枢、AI 编程助手的本地上下文供给等对隐私性、响应速度和结果可追溯性要求较高的场景。",2,"2026-11-24 04:36:18","CREATED_QUERY"]