{#if isOpen}

Agent Monitor

{#if runningAgents.length > 0} {runningAgents.length} running {/if}
{#if agents.length === 0}

No agents detected yet

Agents will appear here when Claude uses the Task tool

{:else} {#each flattenedAgents as { agent, depth } (agent.toolUseId)}
{#if depth > 0} {/if} {getSubagentTypeLabel(agent.subagentType)}
{#if agent.durationMs !== undefined} {Math.floor(agent.durationMs / 1000)}s {:else} {formatDuration(agent.startedAt, agent.endedAt)} {/if} {#if agent.status === "running"} {/if}

{agent.description}

{#if agent.status === "running"} Running... {:else if agent.status === "completed"} Completed {:else} Errored / Killed {/if}
{/each} {/if}
{#if agents.length > 0}
{agents.length} total · {runningAgents.length} running · {completedAgents.length} completed · {erroredAgents.length} errored
{/if}
{/if}