Memory Router
Run node {baseDir}/memory-router.js. Memory files can contain private user context; don't share their contents without approval. Use the active workspace selected by the operator or identified by MEMORY.md. All configured paths must be workspace-relative and may not traverse links.
| Options | Effect |
|---|---|
--status |
Inspect memory and index status. |
--tier --dry-run |
Preview tiering without writing. |
--tier --confirm |
With user approval, write a pre-tier backup and archive before replacing MEMORY.md. May regenerate the manifest. |
--restore / --restore --force |
Preview the latest backup, or after explicit confirmation restore it and first save the current memory file. |
--compact [--query <text>] [--budget <tokens>] |
Write a workspace memory manifest. |
--audit |
Write a local duplicate and conflict report. |
--entity add|list|search, --wal init|get|update |
Maintain the entity index and session state. Changes persist across sessions. |
Backups are intended for local recovery. Manage retention explicitly; removing an archive or backup can make recovery impossible. Version 2.4.4 fixes backup construction, aborts on failed prerequisite writes, and validates paths before creating directories.
