Get it for macOS

Keep agents moving while tests, builds, servers and watchers run in the background. Track each command in its thread, read live output, stop its process group and clear it when finished. Tasks survive plugin reloads, and successful or failed jobs can wake the agent with one batched completion message. Requires BB 0.43+, Plugin SDK 0.5.9+ and a Unix execution machine; commands run through `/bin/sh` with no external account.


Overview

View source

Lets your BB agents run long-lived tests, builds, servers and watchers without blocking a turn.

Native task management

The task tool starts a non-interactive /bin/sh command on the thread's execution machine and returns immediately. Its pid identifies the detached supervisor and process group. Commands inherit machine variables and safe BB thread context variables. Agents can list jobs, stream output with byte cursors, read a bounded tail, stop a process group and clear finished jobs. Standard output and standard error share one ordered log, and ANSI control sequences are removed before output reaches the agent. Live tails intentionally include the unfinished current line; cursor-based reads wait for complete lines except when a line reaches the 50 KB cap. Those lines return UTF-8-safe chunks with continuation cursors.

Tasks appear in BB's own interface: native tool rows, a per-thread Tasks panel, optional live cards in assistant messages and completion toasts. An opt-in setting nudges agents to prefer Shell tasks over a provider's built-in background-task runner while retaining the provider runner for interactive commands or when task is unavailable. Successful and failed tasks are held for at least three seconds and until quiet for one second, then sent as one agent-only JSON follow-up that starts an idle thread or waits durably behind the active turn. Later completions merge into that waiting follow-up. A full final read, complete tail or clear suppresses a pending notice for that task; list and task cards do not. A detached supervisor keeps running tasks and result capture alive across plugin reloads. Pending notices, failed stops and deletion cleanup are retried from durable state. Visible running output refreshes every 2 seconds, and cards recover missed state changes after reconnecting.

Origins

The core actions and stop behaviour come from Pi's former task extension. BB adds a configurable tail line limit, a smaller 50-line default and clearer output metadata.

More from Victor Aremu

BB BoxGive each thread its own Linux, Windows or macOS computer, or an iPhone or Android device, shared with its agent. You and the agent use the same desktop or terminal in BB's panel, and the agent waits while you have control. On the backends that support it, a snapshot saves a box before a risky change, and a restore with an undo or a fork brings it back. Boxes run on Docker, microsandbox, Proxmox, Tart on your Macs, or your own machines over SSH; Hetzner Cloud, Namespace and boat.dev need an account and bill you for what boxes use. Not a sandbox: BB Box assumes one trusted user.NewBesideTurns the bb sidebar into an inbox where threads keep their place and finished work waits on shelves until it has news. Snooze, settle or mute a thread from its row or from bb's thread menu, and it comes back when it finishes, fails or asks you something. Child threads nest under their parent, and pinned threads drag into your own order. Shelf menus act in bulk with Undo. Optional rules settle threads after you read them, archive long-settled work, or ask a self-hosted decision model whether news needs you. Needs bb 0.46 or later.NewMachine MonitorCheck CPU, GPU, memory, disk, network and battery on any of your bb machines from one sidebar panel. Pick the bb server, your own machines or BB Box boxes from a searchable list, and each opens with live charts and its five busiest processes. On Apple silicon Macs it adds CPU and GPU temperature and power, read by a small bundled helper that needs no root. Tailscale name, address and tags sit at the bottom, each with a copy button. Works on Linux, macOS and WSL, and optional in-app alerts warn when the bb server stays overloaded.NewSticky PromptKeeps your message pinned at the top of the chat, so you always know which question a long reply answers. As soon as your message scrolls up, a two-line copy stays above the reply, drawn with BB's own Markdown, and your next message pushes it away. Click it to jump back to the full message, even in a long thread where BB has unloaded it. Images show as thumbnails, short turns are left alone, and messages from agents and BB notices are skipped unless you turn them on. Runs in the BB app with your own session and needs no account or external service.New

More in Command Line 11

Work with shells and command-line programs inside bb.

View all