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

Offen
#355 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Bereich
ai, cli

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.

Beschreibung

p2

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.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
4k
Forks
350
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommandCodeAI/command-code

Alle Issues in CommandCodeAI/command-code

Ähnliche Issues

Weitere Issues zu AI Infra & Agents

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.