docs/tools/btw.md
/btw lets you ask a quick side question about the current session without
turning that question into normal conversation history. /side is an alias.
It is modeled after Claude Code's /btw behavior, but adapted to OpenClaw's
Gateway and multi-channel architecture.
When you send:
/btw what changed?
OpenClaw:
The important mental model is:
/btw does not:
chat.history,It is intentionally ephemeral.
BTW uses the current session as background context only.
If the main run is currently active, OpenClaw snapshots the current message state and includes the in-flight main prompt as background context, while explicitly telling the model:
That keeps BTW isolated from the main run while still making it aware of what the session is about.
BTW is not delivered as a normal assistant transcript message.
At the Gateway protocol level:
chat eventchat.side_result eventThis separation is intentional. If BTW reused the normal chat event path,
clients would treat it like regular conversation history.
Because BTW uses a separate live event and is not replayed from
chat.history, it disappears after reload.
In TUI, BTW is rendered inline in the current session view, but it remains ephemeral:
Enter or EscOn channels like Telegram, WhatsApp, and Discord, BTW is delivered as a clearly labeled one-off reply because those surfaces do not have a local ephemeral overlay concept.
The answer is still treated as a side result, not normal session history.
The Gateway emits BTW correctly as chat.side_result, and BTW is not included
in chat.history, so the persistence contract is already correct for web.
The current Control UI still needs a dedicated chat.side_result consumer to
render BTW live in the browser. Until that client-side support lands, BTW is a
Gateway-level feature with full TUI and external-channel behavior, but not yet
a complete browser UX.
Use /btw when you want:
Examples:
/btw what file are we editing?
/side what changed while the main run continued?
/btw what does this error mean?
/btw summarize the current task in one sentence
/btw what is 17 * 19?
Do not use /btw when you want the answer to become part of the session's
future working context.
In that case, ask normally in the main session instead of using BTW.