graphify (formerly graphify-cli) is a high-performance terminal command-line tool written in Rust. It provides static AST analysis, topological querying, interactive graphical visualization, and RAG indexing.
The command-line interface exposes 6 subcommands:
Extracts structural AST definitions and dependencies from a codebase statically using tree-sitter, serializing the output into .toon or .json.
# Extract current directory using Rayon multi-threading to the default .toon format
graphify extract .
# Explicitly specify output path and JSON format
graphify extract . --output graphify-out/graph.json
# Limit thread concurrency for low-resource environments
graphify extract . --concurrency 4Queries structural nodes in the compiled graph using BFS (Breadth-First Search) traversal.
# Query a specific node using its identifier or label
graphify query "./graphify-llm/src/config.rs:struct:MemoryConfig" --depth 2Finds the shortest path between two symbols or nodes in the extracted graph.
# Find shortest path from source function/struct to target function/struct
graphify path "./graphify-llm/src/pipeline.rs:struct:AutoRotatePipeline" "./graphify-llm/src/config.rs:struct:LLMConfig"Installs the Graphify Skill directive and rules globally or locally for various AI assistants (including OpenCode, Cline, Cursor, and Roo Code).
# Interactive setup prompting for target assistants and directory level
graphify install-skill
# Install to global directory paths
graphify install-skill --globalLaunches the zero-dependency interactive terminal dashboard for full-screen structural visualization.
# Launch interactive TUI
graphify tuiControls:
Tabor1/2: Switch betweenExplorerandVisual Graphtabs.j/k/ Up/Down: Navigate node list./: Focus search bar.g: Launch default editor and jump to precise code line number.t/T: Trigger Breadth-First Search (BFS) trace path modal overlay.h/j/k/l/ Arrow Keys: Pan canvas viewport in Visual Graph.+/-: Zoom in/out on the canvas.r/R: Reset canvas camera (pan and zoom).- Left Mouse Click: Select/switch tabs, click node on canvas to jump-select.
- Left Mouse Drag: Grab and pan the 2D visual canvas topology.
- Mouse Scroll Wheel: Zoom in / zoom out of the canvas.
- Right Mouse Click: Click any node to select it and instantly pop open its BFS Trace Modal.
Esc/q: Dismiss modal, exit search, or quit TUI.
Indexes a codebase or previously compiled .toon/.json file directly into the local/homelab Qdrant vector store using Ollama embeddings.
# Parse codebase and index into Qdrant store
graphify index .
# Re-index an existing compiled graph file
graphify index graphify-out/graph.toon
# Delete existing Qdrant collection first to force-recreate
graphify index . --force-h, --help: Displays help information.-V, --version: Prints version.GRAPHIFY_CONFIG_PATH: Override default XDG config file path.
