factory-arena
Run N parallel CLI candidates across Codex, Claude, and Antigravity (`agy`) on the same task, cross-judge against a rubric, pick a base, graft winning ideas…
by watt-mind★ 25 GitHub stars
Install factory-arena in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Factory Arena
Multi-harness competitive bakeoff and grafting workflow, adapted from pstack's arena for Factory's CLI harnesses (codex, claude, agy, pi, cursor) and node-local ~/.factory/arena.yaml configuration.
Open a checklist with one entry per phase (Frame, Fan out, Cross-judge, Pick, Graft, Verify) before launching anything.
Per-Node Configuration (~/.factory/arena.yaml)
factory arena reads ~/.factory/arena.yaml on the active node (falling back to $FACTORY_ROOT/config/arena.example.yaml):
defaultprofile (3 runners across OpenAI / Anthropic / Google):gpt-sol(codex,gpt-6.2-sol),fable(claude,claude-fable-5-2),carbon(agy,gemini-4-carbon-high).fullprofile (all 5 contenders): addsopus(claude,claude-opus-5-5) andargon(agy,gemini-4-argon-high).cross_judge_pool: ordered read-only judges; selects the first ready judge from a different vendor family than the calling harness (fablecounts asanthropic).- Missing CLIs fall back via
fallback:or drop the seat cleanly; at leastmin_runners(default2) must succeed.
Inspect the node's resolved roster anytime with:
factory arena config
Phase A: Frame (in the calling session)
- State the artifact each candidate must produce.
- Derive the rubric — 3–6 concrete, gradeable criteria for this task. Write it to
$TMPDIR/arena-<id>/rubric.md. Candidates do not see the rubric. - Write the shared prompt to
$TMPDIR/arena-<id>/prompt.md(task, constraints, grounding paths). - Choose isolation mode:
sandbox(default):$TMPDIR/factory-arena-*/candidate-<name>/for designs, specs, audits, or standalone files.worktree: detached git worktrees (--mode worktree --repo-dir <repo> --base origin/<base>) for multi-file code changes. Never share a writable checkout or touchgit stash.
Backend Selection (T3Code-native vs. CLI Runner)
Choose the execution backend based on the active session's tools:
- T3Code-native (preferred when inside T3Code): If T3Code Orchestrator MCP tools (
orchestrator_capabilities,delegate_task,task_cancel,t3_thread_wait,t3_thread_read) are available in the session:- Call
orchestrator_capabilitiesonce per thread before the firstdelegate_taskto resolve the node's configured models (gpt-6.2-sol,claude-fable-5-2,claude-opus-5-5,gemini-4-carbon-high,gemini-4-argon-high) matching~/.factory/arena.yaml. - Spawn all contenders and the read-only cross-judge via
delegate_task(mode: "async") — never usecreate_threadsort3_thread_launchfor worker/arena fan-out (those create top-level threads, reserved for explicit user requests). - Follow
delegate_task'snextbehavior (end your turn for reactive wakeup; never polltask_statusor loop ont3_thread_wait). - Every new review or re-check is a fresh
delegate_task, nevert3_thread_sendto a finished child; cancel replaced or extra delegates withtask_cancel(nevert3_thread_interrupt). delegate_taskonly acceptsisolation: "shared" | "worktree"(noworktreePathparam). For repos withbin/worktree-up.sh, runbin/worktree-up.sh <ISSUE-ID>sequentially in the coordinator and passisolation: "shared"withworktree: <abs-path>spelled out intask, or initialize per-worktree ports/DB inside anisolation: "worktree"checkout.
- Call
- CLI runner fallback (terminal / headless harnesses): Otherwise, use
factory arena runandfactory arena judgebelow.
Phase B: Fan out (factory arena run or T3Code delegate_task)
factory arena run \
--prompt-file "$TMPDIR/arena-<id>/prompt.md" \
--profile default \
--mode sandbox \
--json
Pass --profile full for all 5 contenders, or --runners gpt-sol,carbon for a custom slice. If a candidate fails or times out, proceed with the survivors (>= 2) and record the dropout.
Phase C: Cross-judge (factory arena judge)
Run one read-only judge from a different vendor family than your active harness:
factory arena judge \
--manifest "<outDir>/manifest.json" \
--rubric-file "$TMPDIR/arena-<id>/rubric.md" \
--caller-vendor "<anthropic|openai|google>" \
--json
Phase D: Pick a base
Read every surviving candidate end-to-end before picking. Score each criterion-by-criterion against your rubric and compare with <outDir>/judge-report.md. Prefer the base a future maintainer can extend most easily without breaking invariants.
Phase E: Graft
Walk each losing candidate once more for 1–2 standout ideas, boundary checks, or helpers worth porting into the chosen base. Fold grafts in by hand so the result stays coherent under one mental model.
- If candidates converge on one shape, note the agreement and ship it.
- If they diverge wildly, Phase A was under-specified — reframe and re-run instead of averaging.
Phase F: Verify & Cleanu
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the factory-arena skill do?
Run N parallel CLI candidates across Codex, Claude, and Antigravity (`agy`) on the same task, cross-judge against a rubric, pick a base, graft winning ideas, and verify. Use for /factory-arena, 'arena this', or competitive multi-model design/implementation bakeoffs.
How do I install the factory-arena skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the factory-arena skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…