ReferenceCLI

CLI: capture and curation

These commands write or modify memory state. Use --dry-run where available, keep project slugs explicit in automation, and inspect proposals before approving replacement decisions.

CommandWritesPurpose
memory rememberYesCapture and curate completed work into memory.
memory captureYesStore structured raw task context from a file.
memory scanYesScan a repo for candidate durable memories.
memory curateYesConvert raw captures into canonical memories.
memory proposalsYesReview, approve, or reject memory replacement proposals.
memory archiveYesArchive low-signal memories by confidence and importance.
memory prune-historyYesPrune old versions and tombstoned canonicals.
memory checkpointYesSave, inspect, and verify execution checkpoints.

memory remember

Use this after meaningful completed work.

memory remember --project memory \
  --title "Expanded docs-site CLI reference" \
  --type documentation \
  --summary "Grouped the CLI docs into setup, service, query, capture, repository, and integration pages." \
  --note "Updated docs-site/content/docs/reference/cli and verified the Next.js docs build." \
  --file-changed docs-site/content/docs/reference/cli/index.mdx

Remember should store durable, human-readable text with evidence. It is not a substitute for committing code or writing user docs.

memory capture and memory curate

Capture stores raw context; curate turns raw captures into canonical memories.

memory capture task --file task-context.json
memory curate --project memory
memory curate --project memory --batch-size 10 --dry-run

Use this split when another tool produces structured capture payloads or when curation needs to be retried separately.

memory scan

Scan asks the repository what durable memories can be inferred from code, docs, and history.

memory scan --project memory --dry-run
memory scan --project memory --rebuild-index
memory scan --project memory --dry-run --json

Scan is useful for onboarding an existing repository, but it is not a replacement for human review. Prefer smaller scans when investigating a subsystem.

memory proposals

Proposals protect existing canonical memories from automatic replacement.

memory proposals list --project memory --json
memory proposals show --project memory --id <uuid>
memory proposals approve --project memory --id <uuid> --json
memory proposals reject  --project memory --id <uuid> --json

Approve only when the replacement is better supported and more current. Reject when the old memory remains correct or the proposal lacks enough evidence.

memory archive and memory prune-history

Archive hides low-signal memories without deleting their audit trail. Prune removes old versions and tombstones according to retention rules.

memory archive --project memory --dry-run
memory archive --project memory --max-confidence 0.2 --dry-run
memory prune-history --project memory --tombstone-after 90d --superseded-after 180d --dry-run

Run dry-runs first and keep backups before aggressive cleanup.

memory checkpoint

Checkpoint tracks plan execution and interruption recovery.

memory checkpoint start-execution --project memory --plan-file approved-plan.md
memory checkpoint show --project memory
memory checkpoint finish-execution --project memory
memory checkpoint finish-execution --project memory --plan-file approved-plan.md --json

Use it for plan-backed work so future agents can see what started, what remains, and whether the implementation was verified.

© 2026 Olivier Van Acker (3vilM33pl3). Memory Layer is AGPL-3.0-or-later with commercial licensing available.

On this page