Skip to main content
Kairos’s memory store lives at ~/.claude/kairos/memory/. It is a single embedded database with both lexical and dense indexes co-located. Recall happens locally; no codebase content is sent to a third party. Kairos recalls automatically during normal work. These commands are for introspection, debugging, and one-off cleanups.

backant memory init

One-time installation of the embedding stack. Detects your hardware, picks an appropriate Qwen3-Embedding model tier, and pulls the Docker image plus the model.

Tier sizing

Re-running memory init lets you switch tiers later. If you switch tiers, run memory reindex afterwards — otherwise the stored vectors don’t match the new model’s dimensionality and recall will fail.

backant memory stats

A summary of the current memory store:
  • Total entries per tier (STM, LTM)
  • Weight histogram (how decayed the population is)
  • Top-cited entries
  • Edge counts (proposed / approved / rejected)
  • Dream-bucket size (pending consolidations)
Use this as a daily health check. A sudden spike in STM, edges piling up unapproved, or weights collapsing toward zero are all signals worth investigating.

backant memory recall

Manual recall against a text cue. Mostly for inspection.
Each hit shows a score (combining lexical, semantic, and lifecycle signals), tier, type, ID, and content preview. The agent uses the same recall surface via MCP.

backant memory inspect

Print one entry with its outgoing and incoming edges:
Useful for understanding why a particular fact is being recalled — you see the linked entries and their citation counts.

backant memory graph

Walk the edge graph from an entry, printed as a text tree.
Good for spotting tight clusters or orphan entries.

backant memory render

Read-only Markdown snapshot. Useful for grep, day-over-day diffing, or sharing with teammates.
The snapshot is read-only. Edits made to the Markdown file are not round-tripped into memory. The agent reads memory exclusively through its MCP interface.

backant memory reindex

Re-embed every entry from scratch.
Run this after switching embedding models via memory init, or if you suspect index corruption. Typical run time is a few minutes for a healthy store.

Memory tiers

Memory entries live in one of two tiers, with different lifecycle rules:
The two-tier design follows the complementary learning systems idea from cognitive science: a fast store for current state, a slow store for durable knowledge, with structured promotion between them. The exact decay rates and thresholds are tuned ongoing; see the architecture page for the high-level shape.

Memory locations

Memory is user-level — shared across all workspaces. If you want per-workspace isolation, set KAIROS_MEMORY_DB=/path/to/workspace.db before starting the daemon.