Skip to content

Subagent Watcher

The Subagent Watcher provides real-time monitoring of sub-agents spawned by your primary AI agents. AgentMux offers two complementary views: the Swarm pane for overview and the Subagent pane for focused inspection.

The Swarm pane is the bird’s-eye view of all agent activity. Open it from the top bar (bee icon) or right-click a pane header and select Swarm.

Shows all sub-agents across your workspace, split into:

  • Active Subagents — Currently running, with event count and last activity time
  • Completed Subagents — Finished sessions

Each entry shows:

FieldDescription
Agent IDUnique identifier (truncated)
SlugHuman-readable name
Parent AgentWhich agent spawned this sub-agent
Statusactive or completed
Event CountNumber of events recorded
ModelAI model being used

Click any sub-agent to open a dedicated Subagent pane for that agent.

Browse past agent sessions with metadata:

FieldDescription
Session IDUnique session identifier
Provider / ModelAI provider and model used
SlugSession name
Working DirectoryProject path
Git BranchBranch at time of session
Message CountTotal messages exchanged
Token UsageTotal tokens consumed
Created / ModifiedSession timestamps

Full-text search across all agent sessions. Results include:

  • Agent ID and session
  • Timestamp and event type
  • Content preview
  • Relevance score

A focused view of a single sub-agent’s activity stream. Open one by clicking a sub-agent in the Swarm overview, or programmatically.

The header displays:

  • Sub-agent slug and ID
  • Status badge (active, completed, loading)
  • Event count
  • Last activity timestamp
  • Model name

Events are displayed in chronological order:

Event TypeDisplay
TextAgent text output
Tool UseTool name and input summary
Tool ResultSuccess/error indicator with result preview
ProgressProgress output from long-running operations

The Subagent pane auto-scrolls to follow new events. Scrolling up pauses auto-scroll and shows a “scroll to bottom” button. Scrolling to the bottom re-enables auto-scroll.

  1. When an agent session starts, the backend begins tracking its JSONL output stream
  2. Sub-agents spawned by the parent agent are detected from the stream
  3. The backend emits subagent events via the pub-sub system
  4. The Swarm pane subscribes to all subagent events for the overview
  5. Individual Subagent panes subscribe to events for a specific agent ID

Data is persisted in JSONL files on disk, allowing history browsing even after sessions complete.