Overview
List active instances with status, unread counts, and metadata. Query single agents or view recently stopped instances.Syntax
Agent name or
self for current identityWhen provided, shows single-agent detailsExtract specific field (requires NAME)Available fields:
name, status, session_id, directory, tool, transcript_path, parent_name, agent_idFlags
Output as JSON arrayFull listing or single-agent object
Show detailed info (session_id, directory, bindings, transcript, etc.)
Output only names, one per lineUseful for scripting
Shell export format (requires NAME)Outputs
export HCOM_INSTANCE_NAME=... statementsCustom format template with Available fields:
{field} placeholdersname, status, status_context, status_detail, status_age_seconds, description, unread_count, headless, session_id, directory, parent_name, agent_id, tool, base_name, hooks_bound, process_bound, transcript_path, background_log_file, created_at, tag, launch_contextShow recently stopped instances from life eventsDefault: last 20Use with
--all or --last N to control countWith
--stopped: show all stopped instances (no limit)With
--stopped: limit to last N (default: 20)Status Icons
▶active - Processing, reads messages very soon◉listening - Idle, reads messages in less than 1s■blocked - Needs human approval○inactive - Dead or stale◦unknown - Neutral
Tool Labels
Binding state encoded in case/asterisk:[CLAUDE]- PTY + hooks (hcom-launched)[claude]- Hooks only (vanilla tool)[CLAUDE*]- PTY only (no hooks bound)[claude*]- No binding (ad-hoc mode)
GEMINI, CODEX, OPENCODE, AD-HOC.
Examples
Full Listing
Verbose Listing
Query Self
Query Named Agent
Names Only
JSON Output
Custom Format
Shell Exports
Stopped Instances
Exit Codes
Success
- Named agent not found
- Field not found
- Identity resolution failed (for
self) - Database query failed
JSON Schema
Full listing (--json) returns array of objects:
Notes
Unread Counts: Shown as
+N suffix when agent has unread messages. Based on last_event_id cursor.Listening Since: For idle agents in
listening status for ≥60s, shows duration (listening since 2m).Subagent Timeout: For subagents idle in
listening status with less than 10s remaining before timeout, shows countdown (⏱ 5s).Remote Badge: Instances from other devices (via relay) show
[remote] suffix. Cannot be stopped locally.Headless Badge: Background instances show
[headless] suffix. Check background_log_file for logs.Stale Cleanup: List automatically cleans up stale placeholders and instances idle >1h.
Multiple Tools: Tool prefix only shown when >1 tool type is active. Binding state encoded in case/asterisk.
Related Commands
hcom start- Connect to hcomhcom stop- Disconnect from hcomhcom r- Resume stopped agentshcom send- Message agents