CommandCodeAI / CommandCodeAI/command-code
Feature Request: `/btw` — Interrupt & Ask Mid-Operation
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 4k
- Forks
- 350
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne beim im Issue beschriebenen zentralen Ereignis-Loop der Unterhaltung und dem Streaming-Pfad für die Modellausgabe und verfolge, wie Benutzereingaben während der Generierung verarbeitet werden. Ermittle das erforderliche Verhalten für Unterbrechung, das Einschleusen von Fragen und das Fortsetzen; abgeschlossen ist die Arbeit, wenn ein Benutzer während des laufenden Vorgangs /btw aufrufen, eine Antwort erhalten und die ursprüngliche Aufgabe fortsetzen oder anpassen kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- ai, cli
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100