Kanshō/Agent health / capacity row

Agent health / capacity row

A capacity-and-health line for one agent: queue depth, active tasks, context usage, error rate, current model, and cost burn. The context bar and number-forward error chip escalate tone as pressure rises.

Included in the single kansho full pack. Components are not offered as separate installs.

Fleet health table

Plan & dispatchRunning
claude-opus-4-7
Queue3
Active2
Context 62%
0% errors
Burn$4.20/h
EmbedderRunning
voyage-3
Queue41
Active8
Context 91%
2% errors
Burn$1.10/h
Sandbox runnerUnavailable
claude-sonnet-4-6
Process exited with code 137 (out of memory)
Vault rotatorIdle
claude-haiku-4-5
Queue0
Active0
Context 4%
0% errors
Burn$0.00/h

Error & recovery

Static preview callbacks show Restart / View logs; without handlers the row states the fallback line
Sandbox runnerUnavailable
claude-sonnet-4-6
Process exited with code 137 (out of memory)
Sandbox runnerUnavailable
claude-sonnet-4-6
Process exited with code 137 (out of memory)

Component documentation

Agent Health Row

components/agent-setup/agent-health-row.tsx

Purpose

Shows one agent's lifecycle, queue, active work, context use, error rate, and optional spend rate.

Appropriate use

Use in a fleet health table where capacity and failure pressure must be compared quickly.

Example

components/agent-setup/agent-health-row.tsx has a representative live example in the "Fleet health table" section on /components/agent-health-row.

States

Lifecycle state comes from the shared setup contract; queue and task counts are numeric, gauges accept 0..1 values, and unavailable rows may expose recovery.

API and props

AgentHealthRow accepts an AgentHealthItem plus onRestart, onViewLogs, and className.

Dependencies

Direct imports are React, Lucide icons, AgentDot, StatusPill, setup-state metadata, and cn.

Accessibility

Context is a named progressbar with numeric bounds, while error rate is visible text rather than a progressbar; recovery actions are labelled native buttons.

Limitations

Gauge inputs are visually clamped but not validated, and the row does not poll health, calculate spend, restart agents, or fetch logs.

Source

Source: components/agent-setup/agent-health-row.tsx.

Full pack

components/agent-setup/agent-health-row.tsx is documented at /components/agent-health-row and installs only through the single Kansho full pack; no individual component install is offered.