# Repository Briefing: AxiomCodeAI/axiomcodegraph
> Source: https://repoforai.com/repo/AxiomCodeAI/axiomcodegraph (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/AxiomCodeAI/axiomcodegraph
- **Official Docs / Website**: https://www.axiomcode.ai
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: See repository
- **Engineering Health**: A (77/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v0.2.4 (2026-11-30) — https://github.com/AxiomCodeAI/axiomcodegraph/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 849 ★ total (+0 24h / +35 7d) · 101 forks
- **Topics**: `ai-agents`, `ai-skills`, `antigravity`, `ast`, `change-impact-analysis`, `claude-code`, `code-analysis`, `code-search`, `codegraph`, `codex`, `cursor`, `formal-methods`
- **When to Use**: Best for: Teams working in Java, TypeScript, or Python repositories that want traceable call paths for refactors, review, and targeted test runs from an agent or shell. Skip if: You mainly need symbol search, require complete runtime or cross-language traces, or plan to replace a full regression suite without first validating test selection.

## Overview
```text
### Architecture & Core Mechanics
AxiomCode Graph is a local static-analysis engine with CLI and MCP entry points. The TypeScript package `@axiomcode/code-graph` exposes the `axiomcode` executable. Language parsers translate source into a relational intermediate representation; the engine applies logical rules to build a typed call graph. Declared and inferred receiver types help resolve calls across files and through interfaces, overrides, generics, and callbacks. Where dispatch is ambiguous, the graph can retain a set of candidate targets rather than forcing a single edge.

The repository separates parser and graph code into `parser/` and `graph/`. The package lists `typescript`, `tree-sitter`, language grammars, and XML/YAML parsing dependencies including `sax` and `yaml`, alongside platform-specific engine packages. The agent-facing plugin in `plugins/axiomcode/` packages a skill, MCP access, and client-dependent hooks. The CLI and MCP server query the same graph. A multilingual checkout gets separate language graphs, with HTML and CSS sharing a web graph.

### Key Capabilities & Differentiators
`impact` maps callers, downstream consequences, and relevant tests for a declaration or uncommitted edits. `path` gives each hop with its source location, `tests` produces a command for the tests reached by current edits, and `context` describes the files, callables, and flow relevant to a task. Java, TypeScript, and Python are stable; JavaScript, C#, HTML, and CSS are beta. Java analysis includes Spring dependency injection and wiring from XML, YAML, `.properties`, and `META-INF/services`.

Across five projects per language, exact call targets were recovered for 96.5% of 33,257 Java calls measured against bytecode and 88.8% of 9,829 TypeScript calls measured against the type checker. In a held-out set of 748 Defects4J bugs, the selected tests included every bug-revealing test for 94.9% of bugs, with an F1 of 72.4. These results measure resolution and test selection on those workloads; they do not establish completeness for a new codebase.

### Trade-offs & Limitations
The strongest reason to adopt it over a syntax-first graph is multi-hop impact analysis: an incorrectly resolved call can hide every caller or test beyond that edge. In the Java exact-target benchmark, AxiomCode reached 96.5% versus 78.9% for GitNexus and 78.5% for CodeGraph. That comparison is useful for evaluating Java call resolution, not for ranking search, agent integration, or every language. Ordinary search is still useful for finding the symbol to query.

Static analysis leaves gaps. `link` can record a reviewed target in `axiomcode-links.tsv`, but those edges are labeled `[asserted]`, not engine-resolved. HTML/CSS script references and handler names are stored but not followed into the JavaScript graph. Validate test selection against a full suite before relying on it as a CI gate. Also verify `LICENSE.md` and the distributed package terms before organizational rollout; license metadata is unspecified.

### Hardware & Deployment Guide
Install the engine with `npm i -g @axiomcode/code-graph`, or configure a generic MCP client to launch `npx -y @axiomcode/code-graph mcp`. The local runtime requires Node.js 22.13 or newer and Python 3. Prebuilt engines cover macOS arm64/x64, Linux arm64/x64, and Windows x64. Windows also needs Git for Windows Bash; Linux arm64 needs build tools for native parser modules. A separate Soufflé install is not needed. The graph is built on first use under `.axiomcode/`; `axiomcode index` can build it explicitly.

Hooks are available for Claude Code, Codex, Cursor, and Gemini CLI, but not for Copilot CLI/VS Code, Windsurf, Devin CLI, or a generic MCP configuration. Restart agent sessions after upgrades so old and new processes do not rebuild the same graph. v0.2.3 added Hono route and ordered middleware modeling; v0.2.4 added `unresolved` in the CLI and MCP to surface open call sites for review.
```

## Key Capabilities
```text
- Resolution: Uses declared and inferred types, retaining multiple candidates when dispatch is ambiguous.
- Query evidence: `path` reports each hop with the source location and highlights the call site.
- Test selection: Selected every bug-revealing test for 94.9% of 748 held-out Defects4J bugs; reported F1 was 72.4.
- Framework wiring: The Java graph includes Spring/DI and configuration links; Hono modeling includes expanded route paths and ordered middleware.
- Unresolved calls: `unresolved` surfaces open sites for review; `link` records asserted edges in `axiomcode-links.tsv`.
- Agent integration: CLI and MCP share the graph; automatic refresh and edit-impact hooks depend on the client.
```

## Quick Start / Clone
```bash
# 1. the engine and the axiomcode command
npm i -g @axiomcode/code-graph

# 2. the plugin, in your agent
# Claude Code
claude plugin marketplace add AxiomCodeAI/axiomcodegraph && claude plugin install axiomcode@axiomcode
# Codex CLI and desktop app
codex plugin marketplace add AxiomCodeAI/axiomcodegraph && codex plugin add axiomcode@axiomcode
# Copilot CLI (VS Code agent mode loads Copilot CLI's plugins too)
copilot plugin marketplace add AxiomCodeAI/axiomcodegraph && copilot plugin install axiomcode@axiomcode
# Gemini CLI
gemini extensions install https://github.com/AxiomCodeAI/axiomcodegraph
# Cursor
cursor-agent plugin marketplace add https://github.com/AxiomCodeAI/axiomcodegraph
# Windsurf, Devin CLI
devin plugins install AxiomCodeAI/axiomcodegraph#plugins/axiomcode
```
