Claude Code: /btw Side-Chain Chats for Mid-Task Questions

Claude Code

Claude Code v2.1.72 introduces the /btw (By The Way) command, enabling ephemeral side-chain conversations while a main task is running. The feature spawns a lightweight read-only agent that reuses the parent conversation's prompt cache, letting developers ask quick questions, get clarifications, or verify facts without polluting the main context or interrupting in-progress work. Anthropic claims up to 50% token savings for sessions where frequent mid-task questions are common.


/btw Side-Chain Chats

Claude Code v2.1.72 introduces /btw, a new slash command that lets developers ask side questions while Claude is actively working on a task. Typing /btw [question] spawns an ephemeral agent that answers the query in a temporary overlay, without appending the exchange to the main conversation history.

How It Works

The /btw command creates an isolated side-chain conversation that has full visibility into the current session context. It operates in read-only mode — it cannot edit files, run commands, or trigger tools. Answers appear in an overlay panel and disappear when closed.

Critically, the ephemeral agent reuses the parent conversation's prompt cache, so the marginal cost of a /btw query is minimal compared to a regular message. Since the exchange is excluded from the main thread, subsequent messages don't pay the input-token cost of carrying those Q&A pairs forward.

Token and Cost Savings

For sessions where 40–50% of exchanges are lightweight mid-task questions (factual lookups, style preferences, quick confirmations), Anthropic estimates up to 50% reduction in cumulative token costs. The savings scale with session length and model tier.

Best Use Cases

  • Quick factual lookups and verifications
  • Clarifying function behavior or return types
  • Confirming code style or output format preferences
  • Injecting constraints or infrastructure context
  • Sanity-checking assumptions without derailing the main task

Limitations

  • Read-only: no file editing, no command execution, no tool access
  • Limited to existing session context
  • Answers do not persist in conversation history
  • Not suited for multi-step debugging or consequential decisions that need future reference
  • Should not replace CLAUDE.md for persistent cross-session context