shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ System Integration/ CLI Tools/ Worktree
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

NameKindSignature
Managertypetype Manager struct
NewManagerfuncfunc NewManager(repoPath string, cfg Config) *Manager
Createfuncfunc (m *Manager) Create(ctx context.Context, name string, opts ...CreateOption) (*Worktree, error)
Listfuncfunc (m *Manager) List(ctx context.Context) ([]Worktree, error)
Removefuncfunc (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
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |