Skip to content

Add /btw command for side-channel queries without conversation pollution #740

Closed

Description

@philippeback

Problem

When working in an active coding or agent session, developers often need to ask a quick, one-off side question (e.g., explaining a regex, asking about a git command, clarifying syntax, or recalling an error from a previous turn).

Currently, asking any question in the prompt input:

  1. Triggers the full agent / chat loop.
  2. Appends user and assistant messages to the primary conversation history, inflating prompt token costs on all subsequent turns.
  3. May inadvertently trigger tool calls or file modifications when the user only intended to ask a quick question.

Proposed Solution

Introduce the /btw ("by the way") command for lightweight, side-channel queries:

  • Zero conversation pollution: Sends queries directly via model.simple_send_with_retries without adding messages to DONE or CUR in ConversationManager.
  • Zero tool execution: The model is instructed to answer directly and concisely without attempting tool calls or file edits.
  • Smart context by default (/btw <question>):
    • Automatically includes minimal workspace metadata (root, git branch).
    • Lists the names of files currently in chat/editable context (without dumping file contents).
    • Includes up to 4 recent conversation turns (truncated and filtered to avoid token bloat) so context-dependent queries work seamlessly.
  • Isolated query mode (/btw -n <question> or /btw --no-context <question>):
    • Completely strips all context, sending only a bare question with a clean system prompt.
  • Dedicated console/TUI output: Renders the answer directly with a distinctive /btw header banner.

Activity

  1. added 2 commits that reference this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions