codex-teamlisted
Install: claude install-skill boshu2/agentops
# Codex Team
The lead orchestrates, Codex agents execute. Each agent gets one focused task. The team lead prevents file conflicts before spawning — the orchestrator IS the lock manager.
For verified Codex CLI commands and flags, see `../shared/references/codex-cli-verified-commands.md` when this skill falls back to `$swarm`.
## When to Use
- You have 2+ tasks (bug fixes, implementations, refactors)
- Tasks are well-scoped with clear instructions
- You want Codex execution with predictable isolation
- You may be in Claude or Codex runtime (skill auto-selects backend)
**Don't use when:** Tasks need tight shared-state coordination. Use `$swarm` for dependency-heavy wave orchestration.
## Backend Selection (MANDATORY)
Select backend in this order:
1. `spawn_agent` available -> **Codex sub-agents** (preferred; enabled by default in current Codex)
2. Codex CLI available -> **Codex CLI via background shell commands** (`codex exec ...`)
3. None of the above -> fall back to `$swarm`
## Pre-Flight (CLI backend only)
```
# REQUIRED before spawning with Codex CLI backend
if ! command -v codex > /dev/null 2>&1; then
echo "Codex CLI not found. Install: npm i -g @openai/codex"
# Fallback: use $swarm
fi
# Model availability test (uses the user's configured Codex default)
if ! codex exec --full-auto -C "$(pwd)" "echo ok" > /dev/null 2>&1; then
echo "Default Codex model unavailable. Falling back to $swarm."
fi
```
## Canonical Command
```bash
codex exec --full-auto -C "$(pwd