Skip to content
Agent Memory
Command

/cortexdb-export-memory

Export all CortexDB memories to Markdown files (Claude Code memory-file layout)

BOOST
From plugin
cortexdb
44313 skills13 commands1 MCP
Install
> /plugin marketplace add liliang-cn/cortexdb
> /plugin install cortexdb@cortexdb

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cortexdb-export-memory

Context preview

What this command does when you run it.

Export all CortexDB memories to Markdown files (Claude Code memory-file layout)

Command definition

cortexdb-export-memory.md
description: Export all CortexDB memories to Markdown files (Claude Code memory-file layout)

Export every memory in the CortexDB brain to a directory of Markdown files — one file per memory with YAML frontmatter (`name` / `description` / `metadata`), plus a `MEMORY.md` index — mirroring Claude Code's file-based memory layout, so the brain is human-readable, diffable, and backup-friendly. Run this in a shell:

bin=$(ls -t ~/.claude/plugins/data/cortexdb-cortexdb/bin/cortexdb-mcp-* 2>/dev/null | head -1)
[ -n "$bin" ] || bin="${CORTEXDB_MCP_BIN:-cortexdb-mcp}"
"$bin" --export-memory        # writes to ~/.cortexdb/memory-export/ by default

Pass a directory as an argument to export somewhere else (e.g. `--export-memory ./memory`). Then tell the user how many memories were exported and where `MEMORY.md` was written. It reads the memory buckets only (not arbitrary chat history), skips expired memories, and is safe to re-run (it overwrites the export directory).

$ARGUMENTS

Ships withcortexdb

AI memory and a knowledge graph in one SQLite file. Pure Go, no service to run, works without an embedding model.

Get the whole plugin

Other commands on cortexdb.