AxiomCodeAI/axiomcodegraph

Public

Turn any codebase into a knowledge graph grounded in formal methods. Your AI agents get exact answers for any code-related task, ensure correctness, and optimize time and token usage.

  • Stars351+86 tuần này
  • Forks85
  • Watchers14
  • Issues61
  • Ngày tạo23/08/2026
  • Cập nhật gần nhất29/10/2026
  • Ngôn ngữTypeScript
  • Giấy phép—
README.md44.7 KBRaw

AxiomCode Graph logo

AxiomCode Graph

A god's-eye view of your codebase for AI agents. Stop grepping. Ensure correctness and completeness for any task your AI agent performs.

JavaScript     Python     TypeScript     Java     C#     HTML     CSS        XML    YAML    Gradle

What it does · Why · Get started · Maturity · Benchmarks · CLI · Graph output · Cross-file coverage · Run locally

Build npm Nightly (dev) License: FSL-1.1-Apache-2.0 Node ≥ 22.13

Be first to see what we build.  Stay in touch ↗


What it does

Give it a repository. It builds a knowledge graph of your code using formal methods: for every function, exactly who calls it and what it calls, derived by logical rules rather than guessed. Your AI agents, and you, then understand, explore, search and edit the code from that map instead of grepping. Grep cannot see calls through an interface, a subclass or a callback, and its output gets truncated, so agents silently miss what was cut. The map prunes 99.9% of the codebase, so agents keep their context for the task, not the search.

Test selection on 748 held-out Defects4J bugs. Bugs with every bug-revealing test selected: AxiomCode 94.9%, GitNexus 61.5%, CodeGraph 52.3%, Graphify 48.7%, Code-Review-Graph 21.9%, Name-Match (grep) 46.8%. F1 against Defects4J's own selection: AxiomCode 72.4, GitNexus 54.3, CodeGraph 44.8, Graphify 41.3, Code-Review-Graph 18.7, Name-Match (grep) 32.5.

On real bugs. On 748 held-out Defects4J bugs, scored once after the rules were frozen, the tests AxiomCode picks from source include every bug-revealing test for 94.9% of bugs (best tree-sitter builder: 61.5%), at an F1 of 72.4 against what Defects4J observes by running the suite.

Why: types make a better graph. Choosing tests means following calls several hops back from a change, and one wrong link loses every test beyond it. A tree-sitter based CST builder matches a call to a declaration by name; AxiomCode resolves it the way the compiler does, from the receiver's type. Scored against the compiler's own answer, compiled bytecode for Java and the type checker for TypeScript, over five open-source projects per language:

share of calls linked to their exact target AxiomCode GitNexus CodeGraph Code-Review-Graph Graphify
Java, 33,257 calls (bytecode) 96.5% 78.9% 78.5% 71.9% 67.5%
TypeScript, 9,829 calls (type checker) 88.8% 65.1% 65.4% 71.6% 49.8%

Across files, it recovers which files call into which with an F1 of

Nội dung README thuộc về AxiomCodeAI và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/AxiomCodeAI/axiomcodegraph