mnemon
Workflow
- Remember:
mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent
- Diff is built in: duplicates are skipped, conflicts are auto-replaced.
- Output includes
action (added/updated/skipped), semantic_candidates, and causal_candidates.
- Link (evaluate candidates from step 1 using judgment):
- Review
causal_candidates: link only when the memories are genuinely causally related.
- Review
semantic_candidates: high similarity alone is not enough; skip unrelated keyword matches.
- Syntax:
mnemon link <id> <candidate> --type <causal|semantic> --weight <0-1> [--meta '<json>']
- Recall:
mnemon recall "<query>" --limit 10
Commands
mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent
mnemon link <id1> <id2> --type <type> --weight <0-1> [--meta '<json>']
mnemon recall "<query>" --limit 10
mnemon search "<query>" --limit 10
mnemon import --dry-run <file>
mnemon import <file>
mnemon forget <id>
mnemon related <id> --edge causal
mnemon gc --threshold 0.4
mnemon gc --keep <id>
mnemon status
mnemon log
mnemon store list
mnemon store create <name>
mnemon store set <name>
mnemon store remove <name>
Import Historical Chats
When the user asks to import old chats, notes, or exported context, create a
memory_draft.json with schema_version: "1", insights entries containing
content, category, importance, tags, entities, and optional
created_at, plus optional edges using source_index, target_index,
edge_type, weight, and reason. Run mnemon import --dry-run <file>,
then run mnemon import <file> only after validation passes. After import,
verify with mnemon status and a focused mnemon search or mnemon recall.
Check the output errors field because imports can partially succeed.
Guardrails
- Use memory only when it can materially improve continuity or task quality.
- Do not store secrets, passwords, tokens, private keys, or short-lived operational noise.
- Categories:
preference · decision · insight · fact · context
- Edge types:
temporal · semantic · causal · entity
- Max 8,000 chars per insight.
1---2name: mnemon3description: Persistent memory CLI for LLM agents. Store facts, recall past knowledge, link related memories, manage lifecycle.4---56# mnemon78## Workflow9101. **Remember**: `mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent`11 - Diff is built in: duplicates are skipped, conflicts are auto-replaced.12 - Output includes `action` (added/updated/skipped), `semantic_candidates`, and `causal_candidates`.132. **Link** (evaluate candidates from step 1 using judgment):14 - Review `causal_candidates`: link only when the memories are genuinely causally related.15 - Review `semantic_candidates`: high `similarity` alone is not enough; skip unrelated keyword matches.16 - Syntax: `mnemon link <id> <candidate> --type <causal|semantic> --weight <0-1> [--meta '<json>']`173. **Recall**: `mnemon recall "<query>" --limit 10`1819## Commands2021```bash22mnemon remember "<fact>" --cat <cat> --imp <1-5> --entities "e1,e2" --source agent23mnemon link <id1> <id2> --type <type> --weight <0-1> [--meta '<json>']24mnemon recall "<query>" --limit 1025mnemon search "<query>" --limit 1026mnemon import --dry-run <file>27mnemon import <file>28mnemon forget <id>29mnemon related <id> --edge causal30mnemon gc --threshold 0.431mnemon gc --keep <id>32mnemon status33mnemon log34mnemon store list35mnemon store create <name>36mnemon store set <name>37mnemon store remove <name>38```3940## Import Historical Chats4142When the user asks to import old chats, notes, or exported context, create a43`memory_draft.json` with `schema_version: "1"`, `insights` entries containing44`content`, `category`, `importance`, `tags`, `entities`, and optional45`created_at`, plus optional `edges` using `source_index`, `target_index`,46`edge_type`, `weight`, and `reason`. Run `mnemon import --dry-run <file>`,47then run `mnemon import <file>` only after validation passes. After import,48verify with `mnemon status` and a focused `mnemon search` or `mnemon recall`.49Check the output `errors` field because imports can partially succeed.5051## Guardrails5253- Use memory only when it can materially improve continuity or task quality.54- Do not store secrets, passwords, tokens, private keys, or short-lived operational noise.55- Categories: `preference` · `decision` · `insight` · `fact` · `context`56- Edge types: `temporal` · `semantic` · `causal` · `entity`57- Max 8,000 chars per insight.