You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add /btw command for side-channel queries without conversation pollution #740
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:
Triggers the full agent / chat loop.
Appends user and assistant messages to the primary conversation history, inflating prompt token costs on all subsequent turns.
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
Add btw command inspired by #740 and #741 but using the overlay panel…
Add btw command inspired by #740 and #741 but using the overlay panel…