Saurix
Saurix is an interactive knowledge graph engine that transforms complex codebases into a queryable, 2D-visualizable map. It is designed to be the Symbolic Intelligence Layer for modern AI coding agents.
Why Saurix for AI Agents?
Saurix solves the "Context Window" problem for LLMs by providing a structured representation of code that is superior to keyword search:
- Structural Awareness: Understands
CALLS,INHERITS, andIMPORTSrelationships rather than just raw text. - Context Efficiency: Agents can query specific subgraphs, receiving only the architectural context they need, drastically reducing token usage.
- Blast Radius Analysis: Built-in
impactanalysis allows agents to calculate the transitive side effects of a proposed change before making it. - Native MCP Support: Built on the Model Context Protocol, allowing AI agents to treat the repository graph as an extension of their own memory.
See docs/agent-lifecycle.md for a step-by-step walkthrough of how an AI agent uses these capabilities.
1) Core Mission
- Knowledge Extraction: Turn local or GitHub repositories into a structured graph of symbols and relationships.
- Agent Infrastructure: Expose high-level tools (MCP) for autonomous agents to navigate complex architectures.
- Fast Navigation: Answer questions about dependencies, callers, and impact analysis in milliseconds.
- Modular Architecture: Built for extensibility across languages and tools.
2) Architecture
Saurix follows a clean, domain-driven modular structure designed for scale and symbolic intelligence. For a detailed breakdown of how Saurix indexes, stores, and queries code, see docs/architecture.md.
Setup & Installation
- Install Saurix:
pip install saurix
- Initialize Any Project:
cd /path/to/your/project saurix init
This command indexes your project, creates a local 2D dashboard (saurix.html), and generates your MCP config in one step.
Running the MCP Server
Expose graph tools to AI agents (e.g., Claude Desktop, Cursor):
saurix-mcp
4) Interactive Commands
| Command | Description |
|---|---|
init |
Zero-config setup for the current project |
index <source> |
Index a local path or GitHub URL |
stats |
Show graph statistics and extraction coverage |
find <query> |
Fuzzy search symbols by name or ID |
callers <sym> |
List symbols calling the target |
path <A> <B> |
Find shortest directed path between two symbols |
impact <sym> |
Estimate blast radius of a change |
visual |
Generate a 2D knowledge graph visualization |
5) AI Agent Integration (MCP)
Saurix is optimized for agentic workflows. It exposes tools that help agents understand:
- Context Discovery:
find_symbolandrelated_files. - Behavioral Mapping:
callersandpath_between. - Risk Assessment:
impact_of_symbol.
Configure your agent with the saurix-mcp entry point. Once configured, the AI client (e.g., Claude Desktop) will automatically manage the server lifecycle—starting it in the background when needed and stopping it when the app closes. No manual terminal execution is required.
6) Development
Running Tests
uv run pytest
Testing the MCP Server
You can test the MCP integration without a full IDE using the MCP Inspector:
- Install the Inspector:
npm install -g @modelcontextprotocol/inspector - Run the Server:
npx @modelcontextprotocol/inspector uv run saurix-mcp - Interact: Open
http://localhost:5173, click Connect, and use the Call Tool tab.
For step-by-step setup (Claude Desktop, Cursor, OpenCode), simply run saurix init in your project folder.
Saurix is built for the era of autonomous coding.
Metadata
Release files for saurix 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| saurix-0.2.0.tar.gz | 105.9 kB | With provenance | Details for saurix-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saurix-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for saurix-0.2.0-py3-none-any.whl |
Total release size: 151.7 kB
Release files / saurix-0.2.0.tar.gz
| Download URL | saurix-0.2.0.tar.gz |
|---|---|
| Size | 105.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e567e2d351cdf705ff935ad0906daf91a23a800a9e070cf17f312d53acfa9cb0
|
|
BLAKE2b-256 checksum How to use checksums |
d38840334990257e8cc0fda557214486ea646e13872abb1d17e8c556a602344f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / saurix-0.2.0-py3-none-any.whl
| Download URL | saurix-0.2.0-py3-none-any.whl |
|---|---|
| Size | 45.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67b2ca28151e3fbcb7b189429c276b9bf0421adb081834b2c05bc5dd2a99e0de
|
|
BLAKE2b-256 checksum How to use checksums |
2f1698790cbf13a6592949527928fab6bb7229135cc2e7d218bb0eb5ce7bebda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logSecurity for saurix 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for saurix-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.