Skip to main content

Module model

Module model 

Source
Expand description

The data model shared by discovery, the TUI and the JSON output.

Structs§

Agent
A single row in the agent table.
HostStats
ProcNode
One process, with its descendants.
Snapshot
Everything the UI needs for one frame.
TokenUsage
Token counts, split the way the Anthropic and OpenAI usage objects split them.
ToolSpan
One span of an agent trace: a tool call, an inference, or a turn.
Totals

Enums§

Activity
What the transcript says the agent was last doing. Harness-neutral.
AgentState
Coarse lifecycle state, in the htop sense.
Attribution
Harness
Which agent harness a process or transcript belongs to.
ProcKind
Role of a process inside an agent’s tree.
SpanKind
What a span measures. Tool calls came first and gave the type its name; the other two label the time between them.

Constants§

SNAPSHOT_SCHEMA_VERSION
Version of the --json document. Bumped when a field changes meaning or disappears; new fields alone do not bump it.