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

Aperta
#355 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Ambito
ai, cli

Direzione di ricerca

Parti dal loop centrale degli eventi della conversazione e dal percorso di streaming dell’output del modello descritti nell’issue, quindi traccia come viene gestito l’input dell’utente durante la generazione. Determina il comportamento necessario per l’interruzione, l’iniezione di domande e la ripresa; il lavoro è completo quando un utente può invocare /btw durante un’operazione, ricevere una risposta e riprendere o modificare l’attività originale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
4k
Fork
350
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommandCodeAI/command-code

Tutte le issue di CommandCodeAI/command-code

Issue simili

Altre issue su AI Infra & Agents

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.