1- # LLM-OPTIMIZED REFERENCE -- code-review-graph v2.1.0
1+ # LLM-OPTIMIZED REFERENCE -- code-review-graph v2.2.1
22
33Claude Code: Read ONLY the exact ` <section> ` you need. Never load the whole file.
44
@@ -7,15 +7,15 @@ Quick install: pip install code-review-graph
77Then: code-review-graph install && code-review-graph build
88First run: /code-review-graph: build-graph
99After that use only delta/pr commands.
10- For v2 features: detect_changes_tool for risk-scored reviews, list_flows_tool for execution paths, list_communities_tool for architecture.
10+ ALWAYS start with get_minimal_context_tool(task="your task") — returns ~ 100 tokens with risk, communities, flows, and suggested next tools.
11+ Use detail_level="minimal" on all subsequent calls unless you need more detail.
1112</section >
1213
1314<section name =" review-delta " >
14- Always call get_impact_radius on changed files first.
15- Then get_review_context (depth=2).
16- Or use detect_changes_tool for risk-scored, priority-ordered review guidance.
17- Generate review using ONLY changed nodes + 2-hop neighbors.
18- Target: <800 tokens total context.
15+ 1 . Call get_minimal_context_tool(task="review changes") first.
16+ 2 . If risk is low: detect_changes_tool(detail_level="minimal") → report summary.
17+ 3 . If risk is medium/high: detect_changes_tool(detail_level="standard") → expand on high-risk items.
18+ Target: ≤5 tool calls, ≤800 tokens total context.
1919</section >
2020
2121<section name =" review-pr " >
@@ -24,10 +24,11 @@ Never include full files unless explicitly asked.
2424</section >
2525
2626<section name =" commands " >
27- MCP tools (22 ): build_or_update_graph_tool, get_impact_radius_tool, query_graph_tool, get_review_context_tool, semantic_search_nodes_tool, embed_graph_tool, list_graph_stats_tool, get_docs_section_tool, find_large_functions_tool, list_flows_tool, get_flow_tool, get_affected_flows_tool, list_communities_tool, get_community_tool, get_architecture_overview_tool, detect_changes_tool, refactor_tool, apply_refactor_tool, generate_wiki_tool, get_wiki_page_tool, list_repos_tool, cross_repo_search_tool
27+ MCP tools (24 ): get_minimal_context_tool, build_or_update_graph_tool, run_postprocess_tool , get_impact_radius_tool, query_graph_tool, get_review_context_tool, semantic_search_nodes_tool, embed_graph_tool, list_graph_stats_tool, get_docs_section_tool, find_large_functions_tool, list_flows_tool, get_flow_tool, get_affected_flows_tool, list_communities_tool, get_community_tool, get_architecture_overview_tool, detect_changes_tool, refactor_tool, apply_refactor_tool, generate_wiki_tool, get_wiki_page_tool, list_repos_tool, cross_repo_search_tool
2828MCP prompts (5): review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check
2929Skills: build-graph, review-delta, review-pr
30- CLI: code-review-graph [ install|init|build|update|status|watch|visualize|serve|wiki|detect-changes|register|unregister|repos|eval]
30+ CLI: code-review-graph [ install|init|build|update|status|watch|visualize|serve|wiki|detect-changes|postprocess|register|unregister|repos|eval]
31+ Token efficiency: All tools support detail_level="minimal" for compact output. Always call get_minimal_context_tool first.
3132</section >
3233
3334<section name =" legal " >
@@ -48,7 +49,7 @@ Configure via CRG_EMBEDDING_MODEL env var or model parameter.
4849</section >
4950
5051<section name =" languages " >
51- Supported (18 ): Python, TypeScript/TSX, JavaScript, Vue, Go, Rust, Java, Scala, C#, Ruby, Kotlin, Swift, PHP, Solidity, C/C++, Dart, R, Perl
52+ Supported (19 ): Python, TypeScript/TSX, JavaScript, Vue, Go, Rust, Java, Scala, C#, Ruby, Kotlin, Swift, PHP, Solidity, C/C++, Dart, R, Perl, Lua
5253Parser: Tree-sitter via tree-sitter-language-pack
5354</section >
5455
0 commit comments