Recall memories
memory_recallSearches persistent memory for facts saved by past sessions so agents can recall earlier decisions before starting similar tasks or when users refer to prior work.
Instructions
Search persistent memory for facts a past session saved. Call it BEFORE starting a task that resembles past work, and when the user refers to something decided earlier; use memory_save to add a fact, and memory_compact or memory_dream only to tidy the store — this tool never changes what a fact says. Reads every layer in order — the project store, any read-only grants in .bantamkit/config.yaml, then the machine-wide profile — and returns the top word matches, never fewer than the store default of 3 when that many match; a query that is exactly a fact's name returns that fact alone. Pass file instead of query to see the facts linked to a file. Why it is not read-only: every hit is appended to the usage ledger (~/.bantamkit/usage/.jsonl) as a recall event — the staleness order memory_compact archives by — and a project fact file still in the 0.35.x format is rewritten once into the current one; both are best-effort and never fail a recall. A fact file that cannot be read is named in the reply, never silently skipped. Pass outcome: error to see only recorded failures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Facts wanted, clamped to 1..5. Raised to the store default of 3 when smaller; never lowered below it. | |
| file | No | A tracked file, or the shortest unique suffix of one (store.ts, memory/store.ts). Returns the facts linked to it and when it was last touched; query is then ignored. | |
| query | No | Words a past-you would have used to describe the fact | |
| outcome | No | Keep only facts saved with this outcome — `error` answers "what failed before", `success` "what worked". Facts with no outcome are dropped from the answer; omit it for the normal search. | |
| include_archived | No | Also search facts compaction moved to archive/. Archived matches come after the live ones, tagged [archived]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |