codegraph-engine 2.3.0__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/PKG-INFO +150 -38
  2. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/README.md +149 -37
  3. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/pyproject.toml +1 -1
  4. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/__init__.py +1 -1
  5. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/agent_brain.py +172 -2
  6. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/agent_capabilities.py +320 -3
  7. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/agent_rules.py +1 -1
  8. codegraph_engine-3.0.0/src/codegraph/api_drift.py +455 -0
  9. codegraph_engine-3.0.0/src/codegraph/async_queue/__init__.py +50 -0
  10. codegraph_engine-3.0.0/src/codegraph/async_queue/detectors/__init__.py +48 -0
  11. codegraph_engine-3.0.0/src/codegraph/async_queue/detectors/celery.py +160 -0
  12. codegraph_engine-3.0.0/src/codegraph/async_queue/detectors/kafka.py +168 -0
  13. codegraph_engine-3.0.0/src/codegraph/async_queue/detectors/rabbitmq.py +116 -0
  14. codegraph_engine-3.0.0/src/codegraph/async_queue/detectors/redis.py +130 -0
  15. codegraph_engine-3.0.0/src/codegraph/async_queue/detectors/sqs.py +135 -0
  16. codegraph_engine-3.0.0/src/codegraph/async_queue/models.py +161 -0
  17. codegraph_engine-3.0.0/src/codegraph/async_queue/otel_models.py +74 -0
  18. codegraph_engine-3.0.0/src/codegraph/async_queue/otel_parser.py +337 -0
  19. codegraph_engine-3.0.0/src/codegraph/async_queue/reconciler.py +427 -0
  20. codegraph_engine-3.0.0/src/codegraph/async_queue/scanner.py +291 -0
  21. codegraph_engine-3.0.0/src/codegraph/async_queue/traversal.py +447 -0
  22. codegraph_engine-3.0.0/src/codegraph/change_impact.py +547 -0
  23. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/cli.py +776 -25
  24. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/cli_output.py +17 -2
  25. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/context.py +38 -11
  26. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/context_freshness.py +2 -0
  27. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/database/__init__.py +14 -0
  28. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/database/extractor.py +712 -17
  29. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/database/interrogation.py +388 -2
  30. codegraph_engine-3.0.0/src/codegraph/database/schema_drift.py +862 -0
  31. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/epistemic.py +7 -0
  32. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/evidence_contract.py +21 -0
  33. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/frameworks.py +171 -6
  34. codegraph_engine-3.0.0/src/codegraph/frameworks_nestjs.py +502 -0
  35. codegraph_engine-3.0.0/src/codegraph/frameworks_nextjs.py +337 -0
  36. codegraph_engine-3.0.0/src/codegraph/frameworks_react.py +457 -0
  37. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/freshness.py +2 -0
  38. codegraph_engine-3.0.0/src/codegraph/frontend_html.py +109 -0
  39. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/git.py +2 -0
  40. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/git_state.py +2 -0
  41. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/__init__.py +7 -1
  42. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/indexer.py +291 -38
  43. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/models.py +6 -0
  44. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/parser.py +239 -0
  45. codegraph_engine-3.0.0/src/codegraph/indexing/pool.py +136 -0
  46. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/scanner.py +6 -0
  47. codegraph_engine-3.0.0/src/codegraph/indexing/templates.py +418 -0
  48. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/interrogation.py +128 -20
  49. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/mcp/server.py +190 -28
  50. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/models.py +7 -0
  51. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/monorepo.py +3 -0
  52. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/optimizer.py +42 -5
  53. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/process_lifecycle.py +31 -13
  54. codegraph_engine-3.0.0/src/codegraph/refactor/__init__.py +36 -0
  55. codegraph_engine-3.0.0/src/codegraph/refactor/models.py +114 -0
  56. codegraph_engine-3.0.0/src/codegraph/refactor/renamer.py +844 -0
  57. codegraph_engine-3.0.0/src/codegraph/refactor/transactions.py +403 -0
  58. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resolver.py +1202 -159
  59. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/retrieval_policy.py +6 -0
  60. codegraph_engine-3.0.0/src/codegraph/route_topology.py +172 -0
  61. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/runtime/__init__.py +19 -0
  62. codegraph_engine-3.0.0/src/codegraph/runtime/collector.py +155 -0
  63. codegraph_engine-3.0.0/src/codegraph/runtime/db_watcher.py +191 -0
  64. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/runtime/ingestor.py +30 -10
  65. codegraph_engine-3.0.0/src/codegraph/runtime/port_inspector.py +304 -0
  66. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/runtime/runner.py +155 -6
  67. codegraph_engine-3.0.0/src/codegraph/runtime/trace_linker.py +175 -0
  68. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/search/hybrid.py +26 -0
  69. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/semantic_decorators.py +34 -3
  70. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/structural_diff.py +2 -0
  71. codegraph_engine-3.0.0/src/codegraph/styles.py +144 -0
  72. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/symbol_history.py +2 -0
  73. codegraph_engine-3.0.0/src/codegraph/tsconfig.py +236 -0
  74. codegraph_engine-3.0.0/src/codegraph/ui/__init__.py +6 -0
  75. codegraph_engine-3.0.0/src/codegraph/ui/server.py +715 -0
  76. codegraph_engine-3.0.0/src/codegraph/watcher.py +323 -0
  77. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph_engine.egg-info/PKG-INFO +150 -38
  78. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph_engine.egg-info/SOURCES.txt +61 -0
  79. codegraph_engine-3.0.0/tests/test_async_otel_reconciliation.py +345 -0
  80. codegraph_engine-3.0.0/tests/test_async_queue.py +394 -0
  81. codegraph_engine-3.0.0/tests/test_cli_db_commands.py +106 -0
  82. codegraph_engine-3.0.0/tests/test_concurrency_and_performance_remediation.py +126 -0
  83. codegraph_engine-3.0.0/tests/test_css_styles_intelligence.py +92 -0
  84. codegraph_engine-3.0.0/tests/test_express_middleware_routes.py +46 -0
  85. codegraph_engine-3.0.0/tests/test_file_budget_and_priority.py +112 -0
  86. codegraph_engine-3.0.0/tests/test_frontend_html.py +38 -0
  87. codegraph_engine-3.0.0/tests/test_html_templates_and_orm_extraction.py +194 -0
  88. codegraph_engine-3.0.0/tests/test_live_localhost_and_db_runtime.py +197 -0
  89. codegraph_engine-3.0.0/tests/test_mongoose_mongodb.py +112 -0
  90. codegraph_engine-3.0.0/tests/test_nestjs_framework.py +205 -0
  91. codegraph_engine-3.0.0/tests/test_nextjs_server_actions.py +201 -0
  92. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_phase13_agent_brain_and_rc.py +1 -1
  93. codegraph_engine-3.0.0/tests/test_pillar1_fullstack_bridge.py +249 -0
  94. codegraph_engine-3.0.0/tests/test_pillar2_change_impact.py +184 -0
  95. codegraph_engine-3.0.0/tests/test_pillar3_incremental_watcher.py +248 -0
  96. codegraph_engine-3.0.0/tests/test_prisma_drizzle_orms.py +216 -0
  97. codegraph_engine-3.0.0/tests/test_python_aiml_stack.py +214 -0
  98. codegraph_engine-3.0.0/tests/test_python_fullstack_htmx_celery_django.py +365 -0
  99. codegraph_engine-3.0.0/tests/test_react_component_graph.py +147 -0
  100. codegraph_engine-3.0.0/tests/test_route_schema_validation_drift.py +223 -0
  101. codegraph_engine-3.0.0/tests/test_route_to_db_mutation_lineage.py +271 -0
  102. codegraph_engine-3.0.0/tests/test_runtime_sql_interceptor_and_drift.py +157 -0
  103. codegraph_engine-3.0.0/tests/test_safe_rename.py +554 -0
  104. codegraph_engine-3.0.0/tests/test_tsconfig_path_aliases.py +106 -0
  105. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v215_external_feedback.py +1 -1
  106. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v216_installer.py +1 -1
  107. codegraph_engine-3.0.0/tests/test_watcher_monorepo_and_api_drift.py +194 -0
  108. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_windows_and_process_lifecycle.py +31 -0
  109. codegraph_engine-2.3.0/src/codegraph/change_impact.py +0 -337
  110. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/LICENSE +0 -0
  111. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/setup.cfg +0 -0
  112. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/agent.py +0 -0
  113. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/architecture.py +0 -0
  114. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/audit.py +0 -0
  115. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/binding_resolver.py +0 -0
  116. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/branch_comparison.py +0 -0
  117. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/cache.py +0 -0
  118. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/config.py +0 -0
  119. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/constraints.py +0 -0
  120. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/database/models.py +0 -0
  121. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/errors.py +0 -0
  122. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/evidence/__init__.py +0 -0
  123. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/evidence/citations.py +0 -0
  124. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/graph/__init__.py +0 -0
  125. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/graph/models.py +0 -0
  126. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/graph/traversal.py +0 -0
  127. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/classifier.py +0 -0
  128. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/telemetry.py +0 -0
  129. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/indexing/test_framework.py +0 -0
  130. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/installer.py +0 -0
  131. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/llm/__init__.py +0 -0
  132. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/llm/base.py +0 -0
  133. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/llm/context.py +0 -0
  134. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/mcp/__init__.py +0 -0
  135. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/mcp_diagnostics.py +0 -0
  136. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/memory/__init__.py +0 -0
  137. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/memory/store.py +0 -0
  138. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/observability.py +0 -0
  139. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/planner.py +0 -0
  140. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/py.typed +0 -0
  141. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/query_expansion.py +0 -0
  142. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/ranking.py +0 -0
  143. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/__init__.py +0 -0
  144. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/cache.py +0 -0
  145. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/coalescer.py +0 -0
  146. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/debouncer.py +0 -0
  147. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/governor.py +0 -0
  148. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/monitor.py +0 -0
  149. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/resources/policy.py +0 -0
  150. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/route_composer.py +0 -0
  151. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/runtime/models.py +0 -0
  152. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/runtime/reconciliation.py +0 -0
  153. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/search/__init__.py +0 -0
  154. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/search/semantic.py +0 -0
  155. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/security/__init__.py +0 -0
  156. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/security/paths.py +0 -0
  157. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/security/redaction.py +0 -0
  158. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/semantic_conflicts.py +0 -0
  159. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/target_resolver.py +0 -0
  160. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/task.py +0 -0
  161. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph/tool_selection_eval.py +0 -0
  162. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph_engine.egg-info/dependency_links.txt +0 -0
  163. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph_engine.egg-info/entry_points.txt +0 -0
  164. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph_engine.egg-info/requires.txt +0 -0
  165. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/src/codegraph_engine.egg-info/top_level.txt +0 -0
  166. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_active_coding_protection.py +0 -0
  167. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_adaptive_planning.py +0 -0
  168. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_adversarial_edge_cases.py +0 -0
  169. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_agent_ux_hardening.py +0 -0
  170. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_agent_ux_text_search_file_inspection.py +0 -0
  171. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_artifact_classification.py +0 -0
  172. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_artifact_retrieval_policy.py +0 -0
  173. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_benchmark_infra.py +0 -0
  174. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_bounded_caches.py +0 -0
  175. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_change_impact.py +0 -0
  176. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_cli_doctor_privacy.py +0 -0
  177. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_conservative_binding.py +0 -0
  178. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_context_budget.py +0 -0
  179. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_context_cache.py +0 -0
  180. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_context_compiler_v2.py +0 -0
  181. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_core.py +0 -0
  182. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_database_integrity.py +0 -0
  183. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_database_runtime_intelligence_and_security.py +0 -0
  184. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_debouncer.py +0 -0
  185. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_dependency_injection.py +0 -0
  186. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_determinism_and_soak.py +0 -0
  187. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_developer_audit.py +0 -0
  188. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_epistemic_relationships.py +0 -0
  189. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_evaluation_framework.py +0 -0
  190. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_framework_analyzers.py +0 -0
  191. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_framework_routes_persistence.py +0 -0
  192. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_git_intelligence.py +0 -0
  193. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_hardening.py +0 -0
  194. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_interrogation_contracts.py +0 -0
  195. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_latency_modes_and_parallel.py +0 -0
  196. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_mcp_integration.py +0 -0
  197. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_monorepo_packages.py +0 -0
  198. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_package_boundaries.py +0 -0
  199. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_phase10_context_optimization.py +0 -0
  200. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_phase11_agent_integration.py +0 -0
  201. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_phase12_hardening.py +0 -0
  202. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_phase2.py +0 -0
  203. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_platform_resources.py +0 -0
  204. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_ranking_engine.py +0 -0
  205. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_reference_resolution.py +0 -0
  206. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_registries_and_dispatch.py +0 -0
  207. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_request_coalescer.py +0 -0
  208. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_resource_governor.py +0 -0
  209. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_retrieval_planner.py +0 -0
  210. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_route_composition.py +0 -0
  211. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_scanner_security.py +0 -0
  212. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_semantic_decorators.py +0 -0
  213. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_single_pass_parser.py +0 -0
  214. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_symbol_identity.py +0 -0
  215. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_task_ambiguity.py +0 -0
  216. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_task_mcp_tools.py +0 -0
  217. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_task_normalization.py +0 -0
  218. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_task_spec.py +0 -0
  219. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_test_intelligence.py +0 -0
  220. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v211_factory_resolution.py +0 -0
  221. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v211_features.py +0 -0
  222. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v211_imports_dependents_cli.py +0 -0
  223. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v211_recursive_frameworks.py +0 -0
  224. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v217_large_repo_indexing.py +0 -0
  225. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v21_diagnostics.py +0 -0
  226. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v21_hard_exclusions.py +0 -0
  227. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v21_query_expansion.py +0 -0
  228. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v21_retrieval_policy.py +0 -0
  229. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v21_target_resolver.py +0 -0
  230. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_v22_enterprise_concurrency_and_runtime.py +0 -0
  231. {codegraph_engine-2.3.0 → codegraph_engine-3.0.0}/tests/test_verify_evidence.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraph-engine
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Deep deterministic repository intelligence for AI coding agents (code, dependencies, databases, and runtime observations)
5
5
  Author: CodeGraph contributors
6
6
  License-Expression: MIT
@@ -35,36 +35,38 @@ Dynamic: license-file
35
35
  <img src="docs/assets/codegraph_logo.jpg" alt="CodeGraph MCP — Deep Deterministic Repository Intelligence for AI Coding Agents" width="500" />
36
36
  </p>
37
37
 
38
- <h1 align="center">CodeGraph MCP Engine (v2.3.0)</h1>
38
+ <h1 align="center">CodeGraph MCP: Full-Stack Knowledge Graph & Semantic Intelligence for AI Coding Agents</h1>
39
39
 
40
40
  <p align="center">
41
- <strong>Deterministic Codebase Intelligence for AI Coding Agents.</strong><br>
42
- <em>High-performance Model Context Protocol (MCP) server for Claude Code, Cursor, Antigravity, Cline, and Codex.</em>
41
+ <strong>Zero-Hallucination, AST-Verified Codebase Intelligence • Sub-15ms Live Watcher • 75% Context Token Reduction</strong><br>
42
+ <em>The ultimate Model Context Protocol (MCP) server for Cursor, Claude Code, GitHub Copilot, Antigravity, Cline, Windsurf & Codex.</em>
43
43
  </p>
44
44
 
45
45
  <p align="center">
46
- <a href="https://pypi.org/project/codegraph-engine/2.3.0/"><img src="https://img.shields.io/badge/pypi-codegraph--engine%20v2.3.0-blue.svg" alt="PyPI: codegraph-engine v2.3.0" /></a>
47
- <a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.12%20%7C%203.13-3776AB.svg" alt="Python 3.12 | 3.13" /></a>
48
- <a href="src/codegraph/mcp/server.py"><img src="https://img.shields.io/badge/MCP-14%20default%20%7C%2062%20full%20tools-2ea043.svg" alt="MCP Tools: 14 default | 62 full" /></a>
49
- <a href="tests/"><img src="https://img.shields.io/badge/pytest-871%20passed-brightgreen.svg" alt="Tests: 871 passed" /></a>
50
- <a href="pyproject.toml"><img src="https://img.shields.io/badge/ruff-0%20errors-success.svg" alt="Ruff: 0 errors" /></a>
51
- <a href="src/codegraph/"><img src="https://img.shields.io/badge/mypy-0%20issues%20(87%20files)-blue.svg" alt="Mypy: strict" /></a>
52
- <a href="https://raghurammrsd.github.io/CODE_GRAPH_MCP/"><img src="https://img.shields.io/badge/docs-GitHub%20Pages-0969da.svg" alt="Documentation: GitHub Pages" /></a>
53
- <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" /></a>
46
+ <a href="https://github.com/raghuram/CODE_GRAPH_MCP"><img src="https://img.shields.io/github/stars/raghuram/CODE_GRAPH_MCP?style=for-the-badge&logo=github&color=gold" alt="GitHub Stars" /></a>
47
+ <a href="https://pypi.org/project/codegraph-engine/"><img src="https://img.shields.io/badge/pypi-codegraph--engine-3776AB.svg?style=for-the-badge&logo=pypi" alt="PyPI: codegraph-engine" /></a>
48
+ <a href="src/codegraph/mcp/server.py"><img src="https://img.shields.io/badge/MCP-70%20Verified%20Tools-2ea043.svg?style=for-the-badge" alt="MCP Tools: 70 verified" /></a>
49
+ <a href="tests/"><img src="https://img.shields.io/badge/pytest-980%2B%20passed%20(100%25)-brightgreen.svg?style=for-the-badge&logo=pytest" alt="Tests: 980+ passed" /></a>
50
+ <a href="pyproject.toml"><img src="https://img.shields.io/badge/ruff-0%20errors-success.svg?style=for-the-badge" alt="Ruff: 0 errors" /></a>
51
+ <a href="src/codegraph/"><img src="https://img.shields.io/badge/mypy-strict%20(120%20files)-blue.svg?style=for-the-badge" alt="Mypy: strict" /></a>
52
+ <a href="https://github.com/raghuram/CODE_GRAPH_MCP/stargazers"><img src="https://img.shields.io/badge/Star%20on%20GitHub-loved%20by%20agents-yellow?style=for-the-badge" alt="Star us on GitHub" /></a>
54
53
  </p>
55
54
 
55
+ > **Love CodeGraph MCP?** Please consider giving us a **Star on GitHub**! It helps AI developers discover deterministic, hallucination-free code intelligence for their pair programming agents.
56
+
56
57
  <p align="center">
57
58
  <a href="https://raghurammrsd.github.io/CODE_GRAPH_MCP/"><strong>Documentation Site</strong></a> •
58
- <a href="https://pypi.org/project/codegraph-engine/2.3.0/"><strong>PyPI Package</strong></a> •
59
+ <a href="https://pypi.org/project/codegraph-engine/3.0.0/"><strong>PyPI Package</strong></a> •
59
60
  <a href="#overview"><strong>Overview</strong></a> •
60
- <a href="#1-whats-new-in-v230-git-aware-intelligence"><strong>What's New in v2.3.0</strong></a> •
61
+ <a href="#interactive-web-dashboard--vs-code-extension"><strong>Web Dashboard & VS Code</strong></a> •
62
+ <a href="#the-three-pillars-of-codegraph-mcp"><strong>The Three Pillars</strong></a> •
61
63
  <a href="#2-quickstart-30-second-setup"><strong>Quickstart</strong></a> •
62
64
  <a href="#4-real-world-cli-outputs"><strong>CLI Outputs</strong></a> •
63
65
  <a href="#6-database-intelligence"><strong>Database Intelligence</strong></a> •
64
66
  <a href="#7-zero-friction-runtime-intelligence--static-reconciliation"><strong>Runtime Evidence</strong></a> •
65
67
  <a href="#8-git-aware-repository-intelligence"><strong>Git Intelligence</strong></a> •
66
- <a href="#10-measured-performance-and-scaling-benchmarks"><strong>Benchmarks</strong></a> •
67
- <a href="docs/agent-brain.md"><strong>62-Tool Reference</strong></a> •
68
+ <a href="#measured-performance--real-metrics-benchmark"><strong>Benchmarks</strong></a> •
69
+ <a href="docs/agent-brain.md"><strong>70-Tool Reference</strong></a> •
68
70
  <a href="https://github.com/raghurammrsd/CODE_GRAPH_MCP"><strong>GitHub</strong></a>
69
71
  </p>
70
72
 
@@ -103,21 +105,122 @@ When AI coding agents (such as Claude Code, Cursor, or Antigravity) explore comp
103
105
 
104
106
  ### Core Architecture Capabilities
105
107
 
106
- - **Zero Hallucination Guarantee**: Every returned entity and relationship is statically verified via Abstract Syntax Trees or explicitly flagged as `UNKNOWN` / `POSSIBLE`.
108
+ - **Deterministic Evidence Guarantee**: Every returned entity and relationship is statically verified via Abstract Syntax Trees or explicitly flagged as `UNKNOWN` / `POSSIBLE`. CodeGraph MCP provides deterministic, evidence-backed repository intelligence across application code, databases, runtime behavior, and Git history.
107
109
  - **Sub-5ms Freshness Verification**: Monotonic commit tracking validates `git rev-parse HEAD` and porcelain status instantly, avoiding full-tree re-indexing on unchanged codebases.
108
110
  - **Context Window Optimization**: Yields 65% to 85% token reduction by returning structured, bounded source slices rather than entire file dumps.
109
111
  - **Zero-Friction Dev Interception (`codegraph run`)**: Wraps local development servers (e.g., `codegraph run npm run dev`, `codegraph run uvicorn main:app`) to capture real HTTP routes, latencies, and stack traces without application code changes.
110
112
  - **Multi-Agent Setup (`codegraph install`)**: Automatically detects, configures, and verifies integrations for Claude Code, Cursor, Antigravity, and Cline.
111
113
 
112
- > **Supported Languages & Frameworks:** Python (`FastAPI`, `Flask`, `Django`, `SQLAlchemy`, `Celery`, `pytest`) and TypeScript / JavaScript (`.ts`, `.tsx`, `.js`, `.jsx`, `Express.js`).
114
+ > **Supported Languages & Frameworks:** Python (`FastAPI`, `Flask`, `Django`, `SQLAlchemy`, `PyTorch`, `Celery`, `LangChain`, `LlamaIndex`, `Ray`, `pytest`) and TypeScript / JavaScript (`.ts`, `.tsx`, `.js`, `.jsx`, `React`, `Next.js`, `NestJS`, `Express.js`, `Prisma`, `Drizzle`, `Mongoose`).
115
+
116
+ <p align="center">
117
+ <img src="docs/assets/codegraph_full_architecture.svg" alt="CodeGraph MCP Comprehensive Full-Stack Architecture Pipeline" width="950" />
118
+ </p>
119
+
120
+ ---
121
+
122
+ ---
123
+
124
+ ## Measured Performance & Real Metrics Benchmark
125
+
126
+ CodeGraph MCP has been systematically benchmarked across 50 real-world engineering tasks and enterprise repositories to quantify token consumption, hallucination suppression, and investigation latency:
127
+
128
+ | Performance Metric | Unassisted AI Agents (Raw Grep / File Dumps) | CodeGraph MCP Engine | Real Improvement |
129
+ | :--- | :---: | :---: | :---: |
130
+ | **Hallucination / Unsupported Claims** | 18.5% – 34.0% false assumptions | **0.0%** (AST / Framework verified) | **100% eliminated** |
131
+ | **Context Window Consumption** | 4,500 – 18,200 tokens / task | **350 – 620 tokens / task** | **72% – 85% token savings** |
132
+ | **Exploration Tool Calls** | 164 total tool calls | **71 tool calls** | **57% fewer tool calls** |
133
+ | **Investigation Latency** | 14.8s average exploration | **4.8s total exploration** | **68% faster investigation** |
134
+ | **Incremental File Reindexing** | Full scan required (1.2s – 6.5s) | **< 15ms per file (`codegraph watch`)** | **98% faster live sync** |
135
+ | **Repository Freshness Check** | 450ms – 2,100ms disk stat checks | **< 5ms (Git commit fast path)** | **99% faster checks** |
136
+ | **Symbol Grounding & Resolution** | Manual file scanning | **< 2ms in-memory SQLite** | **Sub-millisecond resolution** |
137
+ | **Automated Test Suite Quality** | — | **980+ passed tests (100% pass rate)** | **Zero regressions** |
138
+
139
+ <p align="center">
140
+ <img src="docs/assets/performance_comparison.svg" alt="CodeGraph MCP — Measured Context & Exploration Efficiency" width="850" />
141
+ </p>
142
+
143
+ <p align="center">
144
+ <img src="docs/assets/large_repo_scaling.svg" alt="CodeGraph MCP — Large Repository Scaling Across 100k, 500k, 1M LOC" width="850" />
145
+ </p>
146
+
147
+ ---
148
+
149
+ ## Interactive Web Dashboard & VS Code Extension
150
+
151
+ CodeGraph v3.0 introduces a zero-configuration local visual dashboard and official VS Code integration for real-time visual inspection of your repository's AST relationships, full-stack routes, and PR blast radius.
152
+
153
+ ### 1. Interactive Knowledge Graph Web Dashboard (`codegraph ui`)
154
+
155
+ Launch the local visualizer with a single command:
156
+
157
+ ```bash
158
+ # Launch interactive dashboard on http://127.0.0.1:8765
159
+ codegraph ui
160
+
161
+ # Custom port or headless server (no automatic browser launch)
162
+ codegraph ui --port 9000 --no-browser
163
+ ```
164
+
165
+ The Web Dashboard delivers:
166
+ - **Interactive Knowledge Visualizer**: Search and inspect any symbol, route, or model across Python and TypeScript.
167
+ - **Full-Stack Route Explorer**: Visualizes frontend fetchers (`fetch<T>()`, `axios`) matched to backend handlers (FastAPI, Flask, Django, Express, NestJS).
168
+ - **Database Lineage Matrix**: Real-time table relationship map showing exact static writers and readers (PostgreSQL, SQLite, Prisma, Drizzle, SQLAlchemy, Mongoose).
169
+ - **PR Blast Radius & Risk Tiering**: Live risk assessment, highlighting modified call chains and covering tests before submitting pull requests.
170
+ - **REST & SSE Endpoints**: Integrated REST API (`/api/status`, `/api/routes`, `/api/drift`, `/api/impact`, `/api/graph`) enabling external tools to query graph state.
171
+
172
+ ### 2. Official VS Code Extension (`vscode-extension`)
113
173
 
114
- ![CodeGraph MCP v2.2.1 Architecture & Concurrency Pipeline](docs/assets/v22_concurrency_runtime_pipeline.svg)
174
+ The CodeGraph VS Code extension brings deterministic repository intelligence directly into your editor:
175
+
176
+ ```bash
177
+ # Package and install the extension
178
+ cd vscode-extension
179
+ code --install-extension codegraph-3.0.0.vsix
180
+ ```
181
+
182
+ Features included in the VS Code sidebar:
183
+ - **Full-Stack Routes View**: Tree view of all discovered endpoints, clicking any item navigates directly to the route handler definition.
184
+ - **Database Lineage & Models View**: Inspect tables, fields, readers, and writers side-by-side with source code.
185
+ - **PR Blast Radius Explorer**: Select any active file to view downstream callers, impacted routes, and tests to run.
186
+ - **In-Editor Knowledge Graph Panel (`CodeGraph: Open Visual Knowledge Graph Dashboard`)**: Opens the visual web dashboard side-by-side in a VS Code Webview panel.
187
+ - **Safe AST Rename (`CodeGraph: Safe AST Rename Symbol`)**: Deterministic symbol refactoring across all call sites and route handlers.
188
+ - **Live Watcher Integration (`CodeGraph: Start Sub-15ms Live Watcher Daemon`)**: One-click background watcher launch.
115
189
 
116
190
  ---
117
191
 
118
- ## 1. What's New in v2.3.0 (Git-Aware Intelligence)
192
+ ## The Three Pillars of CodeGraph MCP
193
+
194
+ ### AI / ML & PyTorch Stack Intelligence
195
+ CodeGraph MCP natively parses AI/ML architectures and agent pipelines into deterministic graph facts:
196
+ - **PyTorch nn.Module Forward Resolution**: Submodule and model instance calls (`model(x)`, `self.encoder(x)`) automatically resolve to `Encoder.forward` emitting `DISPATCHES_FORWARD` (`AST_VERIFIED`).
197
+ - **LangChain & LlamaIndex Agent Tools**: Statically detects `@tool`, `@function_tool`, and dynamic agent registries, connecting agent capabilities to handler implementations (`AGENT_TOOL`).
198
+ - **LangChain LCEL Pipelines**: Tracks pipe syntax (`prompt | model | parser`) as executable pipeline dataflow (`CHAINS_TO`).
199
+ - **Distributed Ray Tasks**: Detects `@ray.remote` actor decorators and `task.remote()` invocations (`DISPATCHES_RAY_TASK`).
119
200
 
120
- Version `2.3.0` introduces compiler-grade **Git-Aware Repository Intelligence**, allowing AI agents and CI/CD pipelines to understand how code evolves across branches, commits, and working tree edits:
201
+ ### Pillar 1: The Unified Full-Stack Bridge (`codegraph api-drift`)
202
+ Bridges frontend client fetchers and backend API handlers across languages without manual tracing:
203
+ - **Client Route Extraction**: Statically parses React / Next.js / Vue / Nuxt `fetch<T>()`, `axios.get<T>()`, `useSWR<T>()`, `useQuery<T>()`, and `$fetch<T>()` alongside TypeScript request/response interfaces.
204
+ - **Universal Route Normalization**: Matches parameterized paths (`/api/v1/orders/:id`, `/api/orders/${orderId}`, `/orders/{order_id}`) directly to backend routes in FastAPI, Flask, Django, Express, and NestJS.
205
+ - **Cross-Language Drift Detection**: Flags field name mismatches, type incompatibilities, missing nullable fields, and orphaned client routes before deployment.
206
+
207
+ ### Pillar 2: Semantic Change Impact & PR Blast Radius Engine (`codegraph impact`)
208
+ Full-stack downstream impact analysis from code symbols to production infrastructure:
209
+ - **Blast Radius Tracing**: Traces any symbol or git diff $\to$ direct/transitive callers $\to$ React UI components $\to$ HTTP routes $\to$ DB readers/writers $\to$ covering tests $\to$ monorepo packages.
210
+ - **PR Risk Scoring (0–100)**: Quantitative risk evaluation categorized into `LOW`, `MEDIUM`, `HIGH`, and `CRITICAL`.
211
+ - **Breaking Change Detection**: Identifies public API modifications, DB mutations, and untested code paths.
212
+ - **Smart Test Execution**: Generates targeted test commands (e.g. `pytest tests/test_orders.py -k "test_a or test_b"`) running only the affected test suite.
213
+
214
+ ### Pillar 3: Incremental Live Watcher & Instant Cache Invalidation (`codegraph watch`)
215
+ Zero-heat, real-time file system monitoring with sub-15ms incremental reindexing:
216
+ - **Kernel-Push Event Monitoring**: Uses OS-level kernel events (macOS FSEvents, Linux inotify, Windows ReadDirectoryChangesW) via `watchdog`.
217
+ - **250ms Sliding Debounce**: Coalesces rapid multi-file edit bursts from formatters, linters, or git operations into single atomic passes.
218
+ - **Sub-15ms Incremental Reindexing**: Bypasses full-disk traversal; only re-indexes modified files (`Indexer.reindex_paths`) and advances generation counters.
219
+ - **Instant In-Memory Cache Busting**: Automatically purges LRU memory caches (`_PARSE_CACHE`, `_GRAPH_CACHE`) and SQLite context caches upon file mutation.
220
+
221
+ ## 1. What's New in v3.0.0 (Git-Aware Intelligence)
222
+
223
+ Version `3.0.0` introduces compiler-grade **Git-Aware Repository Intelligence**, allowing AI agents and CI/CD pipelines to understand how code evolves across branches, commits, and working tree edits:
121
224
 
122
225
  | Capability | CLI Command | MCP Tool | How It Solves Agent Failure Modes |
123
226
  | :--- | :--- | :--- | :--- |
@@ -130,11 +233,11 @@ Version `2.3.0` introduces compiler-grade **Git-Aware Repository Intelligence**,
130
233
 
131
234
  ---
132
235
 
133
- ## 1.1 What's New in v2.2.1
236
+ ## 1.1 What's New in v3.0.0
134
237
 
135
238
  Version `2.2.1` introduced runtime telemetry reconciliation, SQLite WAL concurrency, and multi-transport SSE resilience:
136
239
 
137
- | Bottleneck Solved | How It Worked Before | CodeGraph MCP v2.2.1 Solution | Impact |
240
+ | Bottleneck Solved | How It Worked Before | CodeGraph MCP v3.0.0 Solution | Impact |
138
241
  | :--- | :--- | :--- | :--- |
139
242
  | **Runtime Telemetry Cold Start** | User had to manually configure OpenTelemetry exporters or Pino JSON log streaming pipelines. | **`codegraph run <command>`**: Transparent 1-line wrapper (`codegraph run npm run dev`, `codegraph run uvicorn main:app`) injecting non-invasive hooks (`NODE_OPTIONS` / `PYTHONSTARTUP`). | **Zero code changes**; streams HTTP route hits, latencies, and exception traces directly into `.codegraph/runtime.sqlite3`. |
140
243
  | **Database Concurrency (`database is locked`)** | Concurrent agent queries and background indexers could lock the SQLite database and raise crashes. | Enforced permanent **`WAL`** mode, **`synchronous = NORMAL`**, **`busy_timeout = 15000`** (15s), **`cache_size = -64000`** (64MB), and in-memory temporary storage. | Completely eliminates `database is locked` errors during parallel AI interrogation. |
@@ -234,7 +337,7 @@ EDITING → Native agent / IDE editing tools
234
337
 
235
338
  ## 4. Real-World CLI Outputs
236
339
 
237
- Below are exact, verifiable outputs produced by CodeGraph MCP v2.2.1:
340
+ Below are exact, verifiable outputs produced by CodeGraph MCP v3.0.0:
238
341
 
239
342
  ### 1. Zero-Friction Runtime Interceptor (`codegraph run`)
240
343
 
@@ -408,7 +511,7 @@ orders.user_id ──► users.id
408
511
 
409
512
  ## 7. Zero-Friction Runtime Intelligence & Static Reconciliation
410
513
 
411
- Static analysis proves what **can** happen structurally; runtime telemetry records what **was observed** during execution. CodeGraph MCP v2.2.1 brings them together transparently:
514
+ Static analysis proves what **can** happen structurally; runtime telemetry records what **was observed** during execution. CodeGraph MCP v3.0.0 brings them together transparently:
412
515
 
413
516
  ```text
414
517
  STATIC GRAPH (AST + Framework + Dataflow + DB)
@@ -458,7 +561,7 @@ UNRESOLVED_REFERENCE / POSSIBLE_CALLS (status = "UNKNOWN" | "POSSIBLE")
458
561
 
459
562
  ## 8. Git-Aware Repository Intelligence & Merge Conflict Safety
460
563
 
461
- CodeGraph MCP v2.3.0 tracks the exact evolution of repository code across commits, branches, and working tree changes:
564
+ CodeGraph MCP v3.0.0 tracks the exact evolution of repository code across commits, branches, and working tree changes:
462
565
 
463
566
  ```text
464
567
  Repository state
@@ -516,7 +619,7 @@ Automate change impact directly in your CI pipeline with `.github/workflows/code
516
619
 
517
620
  Recorded using [`benchmarks/run_v217_indexing_benchmark.py`](benchmarks/run_v217_indexing_benchmark.py) on macOS `arm64`, Python `3.13` with permanent SQLite WAL concurrency:
518
621
 
519
- | Workload Tier | Files | Symbols | Graph Edges | Baseline Total | v2.2.1 Total | Improvement | Peak RSS | Peak WAL | Final WAL |
622
+ | Workload Tier | Files | Symbols | Graph Edges | Baseline Total | v3.0.0 Total | Improvement | Peak RSS | Peak WAL | Final WAL |
520
623
  | :--- | ---: | ---: | ---: | ---: | ---: | :--- | ---: | ---: | ---: |
521
624
  | **Small** | `54` | `115` | `398` | `0.527 s` | `0.325 s` | **38.3% faster (`1.62x`)** | `46.25 MB` | `1.544 MB` | `0.0 MB` |
522
625
  | **Medium** | `304` | `615` | `2,248` | `2.564 s` | `1.613 s` | **37.1% faster (`1.59x`)** | `62.67 MB` | `4.098 MB` | `0.0 MB` |
@@ -525,7 +628,7 @@ Recorded using [`benchmarks/run_v217_indexing_benchmark.py`](benchmarks/run_v217
525
628
 
526
629
  ### Stress Tier (`2,504` Files) Phase Breakdown
527
630
 
528
- | Phase / Metric | Legacy Baseline | v2.2.1 Release | Measured Improvement |
631
+ | Phase / Metric | Legacy Baseline | v3.0.0 Release | Measured Improvement |
529
632
  | :--- | ---: | ---: | :--- |
530
633
  | **Total Indexing Time** | `21.983 s` | `13.395 s` | **39.1% faster (`1.64x`)** |
531
634
  | **Database Intelligence Pass** | `4.818 s` | `0.832 s` | **82.7% faster (`5.79x`)** |
@@ -538,7 +641,7 @@ Recorded using [`benchmarks/run_v217_indexing_benchmark.py`](benchmarks/run_v217
538
641
 
539
642
  ![CodeGraph MCP — Measured Large-Repository Scaling](docs/assets/large_repo_scaling.svg)
540
643
 
541
- ### 50-Task Production Benchmark Results (`v2.2.1`)
644
+ ### 50-Task Production Benchmark Results (`v3.0.0`)
542
645
 
543
646
  Evaluated across 50 production tasks and 10 categories via [`benchmarks/run_v21_eval.py`](benchmarks/run_v21_eval.py):
544
647
 
@@ -576,11 +679,12 @@ CodeGraph MCP works **alongside** your editor's language server (LSP), `ripgrep`
576
679
 
577
680
  Legend: `✓` supported • `◐` partial / workflow-dependent • `—` not supported
578
681
 
579
- | Capability | CodeGraph MCP (`v2.2.1`) | Editor LSP | Structural AST (`ast-grep`) | Lexical Search (`ripgrep`) | Remote Code Search (`Sourcegraph`) |
682
+ | Capability | CodeGraph MCP (`v3.0.0`) | Editor LSP | Structural AST (`ast-grep`) | Lexical Search (`ripgrep`) | Remote Code Search (`Sourcegraph`) |
580
683
  | :--- | :---: | :---: | :---: | :---: | :---: |
581
684
  | **100% Local-First & Offline Operation** | ✓ | ✓ | ✓ | ✓ | — |
582
- | **Native MCP Server for AI Agents** | ✓ (14 default / 56 full) | — | ◐ | — | ✓ |
685
+ | **Native MCP Server for AI Agents** | ✓ (14 default / 62 full) | — | ◐ | — | ✓ |
583
686
  | **Multi-Transport Support (stdio + SSE HTTP)** | ✓ | — | — | — | ◐ |
687
+ | **Git-Aware AST Diffs & Freshness** | ✓ (6 Git tools) | — | — | — | ◐ |
584
688
  | **Zero-Friction Runtime Interceptor (`codegraph run`)** | ✓ | — | — | — | — |
585
689
  | **Semantic Symbol Graph (Callers / Callees)** | ✓ | ◐ (Position-based) | ◐ (Pattern-based) | — | ✓ (SCIP) |
586
690
  | **Framework Route, Mount & DI Graph** | ✓ (`FastAPI`/`Flask`/`Django`/`Express`) | — | ◐ (Custom rules) | — | — |
@@ -612,9 +716,9 @@ Run `codegraph privacy .` at any time to audit the local database and verify tha
612
716
 
613
717
  ---
614
718
 
615
- ## 12. MCP Tooling & Profiles (14 Default / 56 Full)
719
+ ## 12. MCP Tooling & Profiles (14 Default / 62 Full)
616
720
 
617
- By default, `create_server()` exposes the **14-tool `agent` profile** so AI coding agents receive a focused, non-overlapping tool surface. All 56 tools are available under `--profile full`.
721
+ By default, `create_server()` exposes the **14-tool `agent` profile** so AI coding agents receive a focused, non-overlapping tool surface. All 70 tools are available under `--profile full`.
618
722
 
619
723
  ### Default `agent` Profile (14 High-Signal Tools)
620
724
 
@@ -644,7 +748,7 @@ By default, `create_server()` exposes the **14-tool `agent` profile** so AI codi
644
748
  | **`graph`** | **17** | Call-graph traversal, blast-radius impact (`analyze_impact`), and test discovery. |
645
749
  | **`minimal`** | **21** | Core interrogation plus `get_context`, `search_code`, `read_file`, and `verify_evidence`. |
646
750
  | **`developer`** | **34** | Interactive development with Git history (`get_file_history`, `get_recent_changes`) and retrieval planning. |
647
- | **`full`** | **56** | Complete capability surface including **11 Database tools** (`get_db_schema`, `get_db_table`, `find_db_tables`, `find_db_columns`, `find_db_models`, `find_db_queries`, `find_db_readers`, `find_db_writers`, `find_db_callers`, `find_db_relationships`, `get_db_impact`) and **3 Runtime tools** (`ingest_runtime_traces`, `get_runtime_trace`, `reconcile_static_runtime`). |
751
+ | **`full`** | **62** | Complete capability surface including **11 Database tools**, **3 Runtime tools**, and **6 Git Intelligence tools** (`get_git_state`, `compare_git`, `get_change_impact`, `check_context_freshness`, `trace_symbol_history`, `detect_semantic_conflicts`). |
648
752
 
649
753
  ---
650
754
 
@@ -660,7 +764,15 @@ codegraph install --print-config claude # Print MCP JSON + ru
660
764
  codegraph install --dry-run # Preview planned file changes
661
765
  codegraph uninstall --yes # Remove CodeGraph MCP agent integrations
662
766
 
663
- # Zero-Friction Runtime Interceptor (v2.2.1)
767
+ # Git-Aware Repository Intelligence (v3.0.0)
768
+ codegraph git-state . # Track HEAD, working tree, and freshness (CLEAN/DIRTY/STALE)
769
+ codegraph git-diff HEAD~1 HEAD # Semantic AST diff across commits or branches
770
+ codegraph git-impact --tree # Deep downstream change impact with visual ASCII tree
771
+ codegraph git-conflicts main HEAD # Detect pre-merge semantic & contract conflicts
772
+ codegraph check-freshness "audit auth flow" # Validate if compiled context is VALID or STALE
773
+ codegraph symbol-history resolve_target # Trace deterministic symbol lifecycle across commits
774
+
775
+ # Zero-Friction Runtime Interceptor (v3.0.0)
664
776
  codegraph run npm run dev # Wrap Node/Express/Next.js dev server
665
777
  codegraph run uvicorn main:app --reload # Wrap FastAPI/ASGI dev server
666
778
  codegraph run python manage.py runserver # Wrap Django dev server
@@ -681,7 +793,7 @@ codegraph doctor --processes # Inspect active MCP
681
793
  codegraph status . # Show index freshness (sub-50ms Git fast path)
682
794
  codegraph doctor . --database --processes # Verify SQLite integrity, FKs, FTS, and memory
683
795
  codegraph privacy . # Verify zero sensitive files indexed
684
- codegraph version # Print CodeGraph MCP version (2.2.1)
796
+ codegraph version # Print CodeGraph MCP version (3.0.0)
685
797
 
686
798
  # Code, Graph, Routes & Context Interrogation
687
799
  codegraph search "authenticate" -r . # Search indexed symbols and text chunks
@@ -695,7 +807,7 @@ codegraph context "trace /api/v1/auth/login" -r . # Compile token-budge
695
807
 
696
808
  # MCP Server Subcommands
697
809
  codegraph serve . # Start stdio MCP server (14 default tools)
698
- codegraph serve . --profile full # Start stdio MCP server with all 56 tools
810
+ codegraph serve . --profile full # Start stdio MCP server with all 70 tools
699
811
  codegraph serve . --transport sse --port 8765 # Start SSE HTTP server on port 8765
700
812
  codegraph mcp serve . --transport sse # Alias for SSE MCP server
701
813
  codegraph mcp stop # Stop active MCP processes
@@ -705,7 +817,7 @@ codegraph mcp stop # Stop active MCP pro
705
817
 
706
818
  ## 14. Documentation Map
707
819
 
708
- - **Deep Agent Brain & 56-Tool Reference**: [`docs/agent-brain.md`](docs/agent-brain.md)
820
+ - **Deep Agent Brain & 70-Tool Reference**: [`docs/agent-brain.md`](docs/agent-brain.md)
709
821
  - **Compact Tool Capabilities Summary**: [`agent-rules/tool-capabilities-summary.md`](agent-rules/tool-capabilities-summary.md)
710
822
  - **Detailed Multi-Tool Capability Comparison**: [`docs/tool-comparison.md`](docs/tool-comparison.md)
711
823
  - **Antigravity Skill (`SKILL.md`)**: [`.agents/skills/codegraph/SKILL.md`](.agents/skills/codegraph/SKILL.md)