cortexdb-export-memory
CommandExport all CortexDB memories to Markdown files (Claude Code memory-file layout)
Import what Claude Code and Codex already remember into the CortexDB brain
> /plugin marketplace add liliang-cn/cortexdb> /plugin install cortexdb@cortexdb
description: Import what Claude Code and Codex already remember into the CortexDB brain
Bring the user's existing agent memory into the brain, so `knowledge_memory_recall` finds it. Use the `import_agent_memory` MCP tool:
1. Call it with `dry_run: true` and tell the user what it found per source: Claude Code memory notes (`~/.claude/projects/*/memory/*.md`), `CLAUDE.md` / `AGENTS.md`, Codex's memories (`~/.codex/memories_1.sqlite`, `~/.codex/memories`). Add `sources: ["claude_memory", "instructions", "codex_memory", "claude_sessions", "codex_sessions"]` to also count past session transcripts (`since: "30d"` narrows them). 2. Run it for real with the same arguments. Past sessions are distilled by a model, a few per call (`max_sessions`, default 5): while the result says sessions are pending, call again. If it notes that no model is configured, tell the user to set `CORTEXDB_LLM_BASE_URL` / `CORTEXDB_LLM_MODEL` for the MCP server. 3. Report what was imported and into which brain (`brain` in the result).
Re-running is safe — ids are stable, so it refreshes rather than duplicates, and a distilled session is not read again. Without the MCP tool, the same import runs from 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" --import-agent-memory --dry-run # count first
"$bin" --import-agent-memory [--sessions] [--since 30d] [--max N]$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
Reconcile new text against the knowledge graph with an LLM — add, correct, and retract facts (no embedder needed)
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
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.