Guides
Task-oriented learning paths. Pick a path, then open the guide that matches the job.
Start Here & Agent Setup
Index a repo, install the agent pack, and learn structured queries.
CLI command reference
Lifecycle · Query · Analysis · …
Canonical CLI taxonomy matching rgctl --help.
Discovering and indexing
discover · merge · --scip · --with-git
Build the knowledge graph from source code.
Agent pack
install --skill
Single skill install; NL → CLI via references/workflows.md.
Structured graph queries
find / callers / relations / …
Agent-facing graph exploration verbs.
DI and frameworks
Injects · ExposesRoute · frameworks.bin
Cross-language DI wiring and HTTP route edges.
Watch mode and incremental update
update, watch, serve --watch
Keep the graph fresh without full rediscover.
Impact, PR Review & CI Gates
Measure change impact and gate merges with policy.
Deep Code Analysis
CFG, PDG, slicing, hybrid CPG, and clone detection.
Program slicing
slice
Lazy CFG/PDG slices — no upfront discover --with-cfg required.
Hybrid CPG
cpg
Combined call-graph + per-function CFG/PDG analysis.
Inspecting CFG, PDG, and dominance
inspect
Examine control flow, data dependence, and dominator trees.
Clone detection
clones --mode exact|bloom|fragment
Type 1–4 clones including SESE + 1-WL fragment mode.
Security & Supply-Chain Reachability
OSV triage, deps scanning, and call-path exploitability.
Architecture, Search & Migration
Communities, metrics, semantic search, migration, docs graph, export, serve.
Community detection
communities
Fast-Leiden clusters with μ+4σ hub stripping.
Graph metrics
metrics --pagerank · --churn
FastPageRank, betweenness, harmonic, and git churn hotspots.
Semantic search
semantic
Natural-language search over function symbols.
Migration planning
discover --export-migration-hints
Generate a dependency-aware migration roadmap.
Markdown context graph
discover -l markdown · export
Index docs, Obsidian/OKF export, fixture feature tour.
Exporting graphs
export
Serialize to JSON, GraphML, Graphviz, Mermaid, or Obsidian.
HTTP server and dashboard
serve
Run an HTTP API and browser-based dashboard.