From harness-floor-codex
Codex CLI port of /agent-all (intent → plan → wave-dispatch → gate → PR). Phase 3 dispatch path is gated on Codex's `agent` hook type — until that hook is GA-confirmed, the port falls back to sequential `.codex/skills/<role>` invocations. See plugins/harness-floor/skills/agent-all/SKILL.md for the source-of-truth pipeline.
How this skill is triggered — by the user, by Claude, or both
Slash command
/harness-floor-codex:agent-all-codexThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Runs the cost-unrestricted multi-agent pipeline using Codex CLI
lib/ask-user-adapter.mjslib/break-resolver.mjslib/codex-agent-dispatch.mjslib/codex-agent-wait.mjslib/dispatch-strategy.mjslib/host-invoker.mjslib/sequential-dispatch.mjsphases/0-preflight.mdphases/1-intent.mdphases/2-plan.mdphases/3-dispatch.mdphases/4-gate.mdphases/5-pr.mdphases/6-loop.mdreferences/porting-notes.mdtemplates/agent-all.config.json.hbstemplates/codex-hooks-snippet.toml.hbstemplates/pr-body.md.hbsRuns the cost-unrestricted multi-agent pipeline using Codex CLI primitives. Two dispatch paths supported, chosen at preflight:
agent hook type — fires on
parent-→-subagent invocation, enables true parallel fan-out..codex/skills/<role>/SKILL.md
per wave task. Slower but works on any Codex CLI version./agent-all-codex "add user signup form"
/agent-all-codex docs/tasks/12-fix-login.md
/agent-all-codex "fix flaky test" --loop --max-iter=5
/agent-all-codex docs/tasks/x.md --no-pr --wave-size=large
Same as Claude Code: --loop, --max-iter=<N>, --max-cost=<USD>,
--wave-size=small|medium|large, --no-pr, --no-brainstorm,
--resume, --force, --yes,
--break-condition=<spec>, --reconfigure.
When --loop is set, Phase 0 prompts the user interactively (via Codex's
ask_user) for the break-condition preset (test-auto / visual-qa /
Custom shell / Composite) and offers to save the choice to
.agent-all.json. Use --break-condition=<spec> to skip the prompt for
one invocation, or --reconfigure to re-prompt even when a non-default
value already lives in config.
Additional Codex-specific:
--dispatch=agent-hook|sequential — force the dispatch strategy
(default: auto-detect at preflight).| Phase | File | Purpose |
|---|---|---|
| 0 | phases/0-preflight.md | git + .codex/skills + config + dispatch-strategy detect |
| 1 | phases/1-intent.md | brainstorm (chat) OR load task file |
| 2 | phases/2-plan.md | draft plan via apply_patch |
| 3 | phases/3-dispatch.md | agent hook fan-out OR sequential skill invocations |
| 4 | phases/4-gate.md | dispatch reviewer (same strategy as Phase 3) |
| 5 | phases/5-pr.md | shell_command: git branch push + gh pr create |
| 6 | phases/6-loop.md | breakCondition shell + state.iter re-entry |
.agent-all-state.json. Atomic write via apply_patch (temp + rename).agent hook (or sequential skill calls); Phase 4 same; Phase 5 uses shell_command.--loop, Phase 6 is a no-op.--max-iter clamped to 50; --max-cost enforced after each wave via Codex's session-cost API (if exposed; else best-effort).| Action | Codex primitive |
|---|---|
| Read file | implicit (model reads file directly) |
| Write file | apply_patch |
| Shell (one-shot) | shell_command |
| Shell (long-running) | exec_command (keeps PTY) |
| Dispatch subagent | agent hook (preferred) OR invoke .codex/skills/<role>/SKILL.md |
| Prompt user | ask_user |
| Persist plan/state | apply_patch to .agent-all-state.json |
Same as Claude port. Additional Codex-specific notes:
agent hook not registered AND --dispatch=agent-hook was forced:
abort with Codex agent hook unavailable; rerun without --dispatch=agent-hook..codex/skills/<role>/SKILL.md missing for any wave's task role:
abort with /codex-init --theme=floor required to seed skill roster.shell_command timeout (default 30s) extended to 300s for git push.Print summary: phases completed, iters, cost, PR URL, dispatch strategy used. Exit 0/1/2/3 per spec.
references/porting-notes.md — agent hook research status + sequential fallback rationaleplugins/harness-floor/skills/agent-all/SKILL.md — source-of-truth pipelinenpx claudepluginhub kim-song-jun/agent-skill --plugin harness-floor-codexProvides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.