Open Orchestrator provides slash commands for Claude Code, allowing you to manage worktrees directly from your Claude Code sessions.
Available Commands
| Command | Description |
|---|---|
/worktree | Main worktree management command |
/wt-create | Quick worktree creation |
/wt-list | List all worktrees |
/wt-cleanup | Clean up stale worktrees |
/worktree
The main worktree command with subcommands for full management.
Usage in Claude Code
/worktree new "Add user authentication"
/worktree list
/worktree switch feat/auth
/worktree delete feat/oldSubcommands
new "task"- Create a new worktree from a task descriptionlist- List all worktreesswitch <name>- Switch to a worktreedelete <name>- Delete a worktree
/wt-create
Quick shortcut for creating worktrees.
Usage
/wt-create "Add login form"This creates a worktree with default settings (auto-named branch, tmux, AI tool, dependencies).
With Template
/wt-create "Fix login timeout" -t bugfix
/wt-create "Build REST API" --ai-tool opencode/wt-list
List all worktrees with their status.
Usage
/wt-listOutput:
Worktrees:
main [main] -
feat/user-authentication [feat/user-auth..] working
feat/build-rest-api [feat/build-res..] idle/wt-cleanup
Clean up stale worktrees.
Preview Mode
/wt-cleanup --dry-runActually Clean
/wt-cleanupSetup Requirements
1. Permissions
Add to your .claude/settings.json:
{
"permissions": {
"allow": [
"Bash(owt:*)",
"Bash(git worktree:*)",
"Bash(tmux:*)"
]
}
}2. Commands Directory
Copy or symlink the commands:
# From open-orchestrator repo
cp -r .claude/commands ~/.claude/commands/open-orchestratorOr use the skill installer:
owt skill installCommand Files
The slash commands are defined in markdown files under .claude/commands/:
.claude/commands/
├── worktree.md # /worktree command
├── wt-create.md # /wt-create shortcut
├── wt-list.md # /wt-list shortcut
└── wt-cleanup.md # /wt-cleanup shortcutExample Command File
wt-create.md:
---
allowed-tools: Bash
description: Create a new git worktree with full environment setup
---
# Create Worktree
$ARGUMENTS - Task description (e.g., "Add user authentication")
## Context
- Current branch: !`git branch --show-current`
- Existing worktrees: !`git worktree list`
## Instructions
1. Run: `owt new $ARGUMENTS`
2. Report the created path and statusBest Practices
1. Use Shortcuts for Common Tasks
/wt-create "Quick fix for login"Instead of:
/worktree new "Quick fix for login"2. Check Status Before Creating
/wt-list
# See what exists
/wt-create "New feature"3. Clean Up Regularly
/wt-cleanup --dry-run
# Review, then
/wt-cleanup4. Combine with Send
After creating a worktree in Claude Code, use the terminal to send tasks:
owt send feat/quick-fix-login "implement the fix"Troubleshooting
Command Not Found
Ensure commands are installed:
ls ~/.claude/commands/
# Or
owt skill statusPermission Denied
Check .claude/settings.json has the correct permissions.
Wrong Directory
Slash commands run in your current Claude Code session directory. Ensure you're in a git repository.