worktree
Create, list, and remove isolated Git working directories so dispatched tasks run in a sandbox, never touching the live checkout.
Instructions
Git-worktree sandbox skill: run dispatched work in an isolated worktree so it never touches the live checkout. action=create|list|remove. create/remove are two-chamber-governed; list is read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"repo_path": "<repo_path>"
},
"name": "worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | create: base ref (default HEAD) | |
| path | No | create: explicit worktree dir (optional) | |
| force | No | remove: allow uncommitted changes | |
| action | Yes | ||
| branch | No | create: new branch name | |
| repo_path | Yes | path to the git repo | |
| delete_branch | No | remove: also delete this branch | |
| worktree_path | No | remove: worktree dir to remove |