CommandCodeAI / CommandCodeAI/command-code

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

Abierto
#355 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

p2
Lenguaje dominante
Sin datos de lenguaje
Estrellas
4k
Forks
350
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza por el bucle central de eventos de conversación y la ruta de streaming de salida del modelo descritos en el issue, y sigue cómo se procesa la entrada del usuario durante la generación. Determina el comportamiento necesario de interrupción, inyección de preguntas y reanudación; se considera terminado cuando un usuario puede invocar /btw durante una operación, recibir una respuesta y reanudar o ajustar la tarea original.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Área
ai, cli
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.