herdr_worktree_create
Create a git worktree and open it as a herdr workspace, returning workspace and pane IDs for immediate use.
Instructions
Create a git worktree and open it as a herdr workspace. Returns workspace_id, root_pane.pane_id (for agent.start), and worktree info. The pane may need retries for agent.start if 'not an available shell'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository directory (optional, defaults to worktree detection). | |
| base | No | Base ref to create the branch from (e.g. main, master). | |
| path | Yes | Where to create the worktree directory. | |
| focus | No | Focus the new workspace after creation. | |
| label | No | Workspace label (optional). | |
| branch | Yes | Branch to create/checkout in the worktree. |