Creates git worktrees and opens opencode in them.
# Create a detached worktree
npx opencode-wt
# Create a worktree for an issue (requires a GitHub repository)
npx opencode-wt 42
# Create a worktree for an issue with a specific agent
npx opencode-wt 42 my-agentissueNumber— creates a branch namedissue-<number>and opens opencode in it. Requires the repository to be hosted on GitHub and theghCLI to be installed.agent— optional, passes--agentto opencode
Worktrees are created in .worktrees/ at the git root (auto-added to .gitignore).
-h, --help Show help message
-v, --version Show version number