Feature Request: `/btw` — Interrupt & Ask Mid-Operation
還沒有人認領這個 Issue。
評估
研究方向
從 issue 中描述的核心對話事件迴圈和模型輸出串流路徑開始,追蹤生成期間如何處理使用者輸入。確定所需的中斷、問題注入和恢復行為;當使用者可以在操作進行期間呼叫 /btw、取得回答,並恢復或調整原始任務時,即視為完成。
由索引模型根據 Issue 內容生成。
描述
What is /btw?
Both Claude CLI and QWEN CLI have a /btw feature. While the model is mid-operation (generating code, reviewing files, exploring a codebase), the user can type /btw to interrupt the model and ask a question about what it's cur$
The model then:
- Pauses its current output
- Answers the user's question
- Resumes (or adjusts) what it was doing
Use Cases
- Model is writing a long refactor, user realizes a clarification is needed →
/btw"wait, does this handle the edge case where X is null?" - Model is exploring a codebase →
/btw"also check the auth middleware" - Model is reviewing code →
/btw"what does that function actually do?"
Why Extensions Can't Add This
None of Command Code's user-extension mechanisms can implement /btw:
| Mechanism | Why It Can't |
|---|---|
| Hooks | Only fire before/after tool calls, not during model output |
| Skills | Instruction sets, can't modify the stdin/stdout event loop |
| Agents | Behavior configs, can't add new interaction modes |
| MCP | External tool connections, unrelated to chat loop |
| Slash commands | No user-defined slash commands supported |
/btw requires changes to the core conversation event loop: listening for a special input during model output streaming, interrupting the stream, injecting context, and resuming. This is CLI-internal plumbing.
Request
Please add a /btw (or similar interrupt-and-ask) slash command that lets users pause the model mid-operation to ask clarifying questions.
- 主要語言
- 沒有語言資料
- 星號
- 4k
- 分支
- 350
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CommandCodeAI/command-code 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
CommandCodeAI/command-code#855 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
CommandCodeAI/command-code#841 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
CommandCodeAI/command-code#655 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
CommandCodeAI/command-code#608 ·
-
難度 3/5 1-2 天 新手友好度 70/100
CommandCodeAI/command-code#893 ·
查看 CommandCodeAI/command-code 的全部 Issue
相似的 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
JuliusBrussee/caveman#1102 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
use-agent-os/agent-os#3263 ·
-
[Bug]: context-limit error parsing has no pattern for llama.cpp's "context size (N tokens)" phrasing 未關閉area/compression area/local-models area/sessions comp/agent duplicate P2 sweeper:risk-session-state type/bug
難度 2/5 1-3 小時 新手友好度 82/100
NousResearch/hermes-agent#117793 · 1 則留言 ·
-
possible bug
難度 2/5 1-3 小時 新手友好度 88/100
Mintplex-Labs/anything-llm#6415 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 82/100