Create isolated local coding peer
agent_create_peerExplicitly creates one peer coding Agent bound to the current authorized account, device, AI Session, workflow, and Workspace. This tool always starts the existing Agent Runtime in a new git_worktree; it never performs cloud inference or automatically decomposes a single-Agent task. Returns peer_id for agent_send_peer and agent_id for the existing agent_status/agent_result/agent_stop tools. Shared Files Advisory is coordination-only, not a lock or overwrite permission. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.
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": {
"workspace_id": "<workspace_id>",
"provider_id": "<provider_id>"
},
"name": "agent_create_peer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | No | Target computer device_id. Omit when only one computer is paired. | |
| device_name | No | Computer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer. | |
| provider_id | Yes | Provider id returned by agent_list, such as codex. | |
| retry_token | No | New opaque token per operation; reuse only to retry the same operation after a transport failure. No user content. | |
| workflow_id | No | Optional workflow id; pass together with ai_session_id. | |
| shared_files | No | Optional relative files this peer expects to edit, for advisory overlap detection only. Examples: Cargo.toml, package.json, wrangler.toml, schema/api/release files. | |
| workspace_id | Yes | Required Workspace id returned by open_workspace. The peer source project and device are derived from this authorized Workspace. | |
| ai_session_id | No | Optional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||