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

- **GitHub URL**: https://github.com/harshkedia177/axon
- **Official Docs / Website**: https://harshkedia.com/work/axon/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: C (47/100 · Maintenance 12/35 · Adoption 18/25 · Releases 11/20 · License 6/20)
- **Latest Release**: v1.0.1 (2026-03-09) — https://github.com/harshkedia177/axon/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 819 ★ total (+0 24h / +1 7d) · 116 forks
- **Topics**: `claude-code`, `code-analysis`, `code-intelligence`, `dead-code-detection`, `knowledge-graph`, `mcp`, `python`, `static-analysis`, `tree-sitter`, `typescript`
- **When to Use**: Best for: 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. Skip if: Your main languages are unsupported, you need verified runtime traces, or editor navigation and text search already meet your needs without a separate index.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Graph storage: KuzuDB with BM25 full-text and HNSW vector indexes; a Neo4j install extra is available.
- Source coverage: Tree-sitter parsers for Python, TypeScript/TSX, and JavaScript/JSX, including .mjs and .cjs.
- Hybrid retrieval: Reciprocal rank fusion combines BM25, 384-dimensional BAAI/bge-small-en-v1.5 embeddings, and fuzzy matching; results are grouped by execution flow.
- Impact analysis: Upstream traversal groups results by depth and supplements call and type relationships with Git co-change signals.
- Incremental indexing: watchfiles triggers file-local updates, while global community, flow, and dead-code analyses are batched every 30 seconds.
- Query surfaces: stdio MCP with read-only Cypher, a Typer CLI, and a local FastAPI/React dashboard with a Sigma.js/WebGL graph explorer.
```

## Quick Start / Clone
```bash
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
```
