Sub-agent zoom (focus)
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the feature or problem you'd like to solve
Ability to make a sub-agent directly observable or interactable.
### Proposed solution
"/focus [|session]" temporarily scopes the session to the context of the specified sub-agent allowing the user to observe it's activities and/or interact with the agent.
The nature of sub-agents means that interaction might be unadvisable, but an ability to checkpoint or rollback an agent would be incredibly helpful.
### Example prompts or workflows
- Sub-agent invokes a command incorrectly and is then consumed with addressing an artificial issue:
- - invokes "python" instead of using the virtualenv / uv, compounds by trying to "pip install", ...
- - invokes "gcc" instead of "clang",
- - tries to submit bash expressions to powershell,
- Sub-agent appears to run for 45+ minutes with no obvious indications of activity, but parent agent says it's "working",
- - allows user to see what it is that it's doing, diagnose a faulty loop
- Sub-agent invokes a unit test that spams output but is actually stuck,
- - parent agents typically see this as motion/progress,
- Sub-agent is performing commands that generate large volumes of text, eviscerating model's Attention,
- - hard to recognize/diagnose when you can't see the sub-agent progress,
- Two sub-agents with overlapping objectives (e.g concurrently run cmake) introducing a non-reproducible effect and one's Attention focuses on diagnosis,
- - user can diagnose/cancel the individual faulty agent,
- - if interaction is possible, user can correct or rewind the agent and avoid losing a long-running context,
### Additional context
_No response_
貢獻指南
研究方向
尚未識別任何檔案、測試或進入點。先追蹤 sub-agent 工作階段和 CLI 命令的表示方式,接著評估 /focus 工作流程可以在哪裡觀察某個 agent 或與其互動。完成項目應包含明確的 focus、取消或 rollback 行為,以及針對並行或長時間執行之 sub-agents 的測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- ai, cli
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100