pleach_branch
Create a new tracked session branch from an existing session by copying its transcript under a new id. Returns the session id and claude --resume command to resume work.
Instructions
Fork a session into a new tracked branch (copies the transcript under a new id, exactly like pleach branch). Returns the new session id and the claude --resume command to start working on it.
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": {
"session": "<session>"
},
"name": "pleach_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory to scope to. Omit to use the current project. | |
| name | No | Label for the new branch. | |
| session | Yes | Session id, or any unambiguous prefix (like git). |