TECHNOLOGY

bb threads, projects and environments: three identities

In this article
THE QUICK TAKE

A bb thread identifies the conversation, a project identifies the codebase and an environment identifies where tool operations act on a checkout.

A bb project can contain several conversations and more than one execution environment. Those objects answer different questions: which codebase is involved, which discussion carries the task and which checkout receives operations. Keeping their identities explicit prevents a correct instruction from being applied to the wrong files.

The project is an organizing reference for a codebase. On a machine it must be associated with a usable checkout, and a remote development machine can have its own association. A project name displayed in the sidebar is therefore insufficient to locate an actual file. For a hypothetical repository called atlas, the useful execution record also identifies the machine and checkout path. This is especially important when a developer keeps a personal checkout while bb creates additional worktrees for separate changes.

A thread carries a conversation

The thread holds the task discussion and its continuation. Starting another thread changes the conversation context, but it does not necessarily create a new copy of the source tree. The official orchestration guide distinguishes a reviewer working in the same worktree from a writer in another one. In the atlas example, a reviewer may need the existing patch immediately, while an independent implementation needs its own branch. Both are new conversations, yet they require different filesystem arrangements to perform their jobs.

An environment locates operations

The environment connects the conversation to the place where tools execute. Git worktrees provide separate working directories that remain associated with one repository. Consequently, a filename such as parser.ts only becomes an unambiguous target after its checkout is known. A practical task handoff can name the project, environment and current branch together. These names do not replace a content revision; they tell the next tool where to inspect the artifact before deciding whether the expected change is actually present.

Diagnose a mismatch with a small path check

Suppose an agent reports a passing test, but the developer sees the old implementation. First compare the checkout and branch used for the reported test with the files displayed in the editor. Then inspect whether the change was committed, because another worktree does not receive an uncommitted edit automatically. This is a proposed diagnostic sequence, not a report of a bb defect. The conceptual payoff is that conversation continuity and filesystem continuity can be checked independently instead of explaining every discrepancy as lost model context.

Primary sources

Related engineering context: Choosing an AI development stack; Git state and undo.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles