/cortex:brainiacfrom cortex
Queries and manages a local knowledge graph of cross-project learnings. Supports semantic search, node/link management, consolidation, and quality scoring.
Ships in cortex. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
You interact with the Brainiac knowledge graph engine. The graph stores all cross-project learnings as interconnected nodes with semantic, temporal, causal, and entity edges.
~/.claude/knowledge/brainiac/~/.claude/knowledge/graph/ (nodes.json, edges.json, embeddings.npz)~/.claude/knowledge/views/ (auto-generated markdown)Parse the user's message after /brainiac and run the appropriate command.
Important: Only accept these known subcommands: search, stats, add, link, consolidate, render, quality. Reject any other input to prevent command injection.
cd ~/.claude/knowledge && python -m brainiac <subcommand> [args]
If no arguments provided, show this help:
search "QUERY" — Semantic search across all nodesstats — Graph overview (node counts, edge counts, quality)add <type> "content" — Add node (types: pattern, antipattern, workflow, hypothesis, solution, decision)link <id1> <id2> <relation> — Link nodes (relations: semantic, temporal, causal, entity)consolidate — Find merge/prune candidatesrender — Regenerate markdown viewsquality — Get quality score (0-100)7-day visitors to each command page
15 commands in this plugin
/auto-researchStructured experiment runner — define hypothesis, metric, and variations, then run automated eval loops with brainiac tracking/cortex-dashboardOpen the architecture graphOpen the Cortex knowledge graph dashboard in the browser/cortex-graphCortex GraphDump the full Cortex knowledge graph topology for inspection/cortex-recommendCortex RecommendGenerate actionable optimization recommendations from the knowledge graph/cortex-snapshotCortex SnapshotSave a timestamped snapshot of the current knowledge graph state/cortex-statusCortex StatusShow current Cortex knowledge graph health — quality score, node/edge counts, top connectionsGenerated from the plugin's indexed repository (peaky8linders/claude-cortex) — no native marketplace selected
npx claudepluginhub p/peaky8linders-cortexOther plugins' commands for the same job