Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Anti Hall Orchestration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/talas9-anti-hall-orchestration)
---
name: anti-hall-orchestration
description: Codex-native orchestration for multi-step or parallel work. Use for several independent subtasks, review/verification, or context bloat.
---
# anti-hall orchestration for Codex
## When to use
Codex-native orchestration discipline for multi-step or parallel work. Use when the task has several independent subtasks, needs review/verification, or risks bloating the main context.
Keep the main agent as coordinator:
- Track every user request and interruption as a task.
- Prioritize highest-risk/highest-priority work first.
- Delegate noisy or long-running command execution to subagents where available.
- Keep subagent outputs compact: `{claim, evidence, verdict, blockers, next}` for substantial findings.
- **Scratchpad is volatile** — the session scratchpad (`/tmp`) does not survive a machine or session restart; anything that must outlive the session (worker reports, evidence, handoffs) goes under the repo's gitignored `.anti-hall/` directory.
- Present findings scannably: tables/**bold**/`code` where they organize; at most a leading status glyph as signal (✅/❌/⚠️), never decoration. This is the DEFAULT shape for user-facing reports, not an occasional flourish — sliding back to bare plain text over a long session is DRIFT, correct it; still don't overdo it (rule K).
- One git writer per worktree: parallel mutators use scratch clones (one each); only one agent stages/commits in a shared checkout.
- Verify delegated claims independently before marking work complete.
- Do not end with open, silently dropped tasks.
Codex model distribution:
| Task shape | Category |
| --- | --- |
| Planning, ambiguous requirements, validation, debate | **frontier** |
| Implementation from an accepted plan | **workhorse** |
| Mechanical command runner / cheap lookup | **fast** |
Where the anti-hall Codex agents are installed (`ah-engine install-codex`), pick one by role: `AH-worker` (code edits), `AH-mechanic` (mechanical or docs edits), `AH-reviewer`, `AH-critic` or `AH-auditor` (read-only review seats), `AH-pr-babysitter` (shepherd one PR to merge), `AH-investigator` (read-only root cause), `AH-verifier` (run one check, report raw output), `AH-shipper` (push, open PR, never merge), `AH-deployer` (a named deploy or release via the project runbook). If they are not installed, use the categories above.
Codex does not have Claude Workflow JS. For 3+ parallel/nested work units, use a flat Codex orchestration plan: dispatch independent agents where available, write progress to a durable file, then synthesize and verify.
## Planning: scenarios and error handling
Before finalizing a plan, simulate the scenarios that could break it: concurrency and ordering (two events crossing), boundaries (empty, one, max, max+1), bad input (malformed, partial, legacy data), failure mid-way (crash, timeout, half-written state), and interaction with other rules and agents. For each scenario state the expected outcome AND its error handling: how the error is detected, what the code does (retry, fail closed, fail open, roll back), what the user or agent sees, and how state recovers. Scale the depth with the blast radius. State explicitly which scenarios you chose not to cover and why. A plan handed to agents carries this section, and the plan reviewer (`AH-critic`) flags a missing one.
## Inside DevSwarm: the workspace is the TOP fan-out tier
If this session is a DevSwarm **Primary** (`DEVSWARM_REPO_ID` set, `DEVSWARM_SOURCE_BRANCH` empty), a subagent is **not** your top decomposition primitive — a **child workspace** is. The shared hooks that inject this doctrine (`verify-first-orch`, `verify-first`, `task-tracker`) and the shared `command-guard.js` heavy-command redirect are the SAME files Codex registers in `codex/hooks/hooks.json`, so this fires for a Codex Primary too.
| Work | Tier |
| --- | --- |
| A workspace-scale **matter** — a feature, a fix, a deploy: multi-step, wants its own branch + worktree, its own agent session and token budget, its own review/merge | **Child workspace**: `~/.anti-hall/ah-engine/bin/ah-engine devswarm spawn <branch> -p "<brief>"` (guard-exempt — run it inline) |
| A read-only lookup, a single command, a scoped investigation, a review/verify pass, a mechanical transform | Subagent / cheap model, as above |
They compose, they do not compete: the Primary splits into workspace-sized chunks; each child then fans out internally (`omx team`/workers on Codex, subagents on Claude) and never spawns grandchildren. A CHILD workspace spawns no workspaces. Heuristic source: `https://github.com/talas9/anti-hall/blob/main/docs/KB-devswarm-hivecontrol.md` §8.1–8.2. **Caveat:** `ah-engine mesh spawn` is agent-agnostic plain Node and invokable from Codex, but the mesh CLI is not yet formally promoted for Codex/OMX (see `anti-hall-devswarm`, "Codex mesh support") — the DOCTRINE and the guard redirect nevertheless fire for a Codex Primary today, because those hooks are shared.