aiworkhub_agent_launch_task
Launches one validated local Claude or Codex worker process for a pending task card, after dual approval checks on writes, runner, topic, adapter, and collision guard.
Instructions
DUAL-GATED: launch one exact local Claude/Codex worker process.
Requires both AIWORKHUB_ALLOW_LAUNCH=1 and
AIWORKHUB_ALLOW_WRITES=1. The task card, runner, topic, pending state,
allowed-write scope, collision guard, adapter, and process limit are all
validated before a shell-free child process can start.
timeout_seconds is retained only as non-enforcing compatibility
metadata; this API never installs a provider wall-clock deadline.
runner, topic and adapter_id are optional because the server
already owns them: the card carries runner and topic (the launcher refused
any value that differed, so typing them asserted rather than decided), and
the adapter is a pure function of the runner narrowed to the first
pinnable, policy-allowed entry in canonical tuple order. Omit them and the
reply's launch_identity_derivation records exactly what was derived;
pass them and the explicit value wins and is validated as before. The
manager identity codex is never a worker runner.
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": {
"task_id": "<task_id>"
},
"name": "aiworkhub_agent_launch_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model override for the worker; omit to use the adapter default. | |
| topic | No | Topic of the card; omit to use the card's topic (a differing value is refused). | |
| runner | No | Runner that works the card; omit to use the card's runner (a differing value is refused). The manager identity codex is never a worker runner. | |
| task_id | Yes | Id of the pending task card to launch a worker for. | |
| adapter_id | No | Adapter that runs the worker; omit to derive it from the runner (first pinnable, policy-allowed adapter). An explicit value wins and is validated. | |
| owner_prompt | No | Optional extra instructions from the launching owner for the worker; default empty. | |
| timeout_seconds | No | Compatibility metadata only, default 7200; no provider wall-clock deadline is enforced and the value is echoed in the reply. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||