harshkedia177/axon
A local code graph for tracing dependencies and assessing refactors via MCP
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Axon builds a structural index before serving queries. It walks supported files while respecting .gitignore, uses Tree-sitter to extract symbols, resolves imports and calls, then adds inheritance and type relationships. Leiden clustering via igraph and leidenalg identifies communities. Framework-specific entry-point rules seed breadth-first traversal of the call graph to approximate execution flows.
The graph is built in memory, then persisted in KuzuDB alongside BM25 full-text and HNSW vector indexes. A StorageBackend protocol separates persistence from the stdio MCP server, Typer CLI, and FastAPI/React dashboard; Neo4j is available as an optional backend. Watch mode refreshes file-local analysis on changes and batches global community, flow, and dead-code work every 30 seconds, so those views can briefly lag behind the source.
Key Capabilities & Differentiators
Axon indexes Python, TypeScript, and JavaScript, including TSX, JSX, .mjs, and .cjs. axon_query uses reciprocal rank fusion to combine BM25, fuzzy name matching, and 384-dimensional BAAI/bge-small-en-v1.5 embeddings, then groups hits by execution flow. axon_context exposes callers, callees, types, and community membership; axon_impact groups upstream results by dependency depth and includes edge confidence.
Git coupling uses six months of history and links pairs with a score of at least 0.3 and at least three co-changes. Dead-code analysis exempts recognized entry points, overrides, and protocol methods, among other cases. The browser dashboard provides a force-directed graph, analysis views, and a Cypher console. Developers can also compare branches at symbol level through Git worktrees, while agents can use axon_detect_changes to map a diff to affected symbols and flows.
Trade-offs & Limitations
Compared with grep, Axon trades a separate indexing step for reusable graph queries over indirect callers, type relationships, and Git history. Compared with an LSP, it is aimed at repository-wide analysis shared across clients rather than precise editor navigation. A confidence score describes how a relationship was inferred; it does not prove that a change will break a caller. Dynamic dispatch, unrecognized framework entry points, and a shallow Git history can all leave gaps.
Large repositories warrant measuring peak build memory and index size because the graph is assembled in memory and then persisted. Start with --no-embeddings if callers, types, and dependencies matter more than semantic search. Treat dead-code findings as review candidates, not deletion instructions. The package metadata declares MIT, but the repository listing leaves licensing unspecified and the supplied root tree shows no LICENSE file. Verify the governing terms before redistribution.
Hardware & Deployment Guide
Install axoniq with pip on Python 3.11 or later, run axon analyze . in the project, and open the bundled dashboard with axon ui at localhost:8420. The packaged UI does not require Node.js. For Claude Code or Cursor, point the MCP client at axon serve --watch; axon host --watch runs a shared host for the UI and multiple MCP sessions. pip install axoniq[neo4j] adds optional Neo4j support.
Parsing, storage, embeddings, and search run locally without an API key. For an air-gapped rollout, verify that all package and model assets are available before deployment, or disable embeddings. Release v0.2.4 reworked the watcher and incremental global phases, v1.0.0 added the interactive UI and reworked graph rendering, and v1.0.1 is the latest listed release. The package still carries an Alpha classifier, so validate update and index-rebuild behavior before rolling it out broadly.
Teams maintaining Python, TypeScript, or JavaScript repositories that want developers and AI agents to share a local view of dependencies before a refactor, during review, or while onboarding.
Your main languages are unsupported, you need verified runtime traces, or editor navigation and text search already meet your needs without a separate index.
Quick Start & Installation
pip install axoniq # 1. Install cd your-project && axon analyze . # 2. Index (one command, ~5s for most repos) axon ui # 3. Explore visually at localhost:8420
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| axon ★ | 819 | +1 | Python | — | A local code graph for tracing dependencies and assessing refactors via MCP |
| graphify | 156.8k | +2.4k | Python | Apache-2.0 | Local AST graphs for dependency tracing, with CLI and MCP access. |
| codebase-memory-mcp | 49.6k | +335 | C | MIT | A local code graph for tracing code, docs, and infrastructure via MCP. |
| mcp-for-blender | 37.1k | +1.1k | Python | GPL-3.0 | A local MCP bridge for inspecting and editing live Blender scenes with AI |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/harshkedia177/axon.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about axon
How does an MCP client connect to Axon?
axon analyze . from the project root, then configure the client to launch axon serve --watch over stdio. The client queries the resulting index. Use axon host --watch when a browser dashboard and multiple MCP sessions need to share a host.Does Axon need a GPU, and how should I size a workstation?
--no-embeddings to skip vector generation.Can we self-host Axon for commercial work or redistribute it?
When is Axon a better fit than grep or an LSP?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy