memories.sh logomemories.sh
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

ArgumentDescription
idMemory ID to edit (interactive picker if omitted in a TTY)

Options

OptionDescription
-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 edit

Edit a specific memory by ID:

memories edit abc123def456

Update 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 api

Convert a memory to a skill:

memories edit abc123def456 --type skill --category deploy

Behavior

  • 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, then vi)
  • Detects unchanged content and skips the update
  • The memory's updated_at timestamp is set on save

On this page