batch-codex
Delegate multiple atomic tasks to Codex for batch processing, enabling repetitive operations, mass refactoring, and automated code transformations.
Instructions
Delegate multiple atomic tasks to Codex for batch processing. Ideal for repetitive operations, mass refactoring, and automated code transformations
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": {
"tasks": "<tasks>"
},
"name": "batch-codex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oss | No | Use local Ollama server | |
| model | No | Optional model override applied to every task. Known: gpt-6.1-sol, gpt-6-astra, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna. If omitted, uses your Codex CLI default (~/.codex/config.toml). | |
| tasks | Yes | Array of atomic tasks to delegate to Codex | |
| search | No | Enable live web search for all tasks using the native --search flag | |
| sandbox | No | Sandbox mode: read-only, workspace-write, danger-full-access | workspace-write |
| timeout | No | Maximum execution time per task in milliseconds | |
| parallel | No | Execute independent tasks in parallel | |
| workingDir | No | Working directory for execution | |
| concurrency | No | Maximum parallel Codex processes when parallel=true. Default: min(task count, 4) | |
| stopOnError | No | Stop execution if any task fails | |
| enableFeatures | No | Enable feature flags | |
| disableFeatures | No | Disable feature flags |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| failed | Yes | ||
| results | Yes | ||
| skipped | Yes | ||
| successful | Yes |