Manage a task's worktree
codex_worktreeCommit completed task work to its isolated branch or remove the worktree, optionally discarding uncommitted changes with force.
Instructions
Commit or remove the isolated git worktree of a task delegated with isolation "worktree". "commit" records the work on the task branch and reports the merge command; the router never merges into the user branch itself. "remove" tears the worktree down and refuses to discard uncommitted work unless forced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | For "remove": discard uncommitted changes in the worktree. | |
| action | Yes | "commit" the work onto the task branch, or "remove" the worktree. | |
| taskId | Yes | Task whose worktree to act on. | |
| message | No | Commit message. Defaults to the task description. |