OpenCode plugin for interactive, UI-friendly worktree-based issue workflows.
- GitHub Issue Integration: Parse and fetch issue details from GitHub URLs
- Smart Branch Naming: Automatically infer branch prefixes from issue labels
- Interactive Confirmation: User-friendly workflow with confirmation prompts
- Isolated Sessions: Create child sessions in dedicated worktrees
- Auto-start Option: Automatically spawn agents to work on issues
- Configurable: Fully customizable via JSON configuration
npm install -sven1103/opencode-worktree-uiAdd to your opencode.json:
{
"plugin": ["@sven1103/opencode-worktree-ui"]
}/issue-workflow https://github.com/owner/repo/issues/123
issue_workflow_start- Start workflow with GitHub issue URLissue_workflow_confirm- Confirm and execute worktree creationissue_workflow_status- Check current workflow status
Create .opencode/issue-workflow.json in your project:
{
"branchPrefix": {
"bug": "fix/",
"fix": "fix/",
"documentation": "docs/",
"feature": "feat/",
"chore": "chore/"
},
"baseBranch": "main",
"worktreeRoot": ".worktrees/$REPO",
"autoStart": false
}| Option | Type | Default | Description |
|---|---|---|---|
branchPrefix |
object | see below | Map of labels to branch prefixes |
baseBranch |
string | "main" | Base branch for worktree |
worktreeRoot |
string | ".worktrees/$REPO" | Where to create worktrees |
autoStart |
boolean | false | Start agent automatically after confirmation |
bug,fix→fix/feature→feat/documentation→docs/chore→chore/
- User runs
/issue-workflow <url> - Plugin fetches issue details via GitHub CLI
- Plugin generates branch name from title + labels
- User confirms with "yes" or alternative branch name
- Worktree is created with
git worktree add - Child session is spawned in worktree directory
- Agent starts working (if
autoStart: true)
- Git repository with configured remote
- GitHub CLI (
gh) authenticated for fetching issue details - Git version with worktree support
# Install dependencies
npm install
# Build
npm run build
# Test
npm testMIT