--- name: mnemon description: Persistent memory CLI for Hermes Agent. Store facts, recall past knowledge, link related memories, manage lifecycle. --- # mnemon Use `mnemon` when durable memory can materially improve continuity across Hermes sessions. Hooks may inject recalled context before an LLM call, but the agent decides what is worth storing. ## Workflow 1. Recall when prior decisions, preferences, or facts may affect the current task: `mnemon recall "" --limit 10` 2. Remember only stable, reusable knowledge: `mnemon remember "" --cat --imp <1-5> --entities "e1,e2" --source agent` 3. Link related memories after reviewing candidates from `remember`: `mnemon link --type --weight <0-1>` ## Recall Intent Keep focused queries and memories in their original language. When the user's meaning is clear, choose `--intent WHY` (reasons), `--intent WHEN` (timing), `--intent ENTITY` (what/who), or `--intent GENERAL` (neutral retrieval). For example: `mnemon recall "" --intent WHY`. The override works in any language; `--verbose` reports `meta.intent` and `meta.intent_source` (`auto` or `override`). Automatic cues cover some forms in English, Mandarin Chinese (simplified and traditional), Hindi (Devanagari), Spanish, Modern Standard Arabic, French, Bengali (Bengali script), Portuguese, Indonesian (Latin script), Russian (Cyrillic), and German. Unrecognized forms use GENERAL; conflicting cues involving additional languages also use GENERAL. English/Chinese-only scoring is preserved. This is a lexical heuristic, not full language understanding. See [the supported forms, script variants, and limits](https://github.com/mnemon-dev/mnemon/blob/master/docs/USAGE.md#recall-intent-detection). ## Commands ```bash mnemon remember "" --cat --imp <1-5> --entities "e1,e2" --source agent mnemon link --type --weight <0-1> [--meta ''] mnemon recall "" --limit 10 mnemon search "" --limit 10 mnemon import --dry-run mnemon import mnemon forget mnemon related --edge causal mnemon gc --threshold 0.4 mnemon gc --keep mnemon status mnemon log mnemon store list mnemon store create mnemon store set mnemon store remove ``` ## Guardrails - Do not store secrets, passwords, tokens, private keys, or short-lived operational noise. - Prefer concise insights over transcript dumps. - Categories: `preference` · `decision` · `insight` · `fact` · `context` - Edge types: `temporal` · `semantic` · `causal` · `entity` - Max 8,000 chars per insight.