pg_sub_worktree
Create and manage isolated module sub-worktrees, run in-memory 3-way merge conflict preflight, then merge or clean up safely.
Instructions
Manage isolated module sub-worktrees with in-memory git merge-tree --write-tree 3-way conflict preflight.
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": {
"sub_action": "<sub_action>"
},
"name": "pg_sub_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg | No | Merge commit message when sub_action='merge'. | |
| slot | No | Workspace slot name (optional if only one slot is open or `--slot` default is set). | |
| sub_id | No | Sub-worktree identifier (required except for 'list'). | |
| cleanup | No | Remove sub-worktree after clean merge (default: true). | |
| sub_action | Yes |