Find context for a message
rhebok_contextRetrieves the excerpts from your knowledge base that rhebok would attach to a message, so answers reflect your own projects, notes, decisions and past sessions.
Instructions
Call this FIRST, before answering, whenever the user's message touches their own work: their projects, code, notes, decisions, past sessions, people or plans. Pass the user's message verbatim as message. It returns the excerpts from the user's knowledge base that rhebok would add to the message, gated and budgeted like the automatic prompt hook but with more time to search. The answer is JSON: block is the context to use (null when nothing cleared the gate), hits lists the sources, and notes says when retrieval was degraded. Skip it only when a block is already in the message. Prefer it over rhebok_search for the first lookup, and over your own memory of the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "rhebok_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | The directory the message was written in, which selects the rhebok project. | |
| message | Yes | The user's message, exactly as they wrote it. | |
| prehook | No | Set only by the rhebok-prehook mod: answer without searching unless `[prehook] injector` is `mod`. | |
| session | No | The Claude Code session id, recorded so the command hook knows the mod is injecting there. |