---
name: arena
description: "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."
---
# Arena
Open a todolist with one entry per phase: Frame, Choose lane, Fan out, Cross-judge, Pick, Graft, Verify.
Read the execution router at `../poteto-mode/references/execution-router.md` before spawning. Arena is lane-aware. Cloud lanes provide VM isolation and cloud-mode diversity. The local lane provides same-machine candidates but not the same diversity axis.
## Phase A: Frame
Every candidate gets the same prompt, so the prompt is the contract.
1. State the artifact each candidate is producing.
2. Derive the rubric: 3-6 concrete gradeable criteria for success on this task. It is the picker's tool in Phase D. Candidates only see the task.
3. Declare whether the task needs VM isolation, repository writes, cross-platform behavior, or only same-machine generation. This determines the lane.
4. Give each candidate its own output location. Cloud children have separate VMs and checkouts. Local candidates get separate git worktrees or `/tmp/arena-<n>/` output directories, per the **separate-before-serializing-shared-state** principle skill.
## Phase B: Choose lane
### cloud-native
Prefer a cloud lane for non-trivial generation because it preserves independent checkouts and mode diversity.
- Read `cloud_modes` in `~/.devin/rules/pstack-models.md`. The default `arena runners` value is `ultra`, `fusion`, and `fast-ultra`. Legacy top-level role lines still count as cloud modes.
- An `auto` or `inherit-parent` entry means omit `devin_mode` for that seat.
- Devin does not expose raw model slugs or vendor choice. Mode diversity is the spread available in cloud lanes.
- If cloud session creation rejects a mode, use the nearest available mode on `ultra` > `fusion` > `normal` > `fast` > `fast-ultra` > `lite` or drop the seat. Keep at least two runners and say what changed.
- Repeat one mode when the work is generation-bound rather than judgment-sensitive.
In a cloud-native session use direct `devin_session_create` batching.
### local-full
Use `run_subagent` when the artifact is same-machine work, the cost of cloud sessions is not justified, and no cloud-only requirement exists.
- Read `local_profiles` in `~/.devin/rules/pstack-models.md`. If no mapping exists, use the plugin's write-capable delegate profile — `poteto-agent` or `devin-pstack:poteto-agent`, whichever form your session exposes.
- Do not pass `devin_mode` to local subagents.
<!-- ‹guest · 2026-12-02› -->
- Local candidates may all run on the default subagent model. Say that diversity is reduced when no distinct local profiles are configured.
- Keep the arena small enough for the machine. Use foreground for writers unless permissions are preflighted.
### blocked
Blocked is reserved for physical impossibilities. Local isolation is real (worktrees, sandbox, Docker), so isolation alone never blocks an arena. Reduced model diversity locally is a disclosed limitation, not a blocker.
## Phase C: Fan out
Spawn all candidates as close to simultaneously as the lane allows. Each brief includes the task, shared grounding, lane, output path, verification method, and instructions to produce the artifact plus a short rationale naming alternatives it considered and rejected.
If a candidate produces no output, proceed with N-1 and note the dropout.
## Phase D: Cross-judge
After all candidates settle, spawn one judge through the same lane when practical.
- Cloud lanes read the `arena cross-judge pool` cloud mode list, default `fusion`, `normal`. Try entries in order, preferring a mode different from the parent's. An `auto` or `inherit-parent` entry never judges.
- The local lane uses a fresh read-only subagent profile. If it runs on the same model as the candidates, say the diversity check did not run.
- Give the judge read-only scope. It reports verdicts and does not edit.
While you read in Phase E, the judge scores each candidate, by path label, on each rubric criterion and recommends a base.
## Phase E: Pick a base
Read every candidate end to end before picking. Score each against the rubric criterion by criterion, not on holistic feel, and compare with the cross-judge when Phase D ran one. 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 a future maintainer can extend most easily without breaking invariants. When two feel tied, prefer the cleaner boundary or smaller API, per the Laziness Protocol.
## Phase F: Graft
Walk each losing candidate once more for what is worth porting into the base, usually one or two things per candidate, not most of it. Fold each graft in by hand, per the **redesign-from-first-principles** principle skill, so the result stays coherent under one mental model. Do not paste mechanically.
If the candidates converge on one shape, that is strong agreement. Note it and ship the consensus shape. No graft is needed. If they wildly diverge, Phase A was under-specified. Reframe and rerun rather than averaging the divergence.
## Phase G: Verify
Verify the synthesized artifact like any other output, per the **prove-it-works** principle skill. If verification finds a problem the arena missed, either Phase A was wrong, so reframe and rerun, or a candidate caught it and you missed the graft, so return to Phase F. Do not paper over it.
## Outputs
<!-- ‹guest · 2026-12-02› -->
One synthesized artifact, with a short synthesis note naming:
- Lane and diversity limitation, if any.
- Base and why.
- Cross-judge verdict or why judging skipped.
- Each graft with its source candidate.
- What was rejected and why.
- Convergence or dropouts.
- Verification result.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.