Machine Balance

Get it for macOS

Start each new thread on the connected machine with the most free CPU and memory, without picking one yourself. The new-thread screen moves to the best machine for the project, and a machine you pick by hand stays picked until you send. A Machines settings section shows each machine's live load and score, and lets you set a machine to Prefer, Normal, Less often or Manual only. Agents get a bb balance command to spawn child threads on the least-busy machine. Needs BB 0.50 or newer and at least two connected machines to have an effect. Nothing leaves your machines.


New threads go to the machine with the most free CPU and memory, weighted by a preference you set per machine. It is the rule T3 Code uses to balance threads across machines.

What you get

  • Every new thread starts on the best machine for its project. The composer opens on bb's usual machine, then moves to the chosen one. A machine you pick by hand stays picked until you send the thread, and a draft that points at a folder on one machine stays on that machine.
  • A Machines section in this plugin's settings with each machine's live load, its score, the machine chosen right now, and a preference: Prefer, Normal, Less often, or Manual only.
  • A bb balance command and a bundled skill, so agents can spawn child threads on the least-busy machine: bb balance pick --project <id> prints the machine to pass to bb thread spawn --machine.

How it works

Each connected machine samples its own CPU (two readings 200 ms apart) and available memory, cached for five seconds. A machine scores preference weight × cores × idle CPU × free memory. It is skipped when it is offline, lacks a source for the project, is set to Manual only, does not answer within three seconds, has CPU at 95% or more, or has 5% or less memory free. When no machine qualifies, the composer stays on bb's usual machine and a notice names the reasons.

Preferences are stored in this plugin's storage on the bb server. Nothing leaves your machines.

Requirements

BB 0.50 or newer, and at least two connected machines to have an effect.

More from Jonathan M.

HunchSee the prompt you were about to type as grey text in the empty composer, and press Tab to take it. After each finished turn, a throwaway copy of the thread's own Claude Code or Codex session predicts your next message, so the suggestion draws on everything the agent saw, tool output included. Show up to three suggestions as numbered cards above the composer instead, or both. Nothing is sent or written to the thread until you send the draft yourself. Each prediction is one model request on your own Claude or ChatGPT sign-in, and its cost grows with the session; threads on other providers use the stored transcript and the model you pick.NewProject PickerStart a new thread in any project from the keyboard with Cmd+N. Type to filter projects by name or path, with your most recently active projects at the top. Press Enter or Cmd+1 to Cmd+9 to open that project's new-thread screen with the prompt focused. BB's own New thread shortcut moves to Cmd+Shift+O while the plugin runs and returns to Cmd+N when you disable it.NewShelvesKeep the threads that need you in view, and file finished ones without archiving or deleting them. Threads sort onto three shelves: Working for running agents, Active for recent results, errors and questions, and Settled for filed conversations. Snooze hides a thread until later, and Settle has Undo. Threads settle on their own after seven days of inactivity or when their pull request is merged or closed, while running work, unanswered questions and pins keep a thread in place. Replaces BB's thread list in the sidebar while it is selected. Automatic settling reads pull request state from BB's GitHub PR Status plugin, and leaves a thread in place while that state is unknown.NewThread On BranchRight-click any thread and pick "New thread on <branch>" to start another thread on the same branch. It opens the new-thread screen with that thread's project and environment already selected and the prompt focused. The item is in every thread menu, and you can pin it as a row quick action.New

More in Environments & Cloud 20

Create and manage where threads run, locally or in the cloud.

View all