Packages
Search packages... ⌘K
Go Package
worktree
Git worktree manager — create, list, remove worktrees with Docker integration
Go Ready SI
Worktree Lifecycle
$ sbx worktree create shredbx-packages
[worktree] branch: worktree-shredbx-packages
[worktree] path: .claude/worktrees/shredbx-packages
[worktree] ports: web=4010 api=5020
[worktree] generating .env.docker
[worktree] created — ready for make run SRC=.claude/worktrees/shredbx-packages
$ sbx worktree list
NAME BRANCH PORTS STATUS
shredbx-packages worktree-shredbx-packages 4010/5020 active
sdlc-decomp worktree-sdlc-decomp 4011/5021 active
About
Manages git worktrees for parallel development with automatic Docker stack isolation. Creates worktrees with independent port allocations, generates .env.docker files, and handles cleanup of associated Docker resources.
Public API
| Name | Kind | Signature |
|---|---|---|
| Manager | type | type Manager struct |
| NewManager | func | func NewManager(repoPath string, cfg Config) *Manager |
| Create | func | func (m *Manager) Create(ctx context.Context, name string, opts ...CreateOption) (*Worktree, error) |
| List | func | func (m *Manager) List(ctx context.Context) ([]Worktree, error) |
| Remove | func | func (m *Manager) Remove(ctx context.Context, name string) error |
Dependencies
Imports (2)
gitcli Go Ready
Git CLI wrapper — branch operations, commit, status, diff with structured output
gitcli-wrapperstructured-outputbranch-ops
6 exports 2 deps
external Go Ready
External process runner — exec.Command wrapper with timeout, output capture, error handling
execprocess-runnertimeoutoutput-capture
5 exports 7 deps
Related Packages
gitcli Go Ready
Git CLI wrapper — branch operations, commit, status, diff with structured output
gitcli-wrapperstructured-outputbranch-ops
6 exports 2 deps
build Go Ready
Build orchestrator — Go/Node/Docker build commands with progress reporting
build-systemmulti-platformdockerprogress
5 exports 2 deps
Source
github.com/shredbx/sbx-core/pkg/worktree
git-worktreeisolationdocker-integrationparallel-dev