Kanshō/Agent process inspector

Agent process inspector

Operating-system-style view of a single agent process. Shows the active call stack, CPU/memory/file-descriptor counts, a recent event tail, and total spend.

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

Live process — running mission

Static preview: process actions require host callbacks and do not run here

Plan & dispatch

Runningpid 01H9X
claude-opus-4-7orchestrator-01started 14:01:3011m 48s uptime
412k$9.84
CPU62 / 100%
Memory342 / 512MB
FDs
18
↓ in
14.2 KB/s
↑ out
3.1 KB/s

Call stack

  1. #5tool:sqlpostgres.execute()1m12sRunning
  2. #4fnapply_chunk_window()1m13sRunning
  3. #3fncompact_audit_logs()1m20sRunning
  4. #2agentagent.plan8m04sRunning
  5. #1missionmission.handle(M-2014)11m48sRunning

Recent

14:02:11Acquired advisory lock on audit.logs
14:02:09Backfill window opened — 2026-04-01..2026-05-01
14:02:04Slow query on staging.audit_chunks (1.4s)
14:01:55Plan accepted by operator policy
14:01:32Tool postgres.execute requested
14:01:30Memory hit: prior compaction shape

Error & recovery

Static preview: Restart, Escalate, and two-click Kill require host callbacks

Sandbox runner

Failedpid 01H9Z
claude-sonnet-4-6agent-pool-040m 12s uptime
CPU2 / 100%
Memory12 / 256MB
FDs
2

Call stack

  1. #1agentidle.tick()Success

Recent

14:04:01OOM killed at item 4,210

Sandbox runner

Failedpid 01H9Z
claude-sonnet-4-6agent-pool-040m 12s uptime
FDs
2

Call stack

  1. #1agentidle.tick()Success

Recent

14:04:01OOM killed at item 4,210

Idle process — between missions

Static preview: process actions require host callbacks and do not run here

Audit writer

Pendingpid 01H8Q
claude-sonnet-4-6agent-pool-04started 2026-05-08 09:1214d 11h uptime
88k$1.32
CPU4 / 100%
Memory48 / 256MB
FDs
3

Call stack

  1. #1agentidle.tick()Success

Recent

13:48:02Released mission M-2013 — awaiting operator

Component documentation

Agent Process Inspector

components/control-plane/agent-process-inspector.tsx

Purpose

Displays one agent process with stack frames, resource gauges, recent events, spend, and guarded operator actions.

Appropriate use

Use for process diagnosis when the host can restart, escalate, or terminate the run and update feedback.

Example

components/control-plane/agent-process-inspector.tsx has a representative live example in the "Live process — running mission" section on /components/agent-process-inspector.

States

Status uses the shared six-value vocabulary; resources, network, files, events, cost, and callbacks are optional, while stack frames are required.

API and props

AgentProcessInspector accepts pid, agent, status, hostname, startedAt, uptime, cpuPct, memUsed, memMax, netIn, netOut, openFiles, stack, recent, tokens, cost, onRestart, onEscalate, onKill, and className.

Dependencies

Direct imports are React, Lucide icons, StatusPill, CostChip, ProgressMeter, InlineConfirmButton, and cn.

Accessibility

Process, stack, event level, and resource values are visible text; actions render only with callbacks and Kill uses two-step confirmation.

Limitations

It does not inspect or control a process, validate ranges, stream events, or show pending/failure results for host operations.

Source

Source: components/control-plane/agent-process-inspector.tsx.

Full pack

components/control-plane/agent-process-inspector.tsx is documented at /components/agent-process-inspector and installs only through the single Kansho full pack; no individual component install is offered.