Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

review

Assemble review context from a git diff.

Synopsis

bobbin review [OPTIONS] [RANGE] [PATH]

Description

The review command finds the indexed code chunks that overlap with changed lines from a git diff, then expands via temporal coupling. It returns a budget-aware context bundle annotated with which files were changed.

Use this to quickly understand what you need to review after changes are made.

Arguments

ArgumentDescription
RANGECommit range (e.g., HEAD~3..HEAD)
PATHDirectory to search in (default: .)

Options

OptionShortDefaultDescription
--branch <BRANCH>-bCompare branch against main
--stagedOnly staged changes
--budget <LINES>500Maximum lines of context to include
--depth <N>-d1Coupling expansion depth (0 = no coupling)
--content <MODE>-cContent mode: full, preview, none
--repo <NAME>-rFilter coupled files to specific repository

Examples

Review unstaged changes:

bobbin review

Review the last 3 commits:

bobbin review HEAD~3..HEAD

Review staged changes only:

bobbin review --staged

Review a feature branch against main:

bobbin review --branch feature/auth

JSON output:

bobbin review --json

Prerequisites

Requires a bobbin index and a git repository. Run bobbin init and bobbin index first.

See Also

  • context — task-aware context assembly
  • related — find temporally coupled files