opencode-wt
v1.6.4
Published
Create git worktrees and open opencode in them
Downloads
2,127
Readme
opencode-wt
Creates git worktrees and opens opencode in them.
Usage
# 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).
Flags
-h, --help Show help message
-v, --version Show version number