refs/dolt/data, so issue sync is
separate from Git branch commits.
Current Model
All worktrees in the same repository use the same beads workspace unless you override discovery withBEADS_DIR.
bddiscovers the repository’s.beadsdirectory from linked worktrees.- Issue changes are stored in Dolt, not committed to the current Git branch.
- Cross-clone sync uses
bd dolt pullandbd dolt push. - No
sync.branchor beads-managed Git worktree is required.
Basic Usage
Initialize beads once in the repository:External Beads Workspace
If you want a separate issue-tracker repository shared by many code worktrees, pointBEADS_DIR at that workspace:
BEADS_DIR, bd dolt push and bd dolt pull target the
external beads workspace, not the code repository.
Hooks
Git hooks installed by beads are worktree-aware. If hooks are stale or mention removed legacy sync commands, refresh them:Legacy Cleanup
Older beads versions had an experimentalsync.branch workflow that created
hidden worktrees such as .git/beads-worktrees/<branch>/. That workflow has
been removed.
If a legacy checkout cannot switch branches because a beads-created worktree
still holds the branch, remove the stale worktree records:
Troubleshooting
Database Not Found In A Worktree
Check that the main repository has a.beads directory and that the worktree
belongs to that repository:
bd init from the main
repository.
Multiple .beads Directories
If a worktree has its own accidental .beads directory, remove or archive the
extra copy after confirming it does not contain unique issue data. By default,
worktrees should share the repository workspace.
Concurrent Writers
For ordinary single-user worktree use, run commands directly. For true multi-writer workflows across machines or agents, sync frequently withbd dolt pull and bd dolt push, and coordinate through the tracker to avoid
working the same issue concurrently.
See Also
- Protected Branches - protected branch behavior
- Git Integration - general Git integration guide
- Multi-Repo Migration Guide - multi-workspace patterns