anomalyco / anomalyco/opencode
[FEATURE]: /btw — ask a quick side question without polluting session history
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.