git worktree + your excluded files.
AI agents work best with personalized settings (.claude/, .codex/, IDE configs). When running multiple agents in isolated worktrees, git worktree doesn't copy these excluded files. bytree does.
| Method | Command |
|---|---|
| Go | go install github.com/bytaesu/bytree/cmd/bytree@latest |
| npm | npm install -g bytree |
| Homebrew | brew install bytaesu/tap/bytree |
| Binary | GitHub Releases |
First, define local settings you want copied across worktrees in .git/info/exclude:
/.claude/
/.codex/
/.github/prompts/
bytree reads these patterns to decide what to copy.
-
Create a worktree with excluded files copied automatically.
bytree add feature-x bytree add issue-123 --base develop
Worktrees are created at
../<repo>-bytree/<name>on branchbytree/<name>. -
Re-sync excluded files into the current worktree.
cd path/to/worktree bytree sync -
List all bytree-managed worktrees.
-
Remove a worktree and its branch.
-
Show patterns in
.git/info/exclude.
Reads .git/info/exclude (not .gitignore), finds matching files, copies them. That's it.
MIT