Agentusage Architecture
Local-first ingestion, normalization, storage, and usage delivery
agentusage normalization core
Local Agent History · JSONL · logs · local DBs · Architecture component · Codex · Claude · OpenCode · Copilot
Local Agent History
JSONL · logs · local DBs
Codex · Claude · OpenCode · Copilot
Telemetry Hooks · agent event payloads · Architecture component · optional live path
Telemetry Hooks
agent event payloads
optional live path
Provider Readers · format-specific adapters · Architecture component · incremental cursors
Provider Readers
format-specific adapters
incremental cursors
Hook Adapters · shared event envelope · Architecture component · Codex · Claude · OpenCode
Hook Adapters
shared event envelope
Codex · Claude · OpenCode
Ingestion Pipeline · parse · classify · dedupe · agentusage normalization core · idempotent batches
Ingestion Pipeline
parse · classify · dedupe
idempotent batches
Normalized Event Model · usage · raw · metrics · cursors · agentusage normalization core · provider-independent
Normalized Event Model
usage · raw · metrics · cursors
provider-independent
SQLite · one DB per provider · Architecture component · default · local
SQLite
one DB per provider
default · local
PostgreSQL · shared backend · Architecture component · explicit opt-in
PostgreSQL
shared backend
explicit opt-in
Query & Summary Engine · windows · trends · latest quota · Architecture component · read-only serving path
Query & Summary Engine
windows · trends · latest quota
read-only serving path
Browser Dashboard · embedded HTML · charts · PNG · Architecture component · 127.0.0.1:8787
Browser Dashboard
embedded HTML · charts · PNG
127.0.0.1:8787
Terminal & Reports · TUI · daily · range · Architecture component · agentusage / au
Terminal & Reports
TUI · daily · range
agentusage / au
Local JSON API · providers · summary · trend · Architecture component · scriptable
Local JSON API
providers · summary · trend
scriptable
default
opt-in
Legend
External
Backend
Message bus
Database
Frontend
Ready
Chapter 01 / 01
Guided chapter
Diagram guide
Explore this system
×
Inspecting compiled semantics
01
Find any node Search labels, responsibilities, kinds, and stable IDs.
/
02
Trace a route Ask how two semantic nodes connect in authored direction.
R
03
See the whole system Open Semantic Radar with a live viewport and stable nodes.
M
04
Compare semantic kinds Count roles, reveal their traffic, and compare direct authored links.
L
05
Play the guided story Walk the authored chapters and real relationships.
P
06
Enter Presentation Stage Give the live diagram the viewport without changing export.
F
E ExportT Theme0 Reset+ Zoom in- Zoom outEsc Close
Find a node
×
⌕
/
No matching nodes
Copy link
Relations
Clear
Route probe
Choose a start node
Find start
Copy link
Clear
Pick two semantic nodes on the diagram
←
▶
Journey
→
Overview
Choose the source, then the destination. Direction matters.
Semantic lens
Compare system roles
×
Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.
Choose a kind to inspect its nodes and touching relationships.
Copy link
Clear
Semantic radar
Building overview
×
Click node Drag to pan
PATH
MAP
LENS
⌕
?
−
100%
+