{#if hasAgents}
{#if !collapsed} {#if agents.length > 0}
Tier 1 โ€” Management
{#each agents as agent (agent.id)} {@const status = getStatus(agent.id)}
{ROLE_ICONS[agent.role] ?? '๐Ÿค–'} {agent.name}
{ROLE_LABELS[agent.role] ?? agent.role} {#if agent.model} {agent.model} {/if} {@const unread = getUnread(agent.id)} {#if unread > 0} {unread} {/if}
{/each}
{/if} {#if projects.length > 0}
Tier 2 โ€” Execution
{#each projects as project (project.id)} {@const status = getStatus(project.id)}
{project.icon} {project.name}
Project {@const unread = getUnread(project.id)} {#if unread > 0} {unread} {/if}
{/each}
{/if} {/if}
{/if}