jvogan/a-fable-of-codexes
About
Claude Code skills that make Claude (Fable) the conductor of AI worker fleets: many parallel OpenAI Codex workers plus Opus design agents, organized into campaigns, waves, squads, and review gates.
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
A Fable of Codexes
A Claude Code skill that makes Claude the conductor of a fleet of OpenAI Codex workers. Claude Fable 5.2 plans the work, dispatches parallel Codex workers on GPT-6.2 Sol to implement it, and verifies every branch before it merges. Each Sol worker can run its own team of Sol and GPT-6.1 Terra agents, sized to the task, and wide Terra sweeps take bulk read-only work. Claude Opus 5.5 agents handle design and lead squads of Sol workers, Claude Sonnet 5.5 agents survey the codebase, and Claude Haiku 5.5 agents take quick lookups.
The conductor's context stays free for planning and judgment because workers spend their own context on implementation and routine verification, and the conductor reads their reports rather than their transcripts. Git worktrees let many writers work in parallel without collisions, and campaign state lives in the repo, so a later session resumes mid-campaign without setup.
The fleet
| Role | Model and effort | Job |
|---|---|---|
| Conductor | Claude Fable 5.2, high (or Opus 5.5, high) | Plans, dispatches, integrates, and verifies. Writes no feature code. |
| Worker | Codex gpt-6.2-sol, high |
Implements a task in its own worktree, alone or with a leaf team sized to the task. |
| Leaf | feature: Sol high; critic: Sol high, read-only; grunt: gpt-6.1-terra xhigh |
Takes one slice of a Sol worker's task: judgment work, review of a sibling's diff, or mechanical work. |
| Design agent and squad lead | Claude Opus 5.5, high or xhigh | Designs UI/UX and reviews design; leads a squad of Sol workers toward one integration branch. |
| Consultant and arbiter | Codex gpt-6.2-sol, high or xhigh, read-only |
Reviews Claude diffs, answers architecture questions, judges bake-offs. |
| Deep consult | Codex gpt-6.2-astra, xhigh, read-only |
Answers one rare, very hard question; runs only when you ask for an exceptional effort. |
| Scout | Claude Sonnet 5.5, high or xhigh, or Codex gpt-6.1-terra xhigh, one or many in parallel; read-only |
Surveys the codebase, sweeps it package by package, and researches current APIs. |
| Lookup | Claude Haiku 5.5, high, read-only | Finds a definition or its call sites, or scans a worker's event stream for errors, so the conductor's context stays free. |
| Other-family reviewers (optional) | agy Gemini 3.8 Flash high, grok Grok 4.7 xhigh, muse Muse Spark 1.3 Contributor max |
Give read-only second opinions from another model family. |
Without Codex, Sonnet 5.5 workers take the implementation role, Opus 5.5 takes tasks that need design judgment, and every other part of the campaign stays the same.
flowchart TD
C[Fable 5.2 conductor] -->|task briefs| W["Sol workers ×N<br>with leaf teams,<br>one worktree each"]
C -->|sub-goal briefs| L[Opus 5.5 squad lead]
L --> LS["Sol workers ×N<br>with leaf teams,<br>one worktree each"]
LS --> I[campaign/<squad>/integration<br>branch]
W --> V[Conductor merges,<br>re-verifies]
I --> V
V --> M[(main)]
What the skill does
The skill is campaign-conductor.
- Bootstrap. First use in a repo copies templates into
docs/campaign-hq/and the three leaf role files into.codex/agents/, then adds a pointer to the project's CLAUDE.md so later sessions resume from repo state. - Routing. Defaults follow the fleet table. Say "send tests to Opus" or
"run reviews at xhigh" and the conductor writes it to
preferences.md, where it persists across sessions. - Sizing. Small projects get a plan written directly. Large or unfamiliar ones get a parallel read-only survey first, and you sign off on the plan before any writer starts.
- Parallel waves. Each writer gets one worktree and branch. A fleet table tracks every dispatch with its session id, and each wave runs dispatch, collect, integrate, verify. A finished Codex session resumes with its context for small corrections.
- Leaf teams. A Sol worker spawns
feature(bounded judgment),critic(read-only review), andgrunt(mechanical, on Terra) leaves by role name. The role files carry the model and effort, so briefs name roles and a new model generation needs a one-line edit per file. - Squads. An Opus 5.5 lead runs several Sol workers toward one integration branch. Depth stops at conductor, lead, Sol worker, leaf; leaves never spawn.
- Review gates. Every worker returns a fixed-schema JSON report. Codex reviews Claude diffs and Claude reviews Codex diffs, and high-stakes tasks can run as a bake-off judged on diffs and test output.
- Permissions. The conductor sets the Codex sandbox, network access, and Claude permission mode once at kickoff and records them, so no wave stops on a permission prompt.
- Memory. The conductor logs dispatch outcomes and your corrections in
LEARNINGS.mdand compacts them into standing rules once the log passes roughly 40 lines.
examples/campaign-hq/ shows the state files
mid-campaign, including a worker brief, a report, and the routing file.
Campaign state lives in the project:
docs/campaign-hq/
├── CAMPAIGN.md plan, phases, fleet table
├── LEARNINGS.md standing rules + dispatch log
├── preferences.md worker routing, permission envelope
├── briefs/ one file per dispatch
├── out/ collected worker reports (event streams gitignored)
└── schemas/ worker-result.json, scout-result.json
Install
npx skills add jvogan/a-fable-of-codexes --skill campaign-conductor
or manually:
git clone --depth 1 https://github.com/jvogan/a-fable-of-codexes.git /tmp/afoc
cp -r /tmp/afoc/skills/campaign-conductor ~/.claude/skills/
Use
In any project, tell Claude:
start a campaign
Claude creates docs/campaign-hq/, sizes the plan to the project, and starts
dispatching workers. Every later session in that repo resumes the campaign.
Direct it in plain language:
- "add a phase for the billing migration"
- "send tests to Opus from now on" (saved to
preferences.md) - "think as hard as you can and get an Astra second opinion on this race
condition" (one read-only
gpt-6.2-astrarun atxhigh) - "status" (reads the plan and fleet table)
Requirements
Claude Code, with Fable 5.2 or Opus 5.5 as the session model. The skill uses the Agent and Workflow tools and runs Claude subagents on Opus 5.5, Sonnet 5.5, and Haiku 5.5.
OpenAI Codex CLI (github.com/openai/codex). Install with
npm install -g @openai/codexorbrew install codex, then runcodex login. ChatGPT-plan auth draws on plan usage, and limits vary by plan; API-key auth is billed per token. Size waves to your limits. The skill passes model and effort on every dispatch; to match it outside campaigns, set the default in~/.codex/config.toml:model = "gpt-6.2-sol" model_reasoning_effort = "high"Effort runs
low,medium,high,xhigh,max,ultra, and the skill routes everything athighorxhigh. It runsmaxorultraonly when you ask;ultraalso delegates to subagents on its own.Codex loads the leaf role files only in a trusted project, and trust also lets the project's MCP servers run commands outside the sandbox. The conductor asks at preflight before running
codex exec --trust.Other agent CLIs (optional). Each adds a model family for read-only second opinions and signs in with OAuth: the Antigravity CLI
agy(antigravity.google) ongemini-3.8-flash-high, Grok Buildgrokongrok-4.7atxhigh, and Meta's Muse Codemuseonmuse-spark-1.3-contributoratmax. Without them, cross-model review runs between Claude and Codex.Codex plugin for Claude Code (optional, github.com/openai/codex-plugin-cc). Adds
/codex:review,/codex:adversarial-review, and background-delegation commands for one-off tasks outside a campaign:/plugin marketplace add openai/codex-plugin-cc /plugin install codex@openai-codex
Changing models
Model names live in four places. When a new generation ships, update them together:
skills/campaign-conductor/SKILL.md: the frontmatter, the fleet summary, and the routing table.skills/campaign-conductor/references/: the prose, shape tables, and command examples in all four files.skills/campaign-conductor/assets/: the role files andpreferences.md.examples/campaign-hq/and this README, including the fleet diagram.
Then run git grep -n '<old name>' and confirm it prints nothing.
assets/patterns.svg names model families without versions, so it changes
only when a family joins or leaves the fleet.
A campaign already running keeps its own copies in .codex/agents/ and
docs/campaign-hq/preferences.md; edit those to move it to new models.
Validation
python3 scripts/validate.py
npx --yes skills add . --list
validate.py checks each skill against the
Agent Skills spec (frontmatter fields,
name format, description length), plus this repo's 500-line body limit,
relative links in each SKILL.md, the required keys in every Codex role file,
and additionalProperties: false on every object in a report schema, which
Codex requires. The skills command confirms the installer can find the
package.
License
MIT
Explore related projects
Loading…