Skip to content
Agent Memory
Command

/cortexdb-export-memory

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

From plugin
cortexdb
52913 skills13 commands1 MCP
> /plugin marketplace add liliang-cn/cortexdb
> /plugin install cortexdb@cortexdb

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`). Each file keeps how the memory is known (`grade`, `grade_why`) in its frontmatter. To share lessons without the guesses, add `--min-grade verified` with a directory of its own (e.g. `--export-memory ./verified --min-grade verified`): it writes only what was checked, and refuses the default directory, which `--sync-memory` reads back and would read the left-out memories as deleted. 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

@liliang-cn
Ships withcortexdb

Memory your coding agents share. Tell Claude Code something once, and Codex, your other machines and next week's session already know it.

5293 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
529
Star history of liliang-cn/cortexdb on GitHub, a chart by star-history.com

Other commands on cortexdb.

More commands from other plugins.

mempalace-audit

mempalace-audit

Command

Score how well organized your memory palace is, then run a guided repair session — one decision at a time.

@mempalace@mempalaceInstall Command
plan-to-beads

plan-to-beads

Command

Convert a Claude Code plan file into beads epic + tasks for cross-session tracking.

beads8d29k
@gastownhall@gastownhallInstall Command