Skip to main content
Version: Next

Introduction

astria turns any folder into a queryable knowledge graph — deterministic AST extraction in Rust, optional local-embedding semantics, zero API keys, everything on your machine.

astria is inspired by the Python Graphify project's core idea — turn a corpus into a queryable knowledge graph — but it is an independent, from-scratch implementation: a deterministic, offline-first Rust/tree-sitter pipeline, not a fork or a port.

You drop into an unfamiliar repo and need to know: what is load-bearing here, what breaks if I change this, where does auth live, how do these two modules connect. Reading everything costs the whole context window. The graph answers in ~3,000 tokens — measured at 50–110× fewer tokens per query on real repos (printed honestly after every run; varies by corpus — see Benchmarks and evidence).

Three things a folder full of files can't give you​

  1. Structure that survives the session — hub files, god nodes, communities, and the blast radius of any change, stored in SQLite and refreshed incrementally as code changes.
  2. An honest audit trail — every edge is labeled EXTRACTED / INFERRED / AMBIGUOUS with a numeric confidence score. You always know what was found in the source versus deduced, and --detail high filters to only declared facts.
  3. Answers for agents and humans — query it from the CLI, from any AI agent via MCP, or just read the exported markdown wiki with plain file links.

Where to go next​

Worked examples with honest reviews — the tool run on itself, including what the graph got wrong — live in the worked/ directory of the repository, alongside a head-to-head comparison against the Python Graphify project that inspired it, run on the same corpus.