Claude Code Mode

JonniKAgents & ProvidersNot reviewed by BB
Get it for macOS

Start chosen Claude Code threads in Code Mode, where Claude writes scripts that call tools and filter their output. A sticky composer button opts in the threads you send from the app, and the bb claude-code-mode spawn command does it for agents and scripts. A badge above the composer marks a Code Mode thread, and resumed sessions keep the mode. Needs Claude Code CLI 2.1.323 or later, a 5.5 or Fable 5.2 model and macOS or Linux; the mode is experimental, lacks Claude in Chrome, computer use and Remote Control, and the plugin routes every Claude Code launch on the bb server's machine through its wrapper script.


What you get

  • Per-thread opt-in to Claude Code's experimental Code Mode, in which Claude writes JavaScript that calls tools: parallel calls, chaining, and output filtered before it reaches the model.
  • A sticky </> button in the New thread toolbar. It shows when Claude Code is selected, is disabled with a reason for unsupported models, and applies to first messages that a person sends from the app.
  • A command for agents and scripts: bb claude-code-mode spawn --model claude-sonnet-5-5 --prompt-file brief.md. Plain bb thread spawn never enables Code Mode.
  • A </> Claude Code Mode badge above the composer of a thread in Code Mode.
  • Resumed sessions keep their mode. The model id stays unchanged.

When it helps

Work with many or noisy tool calls. In our own runs with Sonnet 5.5, a 40-file scan used 82k input tokens instead of 301k (2 model turns instead of 5), and a noisy test-and-fix task used 171k instead of 240k. These figures are indicative, not a guarantee. Most input is prompt-cache reads, so the cost saving is smaller than the token saving.

Requirements

  • bb 0.50 or later, and Claude Code CLI 2.1.323 or later, signed in.
  • Opus 5.5, Sonnet 5.5, Haiku 5.5 or Fable 5.2.
  • macOS or Linux with bash and python3. Windows is not supported.
  • Threads that run on the same machine as the bb server.

Limits

  • Code Mode is an experimental Claude Code feature, and the plugin uses experimental bb plugin APIs. Either can change in any release.
  • Code Mode threads do not have Claude in Chrome, computer use or Remote Control.
  • The mode is fixed at the first launch.
  • While enabled, the plugin routes every Claude Code launch on the bb server's machine through its wrapper script.
  • A Code Mode thread resumes only while the plugin is active.
  • Other machines get no wrapper, so Code Mode is not applied there, although an opted-in thread can still show the badge.
  • Compact layouts hide the toolbar button.

This is an independent community plugin, not made or endorsed by Anthropic.

More from JonniK

Bang ShellRun a shell command from a thread's composer and hand the agent the command and its output in one message. Use it when the agent's sandbox or permission mode blocks a command that needs your secrets or access: the agent proposes it, you run it, and the agent only sees the output. Send with Mod+Alt+Enter or Send menu → Run in terminal; the command runs once in the thread's own environment, on whichever machine the session uses, local or remote. You can also highlight a command in an agent's answer and pick Run in terminal next to Add to chat. Fenced shell code blocks in an answer also get a one-click Run in terminal button; python blocks get it once you turn on the runPythonBlocks setting. The message waits in the queue while the command runs, then reaches the agent as a sh block and an output block, so its next answer starts from the real result. Commands that outlast the wait (30 seconds by default) keep running in the thread's Terminal panel, and pagers are off so git log and git diff print in full. Messages from agents, other plugins and bb thread tell never run a command; commands run with your account's full rights, outside the agent's permission mode. Requires bb 0.49+ and a POSIX shell (macOS or Linux; Windows is not supported).NewBottom PanelPuts bb's App panel, with its terminal, browser tabs and previews, below the chat like an IDE, and lets you resize it by dragging the divider. Select text in the terminal and press Cmd+L (Ctrl+L on Windows and Linux) to drop it into the chat composer without sending it, also on non-Latin layouts. One header button switches back to the native right panel. Needs no account or external service.NewSession MRsShows the merge and pull requests a thread opened, with live state and pipeline status, in the thread context card and Info tab. It finds each GitLab MR or GitHub PR that the thread's own commands created (glab mr create, gh pr create, git push -o merge_request.create), lists it with a Draft, Open, Merged or Closed chip and a pass, fail or running pipeline mark, and opens it on click. Rows refresh every minute and from a refresh button; agents get bb session-mrs list and bb session-mrs status <url>. Read-only: it needs glab and/or gh logged in on the machine that runs the BB server.NewSkill DialRun your go-to skills in one tap from chips beside the send button, instead of typing them through the / menu each time. Each chip either drops its skill, with preset arguments, into your draft or sends it right away. Select text in the chat or in your draft first, and the chip passes it to the skill as the argument. Add as many chips as you need in the plugin settings; they scroll sideways, fold into one toggle, and shrink to emoji on phones. Needs no account or external service.New

More in Agents & Providers 93

Add, choose, configure, route, or coordinate who runs a thread.

View all