CommandCodeAI / CommandCodeAI/command-code
Feature Request: `/btw` — Interrupt & Ask Mid-Operation
Nadie ha tomado este issue todavía.
- 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:
- 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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- 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