From cortex
Query and manage the Brainiac knowledge graph using subcommands like search, stats, add nodes, link relations, consolidate, render views, and quality checks.
How this command is triggered — by the user, by Claude, or both
Slash command
/cortex:brainiaccommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
# /brainiac — Query and Manage the Knowledge Graph 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. ## System Location - Engine: `~/.claude/knowledge/brainiac/` - Graph data: `~/.claude/knowledge/graph/` (nodes.json, edges.json, embeddings.npz) - Views: `~/.claude/knowledge/views/` (auto-generated markdown) ## Command Parse the user's message after `/brainiac` and run the appropriate command. **Important**: Only accept these known subcommands: `search`, `stats`,...
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)npx claudepluginhub peaky8linders/claude-cortex