workz exposes all its operations as MCP tools so AI agents can manage worktrees directly.
claude mcp add workz -- workz mcpOr add manually to your Claude Code config (~/.claude/settings.json):
{
"mcpServers": {
"workz": {
"command": "workz",
"args": ["mcp"]
}
}
}| Tool | Description |
|---|---|
workz_start |
Create a worktree with auto-synced deps and env |
workz_list |
List all worktrees as JSON |
workz_status |
Rich status: branch, dirty state, last commit |
workz_sync |
Sync symlinks/env into an existing worktree |
workz_done |
Remove a worktree (with optional force) |
workz_conflicts |
Detect files modified in multiple worktrees |
To run parallel agents on independent tasks:
- Use
workz_startto create isolated worktrees for each task - Each agent gets its own branch, deps, env — no interference
- Use
workz_conflictsto check for overlapping file changes before merging - Use
workz_doneto clean up when finished