Goal: Answer "what should I look at?" in 1 call, not 10.
ai-code-graph analyze YourSolution.sln
# Output: ./ai-code-graph/graph.dbFor faster analysis (skips clustering):
ai-code-graph analyze YourSolution.sln --stages coreai-code-graph status
# Shows: analyzed time, git commit, staleness warning# Find method by name
ai-code-graph context "ValidateUser"
# Use ID for follow-up calls (faster, unambiguous)
ai-code-graph context --id "MyApp.Services.UserService.ValidateUser(String)"Output gives you: complexity, callers, callees, duplicates, method ID.
ai-code-graph impact --id "<method-id>" --depth 3
ai-code-graph callgraph --id "<method-id>" --direction bothai-code-graph hotspots --top 10
ai-code-graph dead-code --top 10
ai-code-graph coupling --top 10All commands default to compact format (1 line per item). Use --format table for human-readable output or --format json for scripting.
| Command | Purpose |
|---|---|
context <method> |
Method summary before editing |
impact --id <id> |
Transitive callers (blast radius) |
callgraph --id <id> |
Direct callers/callees |
hotspots |
High-complexity methods |
dead-code |
Uncalled methods |
coupling |
Afferent/efferent coupling |
status |
DB staleness check |
See output-contract.md for format details.