brain_remember
Persist a fact, decision, correction, preference, or relationship across sessions by writing one memory item to every configured store, with duplicate and contradiction reporting.
Instructions
Write one memory item to every configured store in one call: the markdown vault first, then SQLite, then any other store the agent has, and the entity graph for relations.
Use it the moment the user states a fact, decision, correction, preference or
relationship worth keeping across sessions; one call per item. Not for whole documents
or web pages (brain_distill) and not for the end-of-session summary (brain_session).
Never deletes. A near-duplicate fact returns `status: duplicate` with the existing entry
and writes nothing. A changed value is appended under a `⚠ Fact changed` banner with the
old line kept, reported as `contradiction`. `layers` reports each store as
written|exists|pending|failed|refused, so a dead store is visible, never silent. Text
that looks like a secret is refused.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": {
"text": "<text>",
"kind": "<kind>"
},
"name": "brain_remember"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Other words this would be asked for by: synonyms, plain names, the question it answers. Searched, never shown. | |
| kind | Yes | One of fact|pattern|decision|correction|note|raw|relation, or key: text = a question whose recall was a `weak_match`, source = the `source` of the result that later answered it. | |
| text | Yes | The memory itself, one item, plain text. | |
| extra | No | Kind-specific fields. decision: title, reason, classification, confidence. correction: title, error, correction, rule, theme. relation: subject, predicate, object (or text 'S —[p]→ O'). note: section. | |
| force | No | Write even when a near-duplicate exists. | |
| domain | No | Topic tag such as 'trading' or 'system'; empty = none. | |
| source | No | Where it came from: a URL, file path or 'user'. | |
| mission | No | Mission id to tag, e.g. 'M-012'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||