batch-codex
Execute multiple code tasks simultaneously for batch processing, including mass refactoring, automated code transformations, and repetitive operations using atomic task delegation.
Instructions
Delegate multiple atomic tasks to Codex for batch processing. Ideal for repetitive operations, mass refactoring, and automated code transformations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | Array of atomic tasks to delegate to Codex | |
| model | No | Model to use: gpt-5-codex, gpt-5, o3, o4-mini, codex-1, codex-mini-latest, gpt-4.1 | |
| sandbox | No | Sandbox mode: read-only, workspace-write, danger-full-access | workspace-write |
| parallel | No | Execute tasks in parallel (experimental) | |
| stopOnError | No | Stop execution if any task fails | |
| timeout | No | Maximum execution time per task in milliseconds | |
| workingDir | No | Working directory for execution | |
| search | No | Enable web search for all tasks (activates web_search_request feature) | |
| oss | No | Use local Ollama server | |
| enableFeatures | No | Enable feature flags | |
| disableFeatures | No | Disable feature flags |
Input Schema (JSON Schema)
{
"properties": {
"disableFeatures": {
"description": "Disable feature flags",
"items": {
"type": "string"
},
"type": "array"
},
"enableFeatures": {
"description": "Enable feature flags",
"items": {
"type": "string"
},
"type": "array"
},
"model": {
"description": "Model to use: gpt-5-codex, gpt-5, o3, o4-mini, codex-1, codex-mini-latest, gpt-4.1",
"type": "string"
},
"oss": {
"description": "Use local Ollama server",
"type": "boolean"
},
"parallel": {
"default": false,
"description": "Execute tasks in parallel (experimental)",
"type": "boolean"
},
"sandbox": {
"default": "workspace-write",
"description": "Sandbox mode: read-only, workspace-write, danger-full-access",
"type": "string"
},
"search": {
"description": "Enable web search for all tasks (activates web_search_request feature)",
"type": "boolean"
},
"stopOnError": {
"default": true,
"description": "Stop execution if any task fails",
"type": "boolean"
},
"tasks": {
"description": "Array of atomic tasks to delegate to Codex",
"items": {
"additionalProperties": false,
"properties": {
"priority": {
"default": "normal",
"description": "Task priority",
"enum": [
"high",
"normal",
"low"
],
"type": "string"
},
"target": {
"description": "Target files/directories (use @ syntax)",
"type": "string"
},
"task": {
"description": "Atomic task description",
"type": "string"
}
},
"required": [
"task"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"timeout": {
"description": "Maximum execution time per task in milliseconds",
"type": "number"
},
"workingDir": {
"description": "Working directory for execution",
"type": "string"
}
},
"required": [
"tasks"
],
"type": "object"
}