Registry / devops / code-review-graph

code-review-graph

JSON →
library2.3.3pypypi✓ verified 84d ago

Persistent incremental knowledge graph for token-efficient, context-aware code reviews with Claude Code. Current version 2.3.3, requires Python >=3.10. Active development with frequent releases (~biweekly).

pip install code-review-graph
INSTALL
IMPORT
SIG · CODE-REVIEW-GRAPH
C
code-review-graph
devopspythonv2.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

attach_context_savings
✓ from code_review_graph import attach_context_savings
✗ from code_review_graph import CodeReviewGraph
context_savings
✓ from code_review_graph import context_savings
✗ from code_review_graph import CodeReviewGraph
estimate_context_savings
✓ from code_review_graph import estimate_context_savings
✗ from code_review_graph import CodeReviewGraph

Initialize code-review-graph, build the knowledge graph, and retrieve compact context for a file.

from code_review_graph import CodeReviewGraph import os graph = CodeReviewGraph(repo_root=os.environ.get('REPO_ROOT', '.')) graph.build() # Get minimal context for a file context = graph.get_context("path/to/file.py", detail='minimal') print(context)
Debug
Known issues
breakingfastmcp upgraded from 1.0 to >=2.14.0,<3 in v2.2.4 due to CVEs. This is a breaking dependency change; ensure your environment resolves the new constraint.
fix
pip install -U code-review-graph
affects: <2.2.4
gotchaOn Windows, 'build_or_update_graph_tool' and 'embed_graph_tool' MCP tools may hang indefinitely on Python <3.14. v2.3.1 fixed the event-loop policy but hang persists for some users.
fix
Upgrade to v2.3.1+ and ensure uvx/pip is reinstall.
affects: <2.3.1
deprecatedThe 'CRG_DATA_DIR' environment variable is now the canonical config directory; older 'CRG_CONFIG_DIR' may still work but is non-standard.
fix
Use CRG_DATA_DIR instead of CRG_CONFIG_DIR.
affects: >=2.3.0
gotchaThe 'serve --repo <X>' flag is ignored by 21 of 24 MCP tools in versions <2.2.3.1. Only get_docs_section_tool respects it.
fix
Upgrade to v2.2.3.1 or later.
affects: <2.2.3.1
breakingHook schema changed in v2.2.3. You must re-run 'code-review-graph install' to rewrite .claude/settings.json after upgrading.
fix
code-review-graph install
affects: >=2.2.3
Upgrade
Version history
2.3.3latest on PyPI · released May 8, 2026
Audit
Dependencies
fastmcprequiredMCP server framework (CVE-2025-62800, CVE-2025-62801, CVE-2025-66416 fixed in >=2.14.0,<3)
tree-sitterrequiredParsing for language support
Agent activity
26 hits · last 30 days
node
22
Bingbot
1
OpenAI (training)
1
Resources
code-review-graph — pip install code-review-graph · libregistry