kilo_create_worktree
Create an isolated git worktree with a new branch to prevent file collisions during parallel coding tasks, enabling independent implementation runs on separate components.
Instructions
Create an isolated git worktree under .kilo/worktrees/<branch_name> (runs git directly, not Kilo). Each worktree gets its own new branch, so parallel kilo_implement runs on independent components never collide on files.
Prefer passing isolation='worktree' directly to kilo_implement instead of calling this separately — one step instead of two, and harder to forget. Use this standalone tool when you need the worktree before deciding what to delegate into it, or want a worktree kilo_implement doesn't manage.
Fails if the branch already exists — pick a fresh branch name per task.
Also registers the new worktree in .kilo/agent-manager.json (best-effort) so it can appear in the Kilo Agent Manager UI. There is no live sync with a running VS Code extension window — see kilo_implement's isolation parameter description for the caveat.
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": {
"branch_name": "<branch_name>"
},
"name": "kilo_create_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_branch | No | Optional base branch (default: current branch) | |
| branch_name | Yes | Name of the new branch and worktree directory | |
| working_directory | No | Base repository directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |