bb is an agentic IDE that lets users control, customize, and automate a software-development environment through a desktop app, web app, command-line interface, or HTTP API. Developers use it to run work in observable threads that can be steered or handed off to other agents. Its catalogue add-ons provide skills and instructions for working with bb.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add get-bb/bb --skill worktreegit clone --depth 1 https://github.com/get-bb/bbWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/get-bb/bb/worktree)<a href="https://agentmods.dev/skills/get-bb/bb/worktree"><img src="https://agentmods.dev/badge/skills/get-bb/bb/worktree/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/get-bb/bb/worktree"><img src="https://agentmods.dev/badge/skills/get-bb/bb/worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.00940 |
| Opus 5.5 | $0.00013 | $0.00376 |
| Sonnet 5.5 | $0.00007 | $0.00188 |
| Haiku 4.5 | $0.00003 | $0.00094 |
Grade A, and why
worktree scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Warm worktrees
Use bb worktree pool status --json to see which projects keep warm
worktrees, how many are ready or preparing on each checkout, the default base
they sit on, and how many threads took one or missed since the server started.
bb worktree pool status [--json]
bb worktree pool set <project-id> <size> [--host <host-id>] [--json]
bb worktree pool folders <project-id> [<folder>...] [--host <host-id>] [--json]
size is 0 to 4 per checkout; 0 turns the pool off and deletes its idle
worktrees. Without --host it sets the project's count, which every machine
with a checkout keeps. With --host (an id from bb host list) it sets that
machine's own count, which wins over the project's; the size project makes
the machine follow the project's count again. Status JSON gives each checkout's
effective size and its own hostSize (null when it follows the project). Resolve the project id with bb project list. Only turn a pool on
when the user asks for it: each warm worktree runs the project's
.bb-env-setup.sh in the background, and it is replaced every eight hours or
when the default branch is rewritten.
Only new worktree threads on the default base take a warm worktree. bb reads
the remote's current default base with git ls-remote while the title is
generated (falling back to the last fetched base when the remote can't be
reached). A warm worktree at that commit starts the thread without setup; one
behind it is fast-forwarded to that commit and .bb-env-setup.sh runs again
before the thread starts, so the thread always starts on the current base with
setup run against it. Named bases, existing worktrees and restores build a
fresh worktree, and so does a thread that finds no usable warm worktree.
A worktree thread can also branch the project's other git repositories
(bb project folder list <project-id>). List them in the inputs:
bb thread spawn --environment-provider git-worktree --environment-inputs '{"branch":{"kind":"default"},"folders":["/abs/folder"]}'. Each listed folder
gets its own worktree next to the main one, on the thread's branch and from that
repository's default branch, and the thread works in that worktree instead of
the shared folder; folders not listed stay shared. Each new folder worktree
runs its own .bb-env-setup.sh before the main worktree's, in the order
listed, and its .bb-env-teardown.sh after the main one's. Removing the
environment removes every worktree and the branches bb made.
bb worktree pool folders <project-id> <folder>... makes the project's warm
worktrees also branch those folders, with every setup finished; list no
folders to stop. Folders are set per machine, because each machine's
checkout has its own folder paths: pass --host <host-id> when the project
has checkouts on more than one machine, and list that machine's paths
(bb project folder list <project-id> --machine <host-id>). A warm worktree
goes only to a new thread that branches
exactly the same folders, so set the pool's folders to the set threads
usually pick. Others build fresh worktrees; members with other folders are
replaced. On handoff, a folder worktree behind its repository's default
branch is fast-forwarded and its .bb-env-setup.sh runs again, then the main
worktree's; folders that did not move are not set up again.
Warm worktrees are ordinary environments held by the Worktree plugin:
bb environment list --held-by plugin:environment-git-worktree lists them, and
bb thread spawn --environment <id> refuses them. A failed one is deleted and
its error shows in status; refills then wait ten minutes. Deleting the project
or removing the machine removes them like any other environment, and
disabling or uninstalling the Worktree plugin releases them.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago Changed · +29 lines 0918f889a314
- 6d ago First seen · 38 lines · 33 tokens per session scan A 7123cf6dd0e8
worktree is a skill published in the GitHub repository get-bb/bb (6,182 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 940 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.
worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| worktreeget-bb/bb | Skill | 6.2k | today | MIT | A | 33 | Claude Code, Codex |
| configuring-grovebearlike/Grove | Skill | 9 | 12d ago | MIT | B | 92 | Claude Code |
| develop-inspection-featureexplyt/spring-plugin | Skill | 170 | 5d ago | Apache-2.0 | A | 103 | Claude Code, Codex |
| working-in-grovebearlike/Grove | Skill | 9 | 12d ago | MIT | A | 100 | Claude Code |
| orca-clisutchan/Agent-Skills-Hub | Skill | 3 | 6d ago | MIT | A | 14 | Claude Code, Codex |
| conventional-commitJanDeDobbeleer/oh-my-posh | Skill | 24k | 4d ago | MIT | A | 26 | Claude Code, Codex |
| Dotfilesdanielmiessler/LifeOS | Skill | 20k | 11d ago | MIT | A | 125 | Claude Code, Codex |