How inorbithr/ahto works
ahto is a local code-intelligence engine: a user crawls a repository, ahto ingests its Git history and parses code, then stores the results as a queryable Parquet lake backed by DuckDB. Users and coding agents access that lake through a local multi-protocol gateway and web app. The README documents these product-level flows and capabilities; sampled source confirms selected CLI, ingestion, API-client, and UI relationships, but many backend connections are not shown in the excerpts.
Main entry points: app.tsx Web application · writer.go Parquet lake · server.go Protocol gateway · workbench.tsx Code workbench
Components 34
Repository ingestion
- CLI commands
cli/cli.go - Crawl orchestration
src/crawl/crawl.go - Git history reader
src/git/runner.go - History ingestion
src/crawl/ingest.go - Code parser
src/parse/run.go
Lake and analysis
- Parquet lake
src/lake/writer.go - SQL query engine
src/query/query.go - Lake maintenance
src/query/storage.go
Gateway and services
- Protocol gateway
src/protocol/server.go - Source API service
src/source/service.go - Function service
src/function/service.go - Agent service
src/agent/service.go
Web application
- Web application
ui/app/src/app.tsx - API client
ui/app/src/api.ts - Source data client
ui/app/src/source.ts - Code navigation
ui/app/src/code-route.ts - Code workbench
ui/app/src/views/workbench.tsx - Lake browser
ui/app/src/views/lake.tsx - Repository lenses
ui/app/src/views/lenses.tsx - SQL designer
ui/app/src/views/query.tsx - SQL design model
ui/app/src/query-data.ts - Debugger UI
ui/app/src/debug.ts - Code highlighting
ui/app/src/code-highlight.ts - Highlight parser
ui/app/src/code-highlight-parse.ts - Generated API types
ui/app/src/gen/ahto/source/v1/source_pb.ts - Security API types
ui/app/src/gen/ahto/security/v1/security_pb.ts - Display formatting
ui/app/src/format.ts - Notifications
ui/app/src/notifications.tsx - Shared UI components
ui/app/src/parts.tsx
Security and operations
- Advisory matching
src/advisory/sync.go - Security scanning
src/secscan/secscan.go - Identity service
src/identity/service.go - Peer networking
src/p2p/service.go
Other components
- Repository user
Connections 42
- Repository user → CLI commands: runs commands
README.md - CLI commands → Crawl orchestration: starts crawl
README.md - Crawl orchestration → Git history reader: reads history
- Crawl orchestration → History ingestion: ingests objects
- History ingestion → Parquet lake: writes tables
src/crawl/ingest.go - History ingestion → Code parser: parses source
- Code parser → Parquet lake: stores parse results
README.md - Parquet lake → SQL query engine: provides tables
README.md - SQL query engine → Parquet lake: reads lake data
src/query/query.go - CLI commands → SQL query engine: executes SQL
- CLI commands → Lake maintenance: runs maintenance
- Lake maintenance → Parquet lake: rewrites lake
src/query/storage.go - Advisory matching → Parquet lake: matches packages
README.md - Security scanning → Parquet lake: scans code
README.md - Repository user → Protocol gateway: connects locally
README.md - Protocol gateway → Source API service: serves source RPCs
src/source/service.go - Source API service → Parquet lake: serves lake data
README.md - Protocol gateway → Function service: serves function RPCs
src/function/service.go - Protocol gateway → Agent service: serves agent API
src/agent/service.go - Protocol gateway → Identity service: serves identity RPCs
src/identity/service.go - Protocol gateway → Peer networking: serves peer RPCs
src/p2p/service.go - Repository user → Web application: uses browser
README.md - Web application → Code workbench: renders views
ui/app/src/app.tsx - Web application → Lake browser: renders lake view
ui/app/src/app.tsx - Web application → Debugger UI: renders debugger
ui/app/src/app.tsx - Code workbench → Code navigation: parses routes
ui/app/src/views/workbench.tsx - Code workbench → Source data client: loads repository data
ui/app/src/views/workbench.tsx - Repository lenses → Code workbench: opens workbench
ui/app/src/views/lenses.tsx - Repository lenses → Lake browser: opens lake view
ui/app/src/views/lenses.tsx - SQL designer → SQL design model: builds SQL
ui/app/src/views/query.tsx - SQL designer → Source data client: loads schema
ui/app/src/source.ts - Web application → API client: uses API client
ui/app/src/api.ts - Source data client → API client: calls gateway
ui/app/src/source.ts - API client → Protocol gateway: requests local API
ui/app/src/api.ts - Source data client → Generated API types: decodes messages
ui/app/src/source.ts - Code workbench → Code highlighting: renders code
ui/app/src/views/query.tsx - Code highlighting → Highlight parser: uses parser
ui/app/src/code-highlight.ts - Web application → Security API types: uses security messages
- Code workbench → Display formatting: formats display
ui/app/src/views/workbench.tsx - Web application → Notifications: shows notifications
ui/app/src/app.tsx - Web application → Shared UI components: uses shared components
ui/app/src/app.tsx - Agent service → Parquet lake: runs code agents
README.md