CommandCodeAI / CommandCodeAI/command-code
Feature Request: `/btw` — Interrupt & Ask Mid-Operation
還沒有人認領這個 Issue。
- 主要語言
- 沒有語言資料
- 星號
- 4k
- 分支
- 350
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中描述的核心對話事件迴圈和模型輸出串流路徑開始,追蹤生成期間如何處理使用者輸入。確定所需的中斷、問題注入和恢復行為;當使用者可以在操作進行期間呼叫 /btw、取得回答,並恢復或調整原始任務時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 領域
- ai, cli
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100