github / github/copilot-cli

Add live progress streaming for background sub-agents

オープン
#2,254 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:agents
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the feature or problem you'd like to solve

Feature request: Richer agent observability for background sub-agents.

### Proposed solution

When running multi-phase orchestrator agents (e.g., feature lifecycle with plan → implement → deliver → review), /tasks only shows tool call count and elapsed time. There is no visibility into what the agent is currently doing — which subtask, which phase, what file it is working on. A live activity log or structured progress stream from background agents would dramatically improve the developer experience for long-running agentic workflows.

## Proposed Solution Direction

### 1. Agent Status Events (lightweight)
Allow background agents to emit structured status events via a `report_progress` tool (analogous to `report_intent`):
```
report_progress({ phase: "implement", subtask: "OEA-1235", detail: "Writing domain tests" })
```
These events would surface in `/tasks` as a "last activity" column and in timeline via Ctrl+O.

### 2. Streaming Timeline for Background Agents
`/tasks ` could open a live tail view showing the agent's timeline events in real-time (tool calls, file edits, shell commands) — similar to how `docker logs -f` works. Press `q` to detach without stopping the agent.

### 3. Structured Progress Protocol
For orchestrator-style agents, define a progress protocol where agents can report:
- Current phase (plan/implement/deliver/review)
- Subtask progress (3/6 done)
- Active file being edited
- Last tool call summary

This could be rendered as a compact progress bar in the CLI:
```
[orchestrate-ABC-1234] Phase: implement ██████░░░░ 3/6 subtasks | Working on: Sample.java
```

### 4. /tasks --watch mode
A polling mode that auto-refreshes the tasks overview every N seconds, showing tool call count delta and last activity for each agent.

### Impact
Long-running orchestrator workflows (10-70+ min) currently feel like a black box. Any of these options would let developers stay informed without manually polling or asking the main agent to check.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。