Turn any codebase into a deterministic, queryable Knowledge Graph inside CommandCode.
# 1. Install Graphify CLI
uv tool install graphifyy
# 2. Launch CommandCode with the mod
cmd --mod /path/to/cmd-mod-graphify/graphify.ts
# 3. Build the graph
/graphifyRuns 100% locally with AST extraction. No LLM API key required.
This mod integrates Graphify into CommandCode. It parses your source code with Tree-sitter, builds a graph of classes, functions, imports, and calls, then lets you query, visualize, and explore your architecture through slash commands and AI tools.
- 14 slash commands for building, querying, tracing, and visualizing the graph
- 10 AI tools so the model can explore your codebase autonomously
- Interactive D3 trees and Mermaid call-flow diagrams that open in your browser
- Auto-generated wiki organized by code communities
- God-nodes detection to find architectural hubs
.graphifyignorewith full pattern exclusion and!negation- System prompt enrichment that feeds graph context to the AI on every turn
Type in the chat prompt without slash commands:
@graph <question>— query the graph, AI synthesizes the answer@explain <symbol>— analyze a symbol's connections and role
One-time session:
cmd --mod /path/to/cmd-mod-graphify/graphify.tsPer-project (auto-loads):
mkdir -p .commandcode/mods/
cp /path/to/cmd-mod-graphify/graphify.ts .commandcode/mods/See docs/COMMANDS.md for the full slash command and AI tool reference, system requirements, and architecture details.
Bug reports and contributions are welcome. Follow the issue templates:
MIT License. Independent community mod, not officially affiliated with Graphify-Labs or Langbase, Inc.