anomalyco / anomalyco/opencode

[FEATURE]: /btw — ask a quick side question without polluting session history

Open
#41,910 1 comment 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 12, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Requested feature

Add a /btw slash command (inspired by Claude Code's /btw) to ask a fast secondary question that does not become a permanent part of the conversation history used for context.

Why

There is no ephemeral question channel today. Side questions that aren't relevant to the task currently get added to the session, inflating the context window and the transcript.

Proposed behavior

  • /btw <question> routes the prompt through the model but marks it non-durable / excluded from session history synthesis (packages/opencode/src/session).
  • The answer is shown inline (or in a toast/dialog) but not stored as a first-class user+assistant message pair.
  • Configurable via a flag so it can be persisted if desired.

Benefits

  • Maintain a lean context window; keep tangential questions out of the record.
  • Quick Q&A without creating noise in exported/compressed sessions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.