Skip to navigation

rhebok

Local semantic search over your own knowledge base, for your coding agent.

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 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.

How it works

rhebok does two jobs. In the background, it keeps an index of what you point it at:

Folders, notes, papersand agent sessions Split intopassages Embedded locallyby Ollama Local index

Then, on every prompt, and whenever the agent calls the MCP search tool, it searches that index:

yes, for the hook yes, for MCP no Your prompt(prompt hook) Vector andkeyword search MCP search call Local index Fused andranked Clears theconfidence gate? Added tothe prompt Returned to the agentas the tool result Left out

At the balanced tier and above (tiers 2 to 4), search also follows the links between notes and the neighbouring passages of each hit. The prompt hook runs the fast tier (tier 1) by default, so it skips that step. MCP search runs the thorough tier (tier 3) by default, so it takes it. Configuration and tuning lists what each tier does.

rhebok answering a question from your notes

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.