CommandCodeAI / CommandCodeAI/command-code
Feature Request: `/btw` — Interrupt & Ask Mid-Operation
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue に記載されている会話のコアイベントループとモデル出力のストリーミングパスから始め、生成中にユーザー入力がどのように処理されるかを追跡します。割り込み、質問の注入、再開に必要な動作を明確にします。ユーザーが処理の途中で /btw を呼び出し、回答を受け取り、元のタスクを再開または調整できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- ai, cli
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100