{"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":[{"wrong":"from code_review_graph import CodeReviewGraph","symbol":"attach_context_savings","correct":"from code_review_graph import attach_context_savings"},{"wrong":"from code_review_graph import CodeReviewGraph","symbol":"context_savings","correct":"from code_review_graph import context_savings"},{"wrong":"from code_review_graph import CodeReviewGraph","symbol":"estimate_context_savings","correct":"from code_review_graph import estimate_context_savings"}],"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,"search_vec":"'2.3.3':22 '3.10':25 'activ':26 'awar':14 'biweek':31 'claud':18,39 'claude-cod':38 'code':1,15,19,33,40 'code-review':32 'context':13 'context-awar':12 'current':20 'develop':27 'effici':11 'frequent':29 'graph':3,7,37 'increment':5 'knowledg':6,36 'knowledge-graph':35 'mcp':41 'persist':4 'python':24 'releas':30 'requir':23 'review':2,16,34 'sitter':44 'token':10 'token-effici':9 'tree':43 'tree-sitt':42 'version':21","created_at":"2026-05-09T05:51:24.646546+00:00","updated_at":"2026-05-09T05:51:24.646546+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://code-review-graph.com","github":"https://github.com/tirth8205/code-review-graph","docs":"https://github.com/tirth8205/code-review-graph/blob/main/docs/INDEX.md","changelog":"https://github.com/tirth8205/code-review-graph/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/code-review-graph/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}