arena
Skill58 starsChanged 3 months agoMITView on GitHub
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.
29 other projects use a version of this, 20 of them edited.
Adopted by
Most recently taken up by
- PickleBoxer/pstackedited, first seen Oct 6, 2026
- uzairansaruzi/p3-stackedited, first seen Oct 5, 2026
- Integralist/agent-skillsedited, first seen Oct 4, 2026
- jonmumm/skillstheir own version, first seen Oct 4, 2026
- backnotprop/pstackedited, first seen Oct 4, 2026
- creedants/pstack-t3edited, first seen Oct 3, 2026
Used with
Projects with it also use setup-pstack and make-bot-ui.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
shishivSkillsetup-pstack
Configure pstack delegation against the active Pi host. Use for /skill:setup-pstack, "configure pstack models", or checking delegation readiness.
Also in 15 projects that use this
eryzerzSkillmake-bot-ui
Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.
Also in 8 projects that use this
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 20
- backnotprop/pstack★ 99164% same
- uzairansaruzi/p3-stack★ 12963% same
- shrimpwtf/oh-my-pstack★ 3172% same
- painhardcore/pstack★ 675% same
- adjohn/pstack★ 470% same
- 0xrsydn/pstack-pi★ 380% same
- creedants/pstack-t3★ 351% same
- Integralist/agent-skills★ 369% same
- shiwenbin1617/pstack★ 382% same
- dhanji4U/skills★ 263% same
10 more not listed
Wrote their own version · 9
- Jakeschincariol/arena-skill★ 249same name
- korallis/skills-collection★ 18same name
- TheOnlyFusionCube/potetos-for-everyone★ 6same name
- jonmumm/skills★ 2same name
- drafael/coding-harness★ 1same name
- ryanportfolio/Corewise.Academy★ 1same name
- ryanportfolio/Harness-Firmware★ 1same name
- TeamHelix-AI/helix★ 1same name
- ryanportfolio/HarnessFirmware.com★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- agystackSkill
- architectSkill
- automate-meSkill
- blast-radiusSkill
- broSkill
- create-verification-skillSkill
- deslopSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- loopSkill
- maintain-verification-skillSkill
- no-commentsSkill
- Poteto ModeSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- recallSkill
- reflectSkill
- setup-agystackSkill
- show-me-your-workSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
The file
We split this skill into the rules it gives an agent
6 rules. 1 is common, 2 are distinctive, and 3 are very specific to this project.
1
Common
Most of the 29 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Partial Arrivals: When a candidate reports via send_message, record its artifact and yield immediately with ZERO tool calls if other …
- Very specific: line 41
Full Arrival: When all N candidates have completed, cancel the watchdog timer via manage_task(Action: "kill", TaskId: <timer_task_id>) and …
- Very specific: line 42
Timeout Fallback: If the watchdog fires, inspect worker statuses via manage_subagents(Action: "list"), terminate hanging candidates …
- Distinctive: line 50
Read every candidate end to end before picking.
- Distinctive: line 64
If verification passes, accept the graft and proceed to the next candidate.
- Common: line 74
If verification surfaces a problem the arena did not catch, either Phase A was wrong (re-frame and re-run) or one candidate caught it and …
“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Arena
Fan out N parallel attempts at the same task. Read every candidate end to end. Pick the strongest as the base. Graft the best ideas from the others into it. Verify the synthesized result.
Start
Open a todolist with one entry per phase before launching anything. The arena runs autonomously and the list keeps phases from silently disappearing.
- Frame
- Fan out
- Cross-judge
- Pick
- Graft
- Verify
Phase A: Frame
The N candidates will receive the same prompt, so the prompt is the contract. Get it right before spawning anything.
- State the artifact each candidate is producing.
- Derive the rubric. State what success looks like for this task, then turn it into 3-6 concrete gradeable criteria. Concrete:
Adds a --dry-run flag that skips writes. Vague:code is correct. The rubric is the picker's tool in Phase D; candidates only see the task. - Pick the runners. Use
arena runnersfrom~/.gemini/config/plugins/agystack/rules/agystack-models.mdwhen present. Otherwise default to a diverse panel across available tiers:pro,flash,inherit. Spawn more when the arena covers multiple design directions. Same model N times when the work is generation-bound rather than judgment-sensitive. - Assign output paths and workspaces. Each candidate runs in an isolated git branch/worktree via
Workspace: "branch"(or writes to its own scratch path<appDataDir>/brain/<conversation-id>/scratch/arena-<slug>/candidate-<n>/). N candidates writing to the same path without isolation is shared mutable state and fails the separate-before-serializing-shared-state principle skill test.
Phase B: Fan out
Spawn all N subagents in one turn using invoke_subagent with Workspace: "branch" (never simulate candidate outputs in the parent context), each with TypeName: "self" (or "poteto-agent"), the task, the path to the shared grounding, its own output path, and instructions to produce both the artifact and a short rationale.\n\nIn each candidate prompt, explicitly provide {PARENT_CONVERSATION_ID} and mandate that upon completion, the candidate MUST invoke send_message with Recipient: "{PARENT_CONVERSATION_ID}" and a summary of findings (mirroring skills/interrogate/references/reviewer-prompt.md) so the coordinator receives reactive wakeups without timing out.
The rationale is mandatory. Without it, the parent cannot tell whether a candidate's structure is principled or accidental, which makes Phase E grafting unreliable. Each rationale names the alternatives the candidate considered and what it rejected.
Reactive Dispatch & Watchdog Protocol
- Turn 1 (Dispatch & Arm): In the dispatch turn, launch candidate subagents via
invoke_subagentand arm a single global watchdog deadline:schedule(DurationSeconds: 300..600, Prompt="Watchdog: arena candidates timed out", TimerCondition: "never") - Turn 2 (Mechanical Yield): Output an update message with ZERO tool calls (
tool_calls: []). Busy polling viamanage_subagents(list)is strictly prohibited. - Partial Arrivals: When a candidate reports via
send_message, record its artifact and yield immediately with ZERO tool calls if other candidates remain running. - Full Arrival: When all N candidates have completed, cancel the watchdog timer via
manage_task(Action: "kill", TaskId: <timer_task_id>)and proceed to Phase C. - Timeout Fallback: If the watchdog fires, inspect worker statuses via
manage_subagents(Action: "list"), terminate hanging candidates (manage_subagents(Action: "kill", ConversationIds: [<id>])), proceed with N-k candidates, and note dropouts in the synthesis record.
Phase C: Cross-judge
After all Phase B candidates complete, choose one model from the arena cross-judge pool in ~/.gemini/config/plugins/agystack/rules/agystack-models.md when present. Otherwise choose a distinct tier from pro, flash, inherit. Prefer a different model tier from the parent's. Spawn one judge subagent via invoke_subagent (TypeName: "research", Role: "Arena Cross-Judge") on that model. It sees the rubric and the candidates by path label, scores each criterion, and recommends a base with rationale. It runs in parallel with the parent's reading in Phase D, not with the candidates themselves. Spawning while candidates are still writing means the judge sees partial or empty outputs and reports them as dropouts.
Phase D: Pick a base
Read every candidate end to end before picking. Skimming N candidates surfaces only the candidate whose surface looks most familiar.
Score each candidate against the rubric criterion by criterion, not on holistic feel. Compare against the cross-judge. Agreement on the base confirms the pick. Disagreement means one of you is biased or the rubric was ambiguous. Read both rationales before deciding.
Pick the base on which candidate a future maintainer can extend most easily without breaking invariants. Prefer the cleaner boundary or smaller surface area when two feel tied, per the Laziness Protocol.
Record the pick and the reason in a short synthesis note alongside the base artifact, including the cross-judge's verdict.
Phase E: Graft
Walk each losing candidate once more and identify what is worth porting into the base. The signal is usually one or two things per candidate, not most of it.
Grafts must be folded in sequentially, one candidate at a time (principle-sequence-verifiable-units), per the redesign-from-first-principles principle skill. Don't paste mechanically or merge bulk patches across candidates. The result has to remain coherent under one mental model:
- For each graft: apply the candidate's minimal diff to the base and verify immediately against existing tests and the evaluation rubric.
- If verification passes, accept the graft and proceed to the next candidate. If it regresses or introduces destructive interference, revert immediately.
Record accepted grafts and rejected candidates individually, noting what was grafted from which candidate and why rejections occurred (principle-sequence-verifiable-units). The rejection notes are the highest-signal part of the record. Future readers learn from what you considered and dropped, not just what you kept.
When N candidates converge on the same shape, that is a strong agreement signal. Note the convergence in the record and ship the consensus shape. No graft is needed. When N candidates wildly diverge, Phase A was under-specified. Reframe and re-run rather than averaging the divergence.
Phase F: Verify
The synthesized artifact has to hold up under the same scrutiny as any other output, per the prove-it-works principle skill. The arena does not earn you a pass.
If verification surfaces a problem the arena did not catch, either Phase A was wrong (re-frame and re-run) or one candidate caught it and you missed the graft (go back to Phase E). Don't paper over.
Outputs
One synthesized artifact. One synthesis note alongside, naming the base, the grafts (with source candidate), the rejections, the dropouts if any, and the verification result. On Antigravity, publish the final synthesis package to <appDataDir>/brain/<conversation-id>/arena_synthesis.md with ArtifactMetadata and link to it in the chat reply. Candidate drafts stay under <appDataDir>/brain/<conversation-id>/scratch/arena-<slug>/.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

