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 tool call, reconstructed from a transcript: the unit of an agent trace.
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.

Constants§

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