Code Graph
14 items tagged with "code-graph"
Tutorials14
Build a Code Graph from Your Repository with Vibgrate Graph
Map your source code into a queryable graph artifact that powers vg show, vg ask, vg impact, and every other Vibgrate Graph query — incrementally and offline.
Explain Any Code Node with vg show
Use vg show to get the richest single-node view in Vibgrate Graph — what a function or module is, what it calls, and what calls it.
Ask Your Codebase Questions with vg ask
Use vg ask to query the code map in natural language and get a budget-bounded context block ready to paste into any AI assistant — fully offline after first use.
Run Impact Analysis Before a Change with vg impact
Use vg impact to compute the deterministic blast radius of changing a node and, with --tests, surface exactly the tests to run before shipping.
Find the Dependency Path Between Two Modules with vg path
Use vg path to reveal the shortest connection in the call graph between node A and node B, so you can understand how two parts of your codebase reach each other.
Explore the Call Tree with vg tree
Use vg tree to view the depth-bounded, cycle-safe call tree rooted at a node — callees by default, or callers with --callers.
Find Architectural Hubs with vg hubs
Use vg hubs to surface the most-depended-on nodes in your codebase — the high-leverage modules where changes ripple the furthest.
Detect Architectural Smells with vg oddities
Use vg oddities to surface surprising cross-area links in your code graph — the unexpected dependencies that signal architectural smells.
Discover Natural Code Groupings with vg areas
Use vg areas to reveal the natural communities in your codebase — clusters of tightly related modules that map to features and subsystems.
Export Your Code Graph with vg export
Use vg export to output your code map as JSON, GraphML, Graphviz DOT, Neo4j Cypher, Markdown, HTML, or an SBOM for downstream tools and visualization.
Make the Code Graph Committable for Your Team with vg share
Use vg share to install a pre-commit hook, deterministic merge driver, and .gitignore so your code graph stays committable and auto-updating across the team.
Check Code Graph Freshness with vg status
Use vg status to see graph freshness, node and edge counts, staleness, and resolver rungs — comparing the committed graph against your working tree.
Generate Deterministic Facts for AI with vg facts
Use vg facts to produce deterministic, epistemic-typed facts about a node — contract, invariant, and characterization — to ground AI assistants reliably.
Map Tests to Code with vg tests
Use vg tests to see which tests cover a node, find untested nodes nearby with --missing, and run the minimal test command with --run or --exec.