Save a memory
rhebok_save_memoryStores a lesson, fact or episode as a durable memory so later sessions recall it. Use it when the user corrects you, states a preference, or asks you to remember a rule.
Instructions
Save a memory that later sessions see: a lesson (a correction or a rule the user gave you), a fact (something durable about the user or their setup) or an episode (what happened and what was decided).
Use it when the user corrects you, states a preference, or asks you to remember something. Do not use it for what their notes already say, which rhebok_search_knowledge finds, or for details that matter only in this conversation. To see what is saved, use rhebok_list_memories; to remove a memory, use rhebok_delete_memory.
Parameters: write text as the rule or fact itself, in one to three sentences that make sense with no conversation around them, for example "Never commit with the personal email; use the noreply address." scope defaults to the current project; pass "global" only for a rule the user means everywhere. Leave confidence at 80, and use 100 only when the user stated the rule outright; a memory you save below the configured floor (80 by default) is refused.
Behavior: the text is sent to the configured embedding server, so a save fails while that server is unreachable; the memory itself stays on this machine. A memory almost the same as one of the same kind (cosine similarity 0.94 or more by default) replaces it, and the replaced memory is deleted with no undo. Lessons appear at the start of every session in their project; every kind can be retrieved on later prompts.
Returns: status saved, replaced, duplicate or rejected; the memory's id, which rhebok_delete_memory takes; the id and title of a memory it replaced; and reason when nothing was saved.
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": {
"kind": "<kind>",
"text": "<text>"
},
"name": "rhebok_save_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | "lesson" (a rule the user taught you), "fact" (something durable about the user or their setup) or "episode" (what happened, with the decision and why). | |
| text | Yes | One to three sentences, 10 to 2000 characters, in the user's own intent. | |
| scope | No | "global" for a rule that applies everywhere, or an absolute project path. Omit to scope to the current project. | |
| title | No | Optional short title. Defaults to the first sentence. | |
| confidence | No | 0-100. Use 100 only when the user said it explicitly; the default is 80. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The saved memory's id, or for a duplicate the id of the memory that already says it. Null when rejected. | |
| kind | Yes | The memory's kind. Null when `kind` was not lesson, fact or episode. | |
| reason | Yes | Why nothing was saved, when status is "rejected". | |
| status | Yes | "saved" and "replaced" wrote the memory; "duplicate" wrote nothing because the same memory already exists; "rejected" wrote nothing, see `reason`. | |
| replaced | Yes | The near-duplicate this save replaced, when status is "replaced". |