agent_fork
Fork a same-project Claude Code or Codex worker into a new worker with a fresh identity and pane, starting from a copy of the source conversation and brief without inheriting its todo.
Instructions
Fork a same-project Claude Code or Codex worker into a new worker with a new identity and pane. The child starts from a copy of the source conversation, gets a fresh brief, and does not inherit the source todo. Claude Code process-scoped permission grants are not copied and may need approval again.
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": {
"agent_id": "<agent_id>",
"name": "<name>"
},
"name": "agent_fork"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Child working directory; defaults to the source worker's directory. | |
| name | Yes | Required name for the new child worker. | |
| model | No | Model override; defaults to the source worker's model. | |
| effort | No | Reasoning effort override; defaults to the source worker's effort. | |
| layout | No | ||
| todo_id | No | Explicit todo for this new child; absent means no todo link. | |
| agent_id | Yes | Numeric id of the same-project worker to fork. | |
| placement | No | ||
| read_only | No | Read-only mode override; defaults to the source worker's mode. | |
| project_id | No | Different project override. Use ONLY when the user explicitly asks for another project by name; otherwise stay in the current scope, even when results are empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| tail | No | ||
| ready | Yes | ||
| actor_id | Yes | ||
| agent_id | Yes | ||
| session_id | Yes | ||
| hive_notice | No | ||
| tmux_target | Yes | ||
| permission_note | Yes | ||
| forked_from_agent_id | Yes | ||
| forked_from_session_id | Yes |