CommandCodeAI / CommandCodeAI/command-code

Feature Request: `/btw` — Interrupt & Ask Mid-Operation

オープン
#355 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

p2
主要言語
言語のデータがありません
スター
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:

  1. Pauses its current output
  2. Answers the user's question
  3. 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Issue に記載されている会話のコアイベントループとモデル出力のストリーミングパスから始め、生成中にユーザー入力がどのように処理されるかを追跡します。割り込み、質問の注入、再開に必要な動作を明確にします。ユーザーが処理の途中で /btw を呼び出し、回答を受け取り、元のタスクを再開または調整できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
ai, cli
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。