rhebok


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.
rhebok 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.
rhebok indexes the folders you point it at, embeds them with a small model
running on your own machine through Ollama, and serves
the results two ways:
- Automatic context. A prompt hook adds the most relevant passages to
every prompt, but only when they clear a confidence gate.
- On-demand search. An MCP tool lets the agent search your knowledge base
whenever it decides to.
It 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.

Nothing leaves your machine unless you set it up to: embeddings run locally
and there is no telemetry. rhebok itself goes online only to check daily for a
newer release, to download its vector-search extension the first time it
builds an index, to fetch the OCR model from ModelScope the first time it reads
a scanned PDF (oar-ocr only; Apple Vision on macOS downloads nothing),
and to fetch pages you add with rhebok add <url>. If you turn them on, it
also sends text to an embedding endpoint you choose and backs up to your own
S3 bucket or Google Drive.
Why rhebok?
- Context arrives on its own. Most memory and search tools for agents
are an MCP tool the agent has to remember to call. In Claude Code, Codex
and Gemini CLI, rhebok also injects context into every prompt
automatically, but only what clears a calibrated confidence gate, so the
agent isn't flooded with noise.
- It remembers your past sessions. Your Claude Code and Codex
transcripts are indexed too, so "how did we fix this last time?" has an
answer when the agent searches with
rhebok_search_knowledge or you run
rhebok search. Finished sessions are also distilled into short episode
memories. The automatic prompt context prefers your notes and keeps raw
transcripts out by default.
- Retrieval you can inspect. Vector, keyword and link-graph results are
fused, superseded decision records are demoted, and the dashboard shows
exactly what each stage found and what reached the prompt.
- Local and simple. One Rust binary, embeddings through Ollama on your
machine, no cloud API, no telemetry and no server to run.
- One index for every agent. Claude Code, Codex, Gemini CLI, Cursor and
Claude Desktop all use the same knowledge base.
How it compares