ahto
Health Warn
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in .github/workflows/ci.yml
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Code intelligence engine that runs on your machine: every commit, queryable with SQL, for you and your coding agents.
ahto
ahto is a code intelligence engine that runs on your machine. Point it at a repository and it copies the whole history to your disk as tables you can query with SQL, parses the code into symbols, imports and calls, and matches its packages against security advisories. One local port serves all of it to you, your programs and your coding agents.
Every commit, queryable.
No account · No hosted service · Nothing uploaded · Parquet on your disk · DuckDB inside
Try the live demo: the histories of Linux, Go, Rust, PHP and Node in 34
tables, with the web app, the SQL workbench and the API explorer.
More at ahto.dev.
Status: open source and in active development. Commands, tables and settings can still
change between releases.
Quick start
One line installs the newest release on Linux and macOS (amd64 and arm64). It checks the
binary against the release's SHA256SUMS, puts it in ~/.local/bin and never uses sudo.
Add -s -- --claude after sh to register ahto in Claude Code as well:
curl -fsSL https://ahto.dev/install.sh | sh
ahto.dev/install.sh redirects to the newest release's get.sh, so this line does the same:
curl -fsSL https://github.com/inorbithr/ahto/releases/latest/download/get.sh | sh
Then crawl a repository, ask it a question and start the gateway:
ahto crawl https://github.com/golang/example
ahto query sql "select author_name, count(*) as commits
from commits group by 1 order by 2 desc limit 10"
ahto serve # then open http://127.0.0.1:8080: the web app, with the API also below /api
ahto upgrade later replaces the binary with the newest release, with the same checksum
check. To build from source you need Git 2.42.0 or newer, a C compiler (ahto uses cgo for
DuckDB and the parsers) and mise:
git clone https://github.com/inorbithr/ahto && cd ahto
In the checkout, mise install is the only setup step: it installs the pinned tools, builds
ahto and puts it in ~/.local/bin. Getting started walks through
each step, and Development covers building and testing.
What you get
Everything below runs on your own disk and answers on one local port.
- The whole history as tables. Every commit, tree, blob, tag and ref, written as Parquet
and read with the DuckDB engine inside the binary. A second crawl adds only what is new
(querying, the lake). - Code that is understood, not only stored. Source files are parsed into symbols,
imports, calls and syntax trees, once per distinct file (parsing). - Risk at any commit. Advisories from OSV, CISA KEV and EPSS sit next to your code and
meet its pinned packages; a scan adds the secrets, dangerous calls and sensitive files
(security). - A web app to look around. A code browser, a 3D city of the repository, a canvas, a SQL
workbench, the security pages and these docs, built into the binary
(the web app). - One port for people and agents. MCP for coding agents, and REST, gRPC, JSON-RPC,
GraphQL, WebSocket and MQTT for programs (the gateway). - Agents that run from the gateway. Claude, Codex and others can run on your machine
through the REST API; off by default (agents). - Tools around your code.
ahto checkskips CI checks whose inputs did not change,ahto taskkeeps your work as a tree, andahto servetakes OpenTelemetry traces and
crashes and maps them to commits (checks, how to,
debugger). - Closed networks of your own machines. Nodes find and admit each other by key, with a
signed membership log, and people sign in with a device key or a passkey. Lake data does
not move between peers yet (networking, identity).
|
|
|
| SQL workbench | Canvas | Security |
The API
ahto serve puts every rpc on one port, 127.0.0.1:8080 by default, on every surface at
once: MCP at /mcp, REST at /v1/..., JSON-RPC at /rpc, GraphQL at /graphql, WebSocket
at /ws, MQTT over WebSocket at /mqtt, gRPC on any path, and Arrow streams at/arrow/v1/. /openapi.json describes the REST routes, and /llms.txt is a short guide
for agents, built from the live catalog.
curl 127.0.0.1:8080/v1/source/repositories # the repositories in the lake
curl 127.0.0.1:8080/llms.txt # one line per call
A gateway that listens on loopback asks for no sign-in unless the node is an authority
member. The gateway covers each surface and the source service. The API
explorer, at /docs/api in the web app, sends real requests and runs on the
live demo.
Languages
ahto parses these languages into symbols, imports, calls, comments and syntax trees. Go uses
Go's own go/parser; every other language uses a tree-sitter grammar compiled into the
binary.
| Language | Extensions |
|---|---|
| Go | .go |
| Rust | .rs |
| C, C++ | .c .h, .cc .cpp .cxx .hh .hpp and more |
| JavaScript, TypeScript, TSX | .js .mjs .cjs .jsx, .ts .mts .cts, .tsx |
| Python, Java, PHP | .py .pyi, .java, .php |
| Solidity, Cairo, FunC, Circom, Tact, Move, Sway | .sol, .cairo, .fc .func, .circom, .tact, .move, .sw |
| Noir | .nr, only in a build with -tags noir |
A build without cgo parses Go only. Parsing lists the parsing tables and
says when files are parsed again.
More
| Group | Pages |
|---|---|
| Start | Getting started, Quick start, What you get, How to |
| Use ahto | Querying, Parsing, Languages, The lake, Commands |
| Agents and tools | Agents, Checks and the build cache, Debugger |
| API | The API, The gateway |
| Security and access | Security, Sign-in and recovery, Private repositories |
| Run and operate | Configuration, Networking and peers, Storage adapters |
| Project | Development, Licence, atlas/: the design documents, what was asked, found, decided and built |
Licence
ahto is licensed under the Apache License 2.0. Contributions are accepted under
the same licence; CONTRIBUTING.md says how a change gets merged, and
SECURITY.md says how to report a vulnerability privately.
The third-party tree-sitter grammars ahto vendors keep their own licences, MIT or
Apache-2.0, and NOTICE lists each one with its copyright. The Noir grammar is
GPL-3.0, so it is compiled only with -tags noir, and the binaries ahto ships leave it out.
A binary you build with that tag is a GPL-3.0 work
(ADR 0006).
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found