spawn_agents_parallel
Spawn concurrent Codex agents, each with a specific prompt, to execute tasks in parallel and collect results.
Instructions
Spawn multiple Codex agents in parallel.
Each spawned agent reuses the server's current working directory
(``os.getcwd()``).
Args:
agents: List of agent specs, each with a 'prompt' entry.
Example: [
{"prompt": "Create math.md"},
{"prompt": "Create story.md"}
]
Returns:
List of results with 'index', 'output', and optional 'error' fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agents | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |