cortexdb-export-memory
CommandExport all CortexDB memories to Markdown files (Claude Code memory-file layout)
Reconcile new text against the knowledge graph with an LLM — add, correct, and retract facts (no embedder needed)
> /plugin marketplace add liliang-cn/cortexdb> /plugin install cortexdb@cortexdb
description: Reconcile new text against the knowledge graph with an LLM — add, correct, and retract facts (no embedder needed)
Keep the knowledge graph **correct**, not just growing. Ingestion only ever adds, so stale and wrong facts accumulate. This shows an LLM the *relevant part of the existing graph* alongside new text and asks for the edits — **add / update / delete** — that make the graph reflect reality.
Needs only a chat model (`CORTEXDB_LLM_BASE_URL`, e.g. a local Ollama at `http://localhost:11434`, plus `CORTEXDB_LLM_MODEL`). **No embedding model required** — the existing entities relevant to the text are found by lexical mention.
bin=$(ls -t ~/.claude/plugins/data/cortexdb-cortexdb/bin/cortexdb-mcp-* 2>/dev/null | head -1)
[ -n "$bin" ] || bin="${CORTEXDB_MCP_BIN:-cortexdb-mcp}"
# 1. ALWAYS preview first — see the proposed edits without touching the graph
printf '%s' "$TEXT" | "$bin" --graph-update --dry-run --allow-delete
# 2. Apply once the user agrees (drop --allow-delete to apply only adds/updates)
printf '%s' "$TEXT" | "$bin" --graph-update --allow-delete`$TEXT` can be pasted text, or pass a file path instead of piping: `"$bin" --graph-update notes.md --dry-run`.
**Always dry-run first and show the user the proposed edits** (each prints `op kind target — reason`), especially deletions: `--allow-delete` is required for any delete to apply, deletes are capped per run, and they are not reversible. Without `--allow-delete`, deletes are proposed but skipped and the command says so.
$ARGUMENTS
Memory your coding agents share. Tell Claude Code something once, and Codex, your other machines and next week's session already know it.
Export all CortexDB memories to Markdown files (Claude Code memory-file layout)
Show CortexDB knowledge-graph facts valid at a point in time (as-of / bitemporal query)
Answer a whole-corpus question over the CortexDB brain using GraphRAG global search
Open the brain's knowledge graph — a live 3D view, or a static file to send
Turn a codebase (any language) into a CortexDB knowledge graph and open an interactive view
Import what Claude Code and Codex already remember into the CortexDB brain
You are the **Anti-Pattern Czar**, an expert at identifying and fixing error handling anti-patterns.
Score how well organized your memory palace is, then run a guided repair session — one decision at a time.
Score how well organized your memory palace is, then run a guided repair session — one decision at a time.
Convert a Claude Code plan file into beads epic + tasks for cross-session tracking.