Skip to content

feat(commands): add /btw command for quick side-channel queries - #741

Closed
philippeback wants to merge 7 commits into
cecli-dev:mainfrom
philippeback:pr/btw_command
Closed

philippeback wants to merge 7 commits into
cecli-dev:mainfrom
philippeback:pr/btw_command

Conversation

@philippeback

Copy link
Copy Markdown

Resolves #740

Summary of Changes

Adds the /btw ("by the way") command for fast, side-channel queries without conversation history pollution or tool calls.

Details:

  • cecli/commands/btw.py (BtwCommand):
    • Implements /btw <question> and /btw [-n|--no-context] <question>.
    • Queries coder.main_model.simple_send_with_retries directly without mutating DONE or CUR in ConversationManager.
    • Context-aware by default: Attaches minimal workspace metadata (git branch, workspace root), filenames in chat context, and up to 4 truncated recent turns so users can ask follow-ups.
    • Isolated mode (-n / --no-context): Sends only the raw question with a clean system prompt.
    • Formats output cleanly with a distinct /btw header banner.
  • cecli/commands/__init__.py:
    • Registered BtwCommand in CommandRegistry.

dwash96 added a commit that referenced this pull request Nov 12, 2026
@dwash96 dwash96 mentioned this pull request Nov 12, 2026
dwash96 added a commit that referenced this pull request Nov 12, 2026
@dwash96 dwash96 closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants