{"slug": "show-hn-rhebok-free-local-rag-for-your-coding-agent", "title": "Show HN: Rhebok – free local RAG for your coding agent", "summary": "Stellenbosch Technologies released Rhebok, a free local retrieval-augmented-generation tool that indexes a developer's notes, papers, web clippings and past Claude Code and Codex transcripts, embeds them with a small model run through Ollama on the user's own machine, and injects relevant passages into coding-agent prompts automatically when they clear a calibrated confidence gate. Rhebok also exposes an MCP tool for on-demand search, works with Claude Code, Codex, Gemini CLI, Cursor and Claude Desktop against one shared index, and requires a Mac with Apple silicon or Linux on x86_64 or arm64 with glibc 2.39 or newer. The tool sends no telemetry and goes online only to check daily for a newer release, download its vector-search extension on first index build, fetch an OCR model for scanned PDFs, and fetch pages added via `rhebok add <url>`, unless the user enables a remote embedding endpoint or S3/Google Drive backup.", "body_md": "Your coding agent starts every session knowing nothing you have not pasted in. The decision you wrote up last month, the fix you found in yesterday's session, the paper in your Downloads folder: it can use none of them unless you find them and hand them over.\n\nrhebok hands them over. It is local, semantic search over your own knowledge base (notes, papers, web clippings and past agent sessions), and it adds what is relevant to your coding agent's prompts automatically.\n\nrhebok indexes the folders you point it at, embeds them with a small model\nrunning on your own machine through [Ollama](https://ollama.com), and serves\nthe results two ways:\n\n- **Automatic context.** A prompt hook adds the most relevant passages to\nevery prompt, but only when they clear a confidence gate.\n- **On-demand search.** An MCP tool lets the agent search your knowledge base\nwhenever it decides to.\n\nIt works with Claude Code, Codex, Gemini CLI, Cursor and Claude Desktop. It also keeps durable memories (lessons and facts that carry across sessions) and has a local web dashboard for searching, exploring and configuring everything.\n\nNothing leaves your machine unless you set it up to: embeddings run locally\nand there is no telemetry. rhebok itself goes online only to check daily for a\nnewer release, to download its vector-search extension the first time it\nbuilds an index, to fetch the OCR model the first time it reads a scanned PDF,\nand to fetch pages you add with `rhebok add <url>`. If you turn them on, it\nalso sends text to an embedding endpoint you choose and backs up to your own\nS3 bucket or Google Drive.\n\n- **Context arrives on its own.** Most memory and search tools for agents\nare an MCP tool the agent has to remember to call. In Claude Code, Codex\nand Gemini CLI, rhebok also injects context into every prompt\nautomatically, but only what clears a calibrated confidence gate, so the\nagent isn't flooded with noise.\n- **It remembers your past sessions.** Your Claude Code and Codex\ntranscripts are indexed too, so \"how did we fix this last time?\" has an\nanswer when the agent searches with`rhebok_search` or you run`rhebok search` . Finished sessions are also distilled into short episode\nmemories. The automatic prompt context prefers your notes and keeps raw\ntranscripts out by default.\n- **Retrieval you can inspect.** Vector, keyword and link-graph results are\nfused, superseded decision records are demoted, and the dashboard shows\nexactly what each stage found and what reached the prompt.\n- **Local and simple.** One Rust binary, embeddings through Ollama on your\nmachine, no cloud API, no telemetry and no server to run.\n- **One index for every agent.** Claude Code, Codex, Gemini CLI, Cursor and\nClaude Desktop all use the same knowledge base.\n\n|  | rhebok | claude-mem | mem0 | basic-memory | mcp-memory-service | \n|---|---|---|---|---|---|\n| Searches your notes on every message you send | ✅ ¹ | ❌ ² | ❌ ³ | ❌ ⁴ | ❌ ⁵ | \n| Reads the notes you already have | ✅ | ❌ | ❌ | ✅ | ✅ ⁶ | \n| Remembers your past chats with the agent | ✅ | ✅ | ✅ | ❌ ⁷ | ✅ | \n| Works without a cloud account | ✅ | ✅ | ❌ | ✅ | ✅ | \n| Tests how well it finds *your* notes | ✅ | ❌ | ❌ | ❌ ⁸ | ❌ | \n\n1. It adds notes only when they are a good match, so most messages get none.\n2. Only when a session starts, unless you switch it on.\n3. Only on the first message.\n4. Only when a session starts.\n5. Only when a message sounds like it needs memory, such as \"what did we decide\".\n6. Only files you add to it.\n7. Only chats you export and import.\n8. Its test kit is built for public datasets.\n\nThe others do things rhebok does not. claude-mem writes summaries of what\nyour agent did. mem0 can keep your memory in the cloud. basic-memory lets the\nAI write your notes for you. [The full comparison](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/comparison.md) has\nthe details and a source for every answer, checked on 2026-11-20.\n\nYou need a Mac with Apple silicon, or Linux on x86_64 or arm64 with glibc\n2.39 or newer (Ubuntu 24.04 or newer), plus [Ollama](https://ollama.com)\nrunning and a coding agent such as Claude Code. On Windows, use the Linux build\ninside WSL. Intel Macs have no release build.\n\n```\ncurl -fsSL https://github.com/Stellenbosch-Technologies/rhebok/releases/latest/download/install.sh | sh\n```\n\nThe installer puts `rhebok` on your PATH, downloads the embedding model (about\n640 MB, after asking), registers the Claude Code plugin, and offers to connect\nthe other agents it finds. It also offers the optional session distillation\nmodel (about 2.5 GB). With [Homebrew](https://brew.sh), install it with\n`brew install stellenbosch-technologies/tap/rhebok`, then run `rhebok install`.\nOther ways to install, including building from source, are in the\n[install guide](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/install.md).\n\nrhebok used to be called br8n. If you used br8n, install rhebok the same way:\n`rhebok install` moves your br8n index, memories and config, and your agent\nconnections, to rhebok. A br8n binary cannot update itself to rhebok.\n\n1. \n**Choose what to search.** Run`rhebok dashboard` and follow the three-step\nsetup, or do it from the terminal:\n\n```\nrhebok config set sources '[\"~/notes\", \"~/Documents/papers\"]'\nrhebok index\n```\n\n2. \n**Restart your agents** so they load rhebok.\n3. \n**Check it works:**\n\n```\nrhebok status                        # every install check should pass\nrhebok search \"something in your notes\"\n```\n\nTwo lines are only information. The `ocr:` line says whether the optional\nOCR libraries are installed; without them, text PDFs are still indexed and\nonly scanned pages are skipped. A missing distillation model is listed as\noptional; without it, finished sessions are not turned into episode memories.\n\nThen ask your agent about something from your notes. After the first index, rhebok re-reads only what changed, and each new Claude Code session refreshes the index in the background.\n\n```\nrhebok dashboard            # search, graph, memories, health and settings in the browser\nrhebok search \"query\"       # search from the terminal\nrhebok index                # pick up new or changed files\nrhebok status               # index size, settings and any problems\nrhebok connect codex        # connect another agent (see: rhebok agents)\nrhebok update               # install the newest release\nrhebok uninstall            # remove rhebok; keeps the config, index and memories\n```\n\n`rhebok uninstall --purge` also deletes the index, every memory, the config,\nthe golden set and the default backup key. The\n[install guide](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/install.md#uninstall) lists what to save first.\n\n- **Native Windows support** is planned. Until then, use the Linux build\ninside WSL.\n- **Intel Macs** have no release build yet, because of an upstream library\nissue.\n\nAsk a question, share an idea or show what you built in\n[Discussions](https://github.com/Stellenbosch-Technologies/rhebok/discussions).\nReport a bug in the\n[issues](https://github.com/Stellenbosch-Technologies/rhebok/issues), and see\n[CONTRIBUTING.md](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/CONTRIBUTING.md) to get started on the code. Please report\nsecurity problems privately, as [SECURITY.md](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/SECURITY.md) describes. Everyone\ntaking part follows the [Code of Conduct](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/CODE_OF_CONDUCT.md).\n\n- [Install guide](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/install.md) : every install option, building from\nsource, updating, uninstalling and install problems\n- [Using rhebok](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/usage.md) : indexing, memory, the dashboard, connecting\nagents and slash commands\n- [Configuration and tuning](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/configuration.md) : the config file, quality\ntiers, ranking, remote embedding endpoints and scanned PDFs\n- [Backups](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/backups.md) : encrypted backups of your config, memories and\nindex to S3 or Google Drive\n- [Security model](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/security-model.md) : what can reach your prompts, and\nhow to limit it\n- [How rhebok compares](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/comparison.md) with claude-mem, mem0,\nbasic-memory and mcp-memory-service\n- [Troubleshooting](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/troubleshooting.md)\n- [Cutting a release](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/docs/releasing.md) , for maintainers\n\nrhebok is licensed under the [GNU Affero General Public License v3.0](https://github.com/Stellenbosch-Technologies/rhebok/blob/main/LICENSE)\n(AGPL-3.0-only). You can use, modify and share it freely; if you distribute a\nmodified version, or run one as a service that others use over a network, you\nmust make your source code available under the same licence.\n\nCopyright (C) 2026 Stellenbosch Technologies and rhebok contributors", "url": "https://wpnews.pro/news/show-hn-rhebok-free-local-rag-for-your-coding-agent", "canonical_source": "https://github.com/Stellenbosch-Technologies/rhebok", "published_at": "2026-11-24 22:49:01+00:00", "updated_at": "2026-11-24 23:15:29.137540+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "agent-protocols", "developer-tools"], "entities": ["Rhebok", "Stellenbosch Technologies", "Ollama", "Claude Code", "Codex", "Gemini CLI", "Cursor", "Claude Desktop"], "also_reported_by": [], "takeaway": "Rhebok injects knowledge-base passages into every prompt only when they clear a calibrated confidence gate, and fuses vector, keyword and link-graph results while demoting superseded decision records, so agents get context without being flooded.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-rhebok-free-local-rag-for-your-coding-agent", "markdown": "https://wpnews.pro/news/show-hn-rhebok-free-local-rag-for-your-coding-agent.md", "text": "https://wpnews.pro/news/show-hn-rhebok-free-local-rag-for-your-coding-agent.txt", "jsonld": "https://wpnews.pro/news/show-hn-rhebok-free-local-rag-for-your-coding-agent.jsonld"}}