﻿# bb review threads: sharing a worktree with a read-only reviewer

A shared-worktree bb reviewer needs a stable revision pair and a read-only role; findings should stay connected to the revision that was actually examined.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/bb-readonly-reviewer-shared-worktree/
Language: en

A review agent needs to see the change it is reviewing. In bb, placing the reviewer in the same worktree gives it immediate access to the relevant files, while a read-only assignment keeps responsibility for edits with the author. These are complementary choices about visibility and action.

## Choose the artifact before starting the review

The orchestration guide uses a committed change and a recorded base revision to define the reviewer’s task. That gives the review a stable comparison instead of an ambiguous instruction to examine whatever is currently different. In a hypothetical parser fix, the base identifies the previous implementation and the new commit identifies the proposed behavior. The reviewer can inspect the diff and supporting tests together. A conversation summary may explain the intent, but the revision pair establishes which actual artifact the finding concerns.

## A shared directory makes visibility immediate

A reviewer in the same worktree sees the author’s current files. This is helpful when the purpose is inspection, because there is no separate checkout to update before the review begins. Git worktrees are working directories, not conversation snapshots: sharing one therefore shares mutable file state. The bb guide explicitly advises read-only review when agents share files. The practical arrangement is a writer who finishes a bounded patch and a reviewer who examines it without simultaneously modifying the object being evaluated.

## Read-only is an assignment with an execution boundary

The review prompt should state that the reviewer returns findings rather than editing files or committing. The configured agent permissions remain a separate control layer. This explanation does not claim that wording alone creates an operating-system access restriction. For a small example, ask the reviewer to identify whether a parser rejects an invalid separator and to name the relevant test. A useful answer points to the exact location and consequence, giving the author a concrete issue to reproduce and repair.

## Reconnect findings to the final revision

After the author fixes a reported issue, the repository contains a new artifact. The final report should distinguish the reviewed revision from the corrected revision and record how the correction was checked. Repeating the reviewer’s old verdict would lose that relationship. This does not require endless review cycles: the published bb workflow deliberately bounds its review round. The useful mechanism is traceability from a finding to an edit and its evidence, so the developer can inspect both the original concern and the resulting change.

## Primary sources

- [Orchestrate your coding agents](https://getbb.app/guides/orchestrate-coding-agents).

- [Git worktree documentation](https://git-scm.com/docs/git-worktree).

- [bb changelog](https://getbb.app/changelog).

Related engineering context: [Choosing an AI development stack](/journal/local-ai-app-stack-selection/); [Git state and undo](/journal/aider-git-dirty-tree-undo/).
