CommandCodeAI / CommandCodeAI/command-code

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

未关闭
#355 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中描述的核心对话事件循环和模型输出流式处理路径入手,跟踪生成过程中如何处理用户输入。确定所需的中断、问题注入和恢复行为;当用户可以在操作进行期间调用 /btw、获得回答,并恢复或调整原始任务时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

领域
ai, cli
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。