CLI Reference
memories edit
Edit an existing memory.
memories edit [id] [options]Edit a memory's content, type, tags, path scope, or category. Opens your default editor for interactive editing, or accepts inline changes via options.
Arguments
| Argument | Description |
|---|---|
id | Memory ID to edit (interactive picker if omitted in a TTY) |
Options
| Option | Description |
|---|---|
-c, --content <content> | New content (skips editor) |
-t, --tags <tags> | New comma-separated tags |
--type <type> | New memory type: rule, decision, fact, note, skill |
--paths <globs> | New comma-separated glob patterns for path scoping |
--category <name> | New grouping key |
Examples
Edit interactively (opens picker, then editor):
memories editEdit a specific memory by ID:
memories edit abc123def456Update content inline:
memories edit abc123def456 --content "Updated rule text"Change type and tags:
memories edit abc123def456 --type decision --tags "architecture,database"Add path scoping to an existing rule:
memories edit abc123def456 --paths "src/api/**,src/routes/**" --category apiConvert a memory to a skill:
memories edit abc123def456 --type skill --category deployBehavior
- If no ID is provided and the terminal is interactive, an arrow-key selection picker is shown
- If no inline options are given, opens the memory in
$EDITOR(falls back to$VISUAL, thenvi) - Detects unchanged content and skips the update
- The memory's
updated_attimestamp is set on save