{"id":27658,"library":"code-review-graph","title":"Code Review Graph","description":"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).","status":"active","version":"2.3.3","language":"python","source_language":"en","source_url":"https://github.com/tirth8205/code-review-graph","tags":["code-review","knowledge-graph","claude-code","mcp","tree-sitter"],"install":[{"cmd":"pip install code-review-graph","lang":"bash","label":"pip"},{"cmd":"uvx --reinstall code-review-graph","lang":"bash","label":"uvx"}],"dependencies":[{"reason":"MCP server framework (CVE-2025-62800, CVE-2025-62801, CVE-2025-66416 fixed in >=2.14.0,<3)","package":"fastmcp","optional":false},{"reason":"Parsing for language support","package":"tree-sitter","optional":false}],"imports":[{"note":"Package uses underscores, not hyphens","wrong":"from code-review-graph import CodeReviewGraph","symbol":"CodeReviewGraph","correct":"from code_review_graph import CodeReviewGraph"}],"quickstart":{"code":"from code_review_graph import CodeReviewGraph\nimport os\n\ngraph = CodeReviewGraph(repo_root=os.environ.get('REPO_ROOT', '.'))\ngraph.build()\n# Get minimal context for a file\ncontext = graph.get_context(\"path/to/file.py\", detail='minimal')\nprint(context)","lang":"python","description":"Initialize code-review-graph, build the knowledge graph, and retrieve compact context for a file."},"warnings":[{"fix":"pip install -U code-review-graph","message":"fastmcp 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.","severity":"breaking","affected_versions":"<2.2.4"},{"fix":"Upgrade to v2.3.1+ and ensure uvx/pip is reinstall.","message":"On 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.","severity":"gotcha","affected_versions":"<2.3.1"},{"fix":"Use CRG_DATA_DIR instead of CRG_CONFIG_DIR.","message":"The 'CRG_DATA_DIR' environment variable is now the canonical config directory; older 'CRG_CONFIG_DIR' may still work but is non-standard.","severity":"deprecated","affected_versions":">=2.3.0"},{"fix":"Upgrade to v2.2.3.1 or later.","message":"The '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.","severity":"gotcha","affected_versions":"<2.2.3.1"},{"fix":"code-review-graph install","message":"Hook schema changed in v2.2.3. You must re-run 'code-review-graph install' to rewrite .claude/settings.json after upgrading.","severity":"breaking","affected_versions":">=2.2.3"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use 'from code_review_graph import CodeReviewGraph' (underscores).","cause":"Package installed as 'code-review-graph' (hyphen) but import uses underscores.","error":"ModuleNotFoundError: No module named 'code_review_graph'"},{"fix":"Upgrade to Python 3.14+ or run on Unix. Ensure uvx --reinstall code-review-graph.","cause":"Windows event-loop policy issue in Python <3.14, partially fixed in v2.3.1 but may still hang for some.","error":"Hang on build_or_update_graph_tool on Windows"},{"fix":"Pass explicit --repo /path/to/repo or set REPO_ROOT environment variable.","cause":"Repository root not provided and not detected automatically (no .git directory).","error":"ValueError: Cannot determine repo root"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}