Rhebok
Local retrieval and memory for AI coding agents, with semantic search over notes, papers and past sessions.
At a Glance
Free, open-source local retrieval and memory for AI coding agents. Runs on your own machine with no account, no cloud service and no telemetry. Licensed AGPL-3.0-only; Ollama is required and runs locally.
Engagement
Available On
Listed Dec 2026
About Rhebok
Rhebok is an open-source Rust tool from Stellenbosch Technologies that gives AI coding agents local retrieval over a user's own knowledge base: notes, papers, web clippings and past agent sessions. It indexes chosen folders, embeds them with a small model running through Ollama, and serves results to agents automatically or on demand. The latest release listed on GitHub is v0.3.0.
What It Is
Rhebok is a local semantic search and memory layer for coding agents such as Claude Code, Codex, Gemini CLI, Cursor and Claude Desktop. Instead of re-pasting context each session, users point Rhebok at folders and it finds relevant passages for the agent. Vector, keyword and link-graph results are fused, and superseded decision records are demoted. It also keeps durable memories that carry across sessions and finished sessions can be distilled into short episode memories.
How Context Reaches the Agent
A prompt hook adds the most relevant passages to prompts in Claude Code, Codex and Gemini CLI, but only when they clear a confidence gate. An MCP tool (for example rhebok_search_knowledge) lets the agent search whenever it decides to. Past Claude Code and Codex transcripts are indexed, so questions like how a problem was fixed last time can be answered. A local web dashboard shows what each stage found and what reached the prompt, and also covers search, graph, memories, health and settings.
Local-First Design and Setup
Embeddings run on the user's machine and the project states there is no telemetry or account. It goes online only for specific tasks such as update checks, downloading the vector-search extension, fetching an OCR model, and fetching pages added with rhebok add <url>. Optional remote embedding endpoints and backups to S3 or Google Drive can be enabled. Installation uses an install script or Homebrew, followed by rhebok install, and requires Ollama; the installer asks before downloading the embedding model (about 640 MB). It supports Apple silicon Macs and Linux (x86_64 or arm64, glibc 2.39+); Windows users run the Linux build in WSL. The rhebok memory export command writes memories as JSON lines. The project is licensed under AGPL-3.0.
Collections
Popular collections
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- See What Your Agent Is Doing
Collection by @evtuff
Add Rhebok to one of your collections.
Community Discussions
Be the first to start a conversation about Rhebok
Share your experience with Rhebok, ask questions, or help others learn from your insights.
Pricing
Open Source (AGPL-3.0)
Free, open-source local retrieval and memory for AI coding agents. Runs on your own machine with no account, no cloud service and no telemetry. Licensed AGPL-3.0-only; Ollama is required and runs locally.
- AGPL-3.0-only licensed core
- Local embeddings via Ollama
- Hybrid vector, keyword and link-graph search
- MCP tool for on-demand search
- Automatic prompt context injection with confidence gate
Capabilities
Key Features
- Local semantic search over notes, papers, web clippings and past agent sessions
- Automatic prompt context injection gated by a confidence threshold
- MCP tool for on-demand search
- Hybrid retrieval fusing vector, keyword and link-graph results
- Durable memories and session distillation into episode memories
- Local web dashboard and native Mac app
- Shared knowledge base across multiple agents
- Memory export as JSON lines
- Built-in benchmarking with rhebok bench
- Optional encrypted backups to S3 or Google Drive
- OCR for scanned PDFs
