Skip to content

Commit 39fe804

Browse files
tirth8205claude
andcommitted
chore: v2.2.1 — clean up gitignore, update docs
- Untrack marketing-diagram.excalidraw (already gitignored by pattern) - Untrack evaluate/results/ and evaluate/reports/ (generated output) - Update FEATURES.md, LLM-OPTIMIZED-REFERENCE.md, CHANGELOG.md for v2.2.1 - Bump version to 2.2.1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd43e82 commit 39fe804

37 files changed

Lines changed: 63 additions & 3209 deletions

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ diagrams/*.excalidraw
6262
diagrams/export_pngs.mjs
6363
*.excalidraw
6464

65-
# Evaluation test repos (third-party checkouts)
65+
# Evaluation (test repos + generated results/reports)
6666
evaluate/test_repos/
67+
evaluate/results/
68+
evaluate/reports/
6769

6870
# Draft/duplicate files
6971
docs/assets/marketing-diagram*

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# Changelog
22

3+
## [2.2.1] - 2026-04-07
4+
5+
### Added
6+
- **Parallel parsing**: `ProcessPoolExecutor` for 3-5x faster builds (`CRG_PARSE_WORKERS`, `CRG_SERIAL_PARSE`)
7+
- **Lazy post-processing**: `postprocess="full"|"minimal"|"none"` parameter, `run_postprocess` MCP tool + CLI command
8+
- **SQLite-native BFS**: Recursive CTE replaces NetworkX for impact analysis (`CRG_BFS_ENGINE`)
9+
- **Configurable limits**: `CRG_MAX_IMPACT_NODES`, `CRG_MAX_IMPACT_DEPTH`, `CRG_MAX_BFS_DEPTH`, `CRG_MAX_SEARCH_RESULTS`
10+
- **Multi-hop dependents**: N-hop `find_dependents()` with `CRG_DEPENDENT_HOPS` (default 2) and 500-file cap
11+
- **Token-efficient output**: `detail_level="minimal"` on 8 tools for 40-60% token reduction
12+
- **`get_minimal_context` tool**: Ultra-compact entry point (~100 tokens) with task-based tool routing
13+
- **Token-efficient prompts**: All 5 MCP prompts rewritten with minimal-first workflows
14+
- **Incremental flow/community updates**: `incremental_trace_flows()`, `incremental_detect_communities()`
15+
- **Visualization aggregation**: Community/file/auto modes with drill-down for large graphs (`--mode`)
16+
- **Token-efficiency benchmarks**: 5 workflow benchmarks in `eval/token_benchmark.py`
17+
- **DB schema v6**: Pre-computed `community_summaries`, `flow_snapshots`, `risk_index` tables
18+
- **Token Efficiency Rules** in all skill templates and CLAUDE.md
19+
20+
### Changed
21+
- CLI `build`/`update` support `--skip-flows`, `--skip-postprocess` flags
22+
- PostToolUse hook uses `--skip-flows` for faster incremental updates
23+
- VS Code extension schema version bumped to v6
24+
25+
### Fixed
26+
- mypy type errors in parallel parsing and context tool
27+
- Bandit false positive on prompt preamble string
28+
- Import sorting in graph.py, main.py, tools/__init__.py
29+
- Unused imports cleaned up in cli.py
30+
31+
### Housekeeping
32+
- Gitignore: untrack `marketing-diagram.excalidraw`, `evaluate/results/`, `evaluate/reports/`
33+
- Updated FEATURES.md, LLM-OPTIMIZED-REFERENCE.md, CHANGELOG.md for v2.2.1
34+
335
## [2.1.0] - 2026-04-03
436

537
### Added

docs/FEATURES.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# Features
22

3-
## v2.1.0 (Current)
3+
## v2.2.1 (Current)
4+
- **24 MCP tools** (up from 22): Added `get_minimal_context` and `run_postprocess`.
5+
- **Parallel parsing**: `ProcessPoolExecutor` for 3-5x faster builds on large repos.
6+
- **Lazy post-processing**: `postprocess="full"|"minimal"|"none"` to skip expensive steps.
7+
- **SQLite-native BFS**: Recursive CTE replaces NetworkX for impact analysis (faster on large graphs).
8+
- **Token-efficient output**: `detail_level="minimal"` on 8 tools for 40-60% token reduction.
9+
- **`get_minimal_context`**: Ultra-compact entry point (~100 tokens) with task-based tool routing.
10+
- **Incremental flow/community updates**: Only re-trace affected flows, skip community re-detection when unaffected.
11+
- **Visualization aggregation**: Community/file/auto modes with drill-down for 5k+ node graphs.
12+
- **Token-efficiency benchmarks**: 5 workflow benchmarks in eval framework.
13+
- **Pre-computed summary tables**: DB schema v6 with `community_summaries`, `flow_snapshots`, `risk_index`.
14+
- **Configurable limits**: `CRG_MAX_IMPACT_NODES`, `CRG_MAX_IMPACT_DEPTH`, `CRG_DEPENDENT_HOPS`, etc.
15+
- **Multi-hop dependents**: N-hop dependent discovery (default 2) with 500-file cap.
16+
- **615 tests** across 22 test files.
17+
18+
## v2.1.0
419
- **22 MCP tools** (up from 9): 13 new tools for flows, communities, architecture, refactoring, wiki, multi-repo, and risk-scored change detection.
520
- **5 MCP prompts**: `review_changes`, `architecture_map`, `debug_issue`, `onboard_developer`, `pre_merge_check` workflow templates.
621
- **18 languages** (up from 15): Added Dart, R, Perl support.

docs/LLM-OPTIMIZED-REFERENCE.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# LLM-OPTIMIZED REFERENCE -- code-review-graph v2.1.0
1+
# LLM-OPTIMIZED REFERENCE -- code-review-graph v2.2.1
22

33
Claude 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
77
Then: code-review-graph install && code-review-graph build
88
First run: /code-review-graph:build-graph
99
After 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
2828
MCP prompts (5): review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check
2929
Skills: 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
5253
Parser: Tree-sitter via tree-sitter-language-pack
5354
</section>
5455

evaluate/reports/summary.md

Lines changed: 0 additions & 88 deletions
This file was deleted.

evaluate/results/express_build_performance_2026-03-26.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

evaluate/results/express_flow_completeness_2026-03-26.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

evaluate/results/express_impact_accuracy_2026-03-26.csv

Lines changed: 0 additions & 3 deletions
This file was deleted.

evaluate/results/express_search_quality_2026-03-26.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

evaluate/results/express_token_efficiency_2026-03-26.csv

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)