github / github/copilot-cli

Agents cancelling sub-agent

未關閉
#2,460 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
area:agents
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

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

Agents cannot cancel background sub-agents they launched — only users can, via the /tasks UI

### Proposed solution

A cancel tool taking an agent_id would mirror what the /tasks UI already gives users, letting agents actively manage delegated work — not just wait for it.

### Example prompts or workflows

1. An orchestrator runs parallel research agents; when one returns a definitive finding, the others become redundant — it should be able to cancel them rather than wait them out.
2. An orchestrator enforces a time budget: after 15 minutes without completion, cancel and re-dispatch with a more focused prompt.
3. A user correction arrives mid-flight; the orchestrator should abort in-progress sub-agents before acting on the new direction.

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。