CommandCodeAI / CommandCodeAI/command-code

Multi-Agent Visual Indicator for Active Sessions

Ouverte
#817 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
Aucune donnée de langage
Étoiles
4k
Forks
350
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Feature Request: Multi-Agent Visual Indicator for Active Session

Summary

Add a visual indicator in the Command Code CLI that shows when multiple agents are running concurrently within the session, giving users real-time awareness of active subagent work — similar to how Theo implemented this for T3 Code and how Codex displays active agents.

Problem

Currently, when Command Code delegates work to multiple subagents (via the agent tool), there's no visible indicator in the UI showing:

  • Which agents are currently running
  • How many agents are active
  • What each agent is working on (its task/description)
  • Agent status (running, completed, failed)

Users are left unaware of background work happening in their session. When multiple agent calls fire in parallel (e.g., 3 explorers + 2 editors), the main session appears idle while work happens invisibly.

Proposed Solution

Implement a persistent visual indicator (status bar, footer, or inline badge) that displays:

  1. Active agent count — e.g., "3 agents running"
  2. Agent identity badges — show agent name/type (General, Explore, Plan, or custom names)
  3. Status states — running (spinner), completed (checkmark), failed (error icon)
  4. Task preview — truncated description of what each agent is doing
  5. Background agent awareness — show agents started with background: true or run_in_background: true
Visual Inspiration
  • T3 Code (Theo): Shows active agents as colored badges with spinners in the terminal footer
  • Codex: Displays agent tiles with status indicators and task descriptions
  • GitHub Copilot Workspace: Shows parallel task execution with progress indicators

User Experience

In-Session Indicator
┌─────────────────────────────────────────────────────────────┐
│  🤖 3 agents running                                        │
│  ● Explore — "Searching auth middleware..."                 │
│  ● General — "Refactoring database layer..."               │
│  ◌ Plan — "Designing API routes..." (queued)               │
└─────────────────────────────────────────────────────────────┘
Status States
  • Running (with spinner animation)
  • Completed successfully
  • Failed/errored
  • Queued/pending
Interaction Ideas
  • Click/tap an agent badge to see its full output
  • Keyboard shortcut to cycle through active agents
  • /agents command enhanced to show live status alongside agent definitions
  • Optional: notification when all agents complete

Technical Considerations

Existing Primitives

Command Code already has the building blocks:

  • agent tool returns agent_id for background runs
  • agent_output tool can check status of running agents
  • shell_tasks / shell_output track background processes
  • Session transcript already records agent delegation events
Implementation Approaches
  1. Status bar component — persistent footer showing active agents (least intrusive)
  2. Inline badges — agent indicators appear inline with conversation flow
  3. Dedicated panel — toggle-able side panel with full agent details (heavier)
Agent Lifecycle Events to Surface
  • Agent started (with name + task description)
  • Agent progress (optional, if agents can report intermediate status)
  • Agent completed (with result summary or token usage)
  • Agent failed (with error reason)

Benefits

  • Transparency: Users know work is happening even when main session is quiet
  • Debuggability: Easier to understand what went wrong when an agent fails
  • Confidence: Visual feedback that parallel delegation is working
  • Discoverability: Encourages users to leverage multi-agent parallelism

Potential Concerns

  • Terminal real estate: Status bar takes up space — should be compact and optionally hideable
  • Noise: Could be distracting with many agents — consider collapsing/expanding
  • Performance: Polling agent status shouldn't add overhead

Settings

Consider a setting to control visibility:

{
  "showAgentIndicator": true,
  "agentIndicatorStyle": "compact" // "compact" | "detailed" | "none"
}

Related Features

  • Background tasks (run_in_background)
  • Agent output streaming (showOutput: true)
  • Session status (/status)
  • /agents manager

Priority: Medium — improves UX significantly for power users leveraging multi-agent workflows

Affected Users: Anyone using parallel agent delegation, background agents, or custom subagents

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par suivre les outils agent et agent_output, shell_tasks/shell_output ainsi que les événements de transcription de session afin de comprendre comment l’état du cycle de vie de l’agent est exposé à la CLI. Examinez les points d’entrée existants /status et /agents, puis définissez et implémentez un indicateur compact dont l’état done couvre le nombre d’agents actifs, l’identité, un aperçu de la tâche et les états running, completed, failed et queued.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
ai, cli
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.