An OpenCode plugin that creates and manages git worktrees using worktrunk (wt).
- worktrunk (
wtin PATH) - OpenCode with plugin support
Creates a new git worktree via wt switch -c <branch> and opens a forked session in OpenCode pointing at it.
| Arg | Required | Description |
|---|---|---|
branch |
yes | Branch name (e.g. feature/my-feature) |
baseBranch |
no | Base branch to create from (defaults to HEAD) |
Removes a worktree and its branch via wt remove <branch>.
| Arg | Required | Description |
|---|---|---|
branch |
yes | Branch name of the worktree to delete |
The plugin automatically updates the worktrunk status marker for the current worktree:
| Marker | Meaning |
|---|---|
| 🤖 | Agent is executing a tool |
| 💬 | Session is idle / waiting |
These show up in wt list and any worktrunk-aware status line.
Add to your OpenCode config:
{
"plugin": ["bscholar-tt/opencode-worktrunk"]
}