al-buddy-memory
v0.12.0Governed local memory for AI agents: facts are retired, not overwritten, and every call is audited.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
remember
Store a fact with its provenance. Returns the fact with validFrom, provenance and confidence, plus mayConflictWith: current facts this one may be correcting — read them and invalidate any that stopped being true.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
confidence | number | |
provenance | string |
recall
Find facts. Every result says who asserted it, since when it has been true, whether it is still current, what superseded it, and which assistant wrote or retired it. The first call of a session, and the first after they change, also returns the user's pinned rules — treat those as standing rules for the conversation.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
includeSuperseded | boolean | |
limit | integer |
history
Show the recorded changes to one fact, including each change time and the full mutable state before and after it.
| Parameter | Type | Description |
|---|---|---|
id * | string |
explain
Why a fact is believed: who asserted it, when it was true and what ended or replaced it, and for a conclusion the exact words it rests on, each checked against its source now.
| Parameter | Type | Description |
|---|---|---|
id * | string |
mental_model
Read a standing question's pre-written answer (no model call): the answer, whether it is fresh or stale and why, and the exact words it rests on. Omit id to list every mental model.
| Parameter | Type | Description |
|---|---|---|
id | string |
define_mental_model
Define a standing question to keep answered (e.g. "What does the user care about when choosing tools?"), optionally limited to facts carrying some tags. The host's scheduled refresh writes the answer.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
tags | array |
invalidate
A fact stopped being true: close its validity (never delete), optionally naming what replaced it.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
reason | string | |
replacedBy | string |
pin
Pin a fact into the always-in-prompt tier. Only rules that belong in every conversation; it is a small, budgeted tier.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
label | string |
unpin
Unpin a fact (its validity closes; it is kept).
| Parameter | Type | Description |
|---|---|---|
id * | string |
pinned
The pinned tier, as a list and as the rendered prompt block.
export
Export the user's memory in the portable format, with provenance and validity. Only when the user asks for an export or backup. Without a path it is returned inline if under 50000 bytes; otherwise give an absolute path ending in .json that does not exist yet (never overwrites).
| Parameter | Type | Description |
|---|---|---|
path | string |