---
title: "Create worktree"
method: POST
path: "/experimental/worktree"
---

# Create worktree

`POST /experimental/worktree`

Create a new git worktree for the current project and run any configured startup scripts.

## Query parameters

- `directory` string
- `workspace` string

## Request body

- WorktreeCreateInput
  - `name` string
  - `startCommand` string — Additional startup script to run after the project's start command

## Response `200`

Worktree created

- Worktree
  - `name` string, required
  - `branch` string, required
  - `directory` string, required

## Other responses

- `400` — Bad request

---

[API](https://skmtc.dev/isogonic/apis/codeplane.md) · [All operations](https://skmtc.dev/isogonic/apis/codeplane/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/isogonic/codeplane/revisions/e787ab2e6692/schema)
