con un clic
codeagent
Execute codeagent-wrapper for multi-backend AI code tasks. Supports Codex, Claude, and Gemini backends with file references (@syntax) and structured output.
Menú
Execute codeagent-wrapper for multi-backend AI code tasks. Supports Codex, Claude, and Gemini backends with file references (@syntax) and structured output.
Execute spec tasks one at a time with tmux visibility. Python-based orchestrator with transparent serial execution. Triggers on: rate limit, overnight run, throttled execution, avoid quota exhaustion, sequential mode, slow execution, or user says 'Run sequential orchestration for <spec>'.
Create a Kiro spec for a feature in .kiro/specs create/update feature spec/PRD/RFC—requirements, design doc, and implementation tasks checklist.Trigger on spec/specification/PRD/RFC/tech spec, requirements/user story/acceptance criteria/EARS, design doc/architecture, task breakdown/implementation plan/checklist; 需求/验收/设计/任务.
Sync spec files with code changes. Triggers when modifying code that affects .kiro/specs/*/requirements.md or .kiro/specs/*/design.md. Use after implementing features, fixing bugs, or refactoring that changes behavior documented in specs.
Orchestrate multi-agent workflows from a Kiro spec using codex (code) + Gemini (UI), including dispatch/review/state sync via AGENT_STATE.json + PROJECT_PULSE.md; triggers on user says "Start orchestration from spec at <path>", "Run orchestration for <feature>", or mentions multi-agent execution.
Execute Codex CLI for code analysis, refactoring, and automated code changes. Use when you need to delegate complex code tasks to Codex AI with file references (@syntax) and structured output.
Execute Gemini CLI for AI-powered code analysis and generation. Use when you need to leverage Google's Gemini models for complex reasoning tasks.
| name | codeagent |
| description | Execute codeagent-wrapper for multi-backend AI code tasks. Supports Codex, Claude, and Gemini backends with file references (@syntax) and structured output. |
Execute codeagent-wrapper commands with pluggable AI backends (Codex, Claude, Gemini). Supports file references via @ syntax, parallel task execution with backend selection, and configurable security controls.
HEREDOC syntax (recommended):
codeagent-wrapper - [working_dir] <<'EOF'
<task content here>
EOF
Sanity check (verify CLI is current):
codeagent-wrapper --version
codeagent-wrapper --help
With backend selection:
codeagent-wrapper --backend claude - <<'EOF'
<task content here>
EOF
Simple tasks:
codeagent-wrapper "simple task" [working_dir]
codeagent-wrapper --backend gemini "simple task"
| Backend | Command | Description | Best For |
|---|---|---|---|
| codex | --backend codex | OpenAI Codex (default) | Code implementation, code review, complex analysis, orchestration |
| claude | --backend claude | Anthropic Claude | Simple tasks, documentation, prompts |
| gemini | --backend gemini | Google Gemini | UI/UX development, frontend components |
| opencode | --backend opencode | OpenCode CLI (opencode run) | Agent-driven runs, inner-loop orchestration decisions |
⚠️ opencode backend does NOT support stdin input; prompts are passed as CLI args. Prefer short prompts + @path file references.
Codex (default, recommended for code + review):
Claude:
Gemini (recommended for UI):
For orchestrated workflows, use this backend assignment:
| Task Type | Backend | Reason |
|---|---|---|
| Code Implementation | codex | Primary code implementation agent |
| UI/Frontend | gemini | Specialized for visual components |
| Code Review | codex | Deep analysis, quality assessment |
Backend Switching:
task (required): Task description, supports @file referencesworking_dir (optional): Working directory (default: current)--backend (optional): Select AI backend (codex/claude/gemini, default: codex)
--dangerously-skip-permissions when explicitly enabled--skip-permissions / --dangerously-skip-permissions: For Claude backend only; disables permission prompts (use sparingly)--tmux-session (optional): Enable tmux visualization mode for parallel execution--tmux-attach (optional): Attach to tmux session after completion--tmux-no-main-window (optional): Remove default main window in tmux sessions--window-for (optional): Single-task mode only; route output to an existing task window--state-file (optional): Path to AGENT_STATE.json for real-time status updates--review (optional): Mark tasks as review tasks for state updates--cleanup: Remove old wrapper logsAgent response text here...
---
SESSION_ID: 019a7247-ac9d-71f3-89e2-a823dbd8fd14
# Resume with default backend
codeagent-wrapper resume <session_id> - <<'EOF'
<follow-up task>
EOF
# Resume with specific backend
codeagent-wrapper --backend claude resume <session_id> - <<'EOF'
<follow-up task>
EOF
Default (summary mode - context-efficient):
codeagent-wrapper --parallel <<'EOF'
---TASK---
id: task1
backend: codex
workdir: /path/to/dir
---CONTENT---
task content
---TASK---
id: task2
dependencies: task1
---CONTENT---
dependent task
EOF
Full output mode (for debugging):
codeagent-wrapper --parallel --full-output <<'EOF'
...
EOF
Output Modes:
--full-output): Complete task messages. Use only when debugging specific failures.With per-task backend (orchestration pattern):
codeagent-wrapper --parallel --tmux-session orch-session --state-file AGENT_STATE.json <<'EOF'
---TASK---
id: task1
backend: codex
workdir: /path/to/dir
target_window: backend
---CONTENT---
Implement user authentication module
---TASK---
id: task2
backend: gemini
workdir: /path/to/dir
target_window: frontend
---CONTENT---
Create login form component with validation
---TASK---
id: task3
backend: codex
dependencies: task1, task2
target_window: review
---CONTENT---
Review implementation for security issues
EOF
Task metadata fields:
id: Unique task identifier (required)backend: AI backend to use (codex/claude/gemini)workdir: Working directory for the taskdependencies: Comma-separated task IDs that must complete firsttarget_window: tmux window name for grouping related tasksConcurrency Control:
Set CODEAGENT_MAX_PARALLEL_WORKERS to limit concurrent tasks (default: unlimited).
CODEX_TIMEOUT: Override timeout in milliseconds (default: 7200000 = 2 hours)CODEAGENT_ASCII_MODE: Use ASCII symbols instead of Unicode (PASS/WARN/FAIL)CODEAGENT_SKIP_PERMISSIONS: Control Claude CLI permission checks
true/1 to add --dangerously-skip-permissions (default: disabled)CODEAGENT_OPENCODE_AGENT: OpenCode agent name (used by --backend opencode)CODEAGENT_OPENCODE_MODEL: OpenCode model name (used by --backend opencode)CODEAGENT_MAX_PARALLEL_WORKERS: Limit concurrent tasks in parallel mode (default: unlimited, recommended: 8)🔒 CODEX_BYPASS_SANDBOX=true (Codex backend): bypasses approvals/sandbox in Codex CLI. Use only in trusted environments.
Single Task:
Bash tool parameters:
- command: codeagent-wrapper --backend <backend> - [working_dir] <<'EOF'
<task content>
EOF
- timeout: 7200000
- description: <brief description>
Parallel Tasks:
Bash tool parameters:
- command: codeagent-wrapper --parallel --backend <backend> <<'EOF'
---TASK---
id: task_id
backend: <backend> # Optional, overrides global
workdir: /path
dependencies: dep1, dep2
---CONTENT---
task content
EOF
- timeout: 7200000
- description: <brief description>
CODEAGENT_SKIP_PERMISSIONS=true or pass --skip-permissionsCODEAGENT_MAX_PARALLEL_WORKERS in production to prevent resource exhaustion--tmux-session flag for visual parallel execution--state-file flag for AGENT_STATE.json real-time updatesThis skill integrates with the multi-agent-orchestrator skill for full orchestration workflows:
multi-agent-orchestrator
│
│ dispatch_batch.py
▼
codeagent-wrapper --parallel --tmux-session <session> --state-file AGENT_STATE.json
│
├── codex (code tasks)
├── gemini (UI tasks)
└── codex (review tasks)
See multi-agent-orchestrator skill for complete orchestration workflow.