branch_start
Fetches origin/main and creates or resets a chatgpt/ branch to start a task, preparing the required branch for repo writes, commits, and pull requests.
Instructions
Start a task: fetch origin/main and check out 'chatgpt/' from it (git checkout -B, so an existing local branch of that name is reset). Must be called before repo_write, commit_push, pr_create or pr_merge, which only work on chatgpt/* branches. Needs network access to origin; returns git's output.
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": {
"name": "<name>"
},
"name": "branch_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Branch name; 'chatgpt/' is prepended if missing. Allowed characters: letters, digits, _ . / -. Example: 'fix-login'. |