tournament

tournament is a command for Claude Code from vsladkov/claudex-stereo. It costs 17 tokens per session (11,737 once invoked), scanned A, original, Apache-2.0.

A command that runs two or three independent implementers on the same approved plan in separate workspaces, then selects one result.

In plain words
What is it for?
Use it to test competing implementations, review their results, choose a winning change, and bring that change back into the main workspace.
Why use it?
It lets you compare different implementations while keeping their changes isolated. This helps when there are several reasonable ways to build the same change.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the stereo plugin — 4 skills, 15 commands, 7 agents, 3 hooks shipped together

Good fit Use it to test competing implementations, review their results, choose a winning…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add vsladkov/claudex-stereo
Claude Code
/plugin install stereo

Made for: Claude Code.

Or install stereo, the plugin that ships this one along with the rest of its 4 skills, 15 commands, 7 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tournament

README.md
[![agentmods](https://agentmods.dev/badge/commands/vsladkov/claudex-stereo/tournament.svg)](https://agentmods.dev/commands/vsladkov/claudex-stereo/tournament)
Your own site
<a href="https://agentmods.dev/commands/vsladkov/claudex-stereo/tournament"><img src="https://agentmods.dev/badge/commands/vsladkov/claudex-stereo/tournament.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 11,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.11737
Opus 5 $0.00009 $0.05868
Sonnet 5 $0.00003 $0.02347
Haiku 4.5 $0.00002 $0.01174

Measured 6d ago against content hash f3771799ed54, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tournament scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/stereo/commands/tournament.md · 884 lines

How it starts

The opening of the file, as written. The whole thing — 884 lines — stays where its author put it; the contents beside it link to each section on GitHub.

First Read ${CLAUDE_PLUGIN_ROOT}/skills/model-routing/SKILL.md and apply its routing, foreground agent, validation, quoting, and background-job rules. The rules below are step-specific.

Run one stored plan through independent Codex-routed or Claude-routed contestants in isolated worktrees. Codex contestants run as concurrent detached jobs, while Claude contestants run one at a time in the foreground. The main Claude session owns preflight, containment, evidence collection, independent reviews, winner selection, hand-back, cleanup, and final verification.

Raw slash-command arguments: $ARGUMENTS

Arguments

After reading the routing skill, parse all arguments before loading state:

  • --implementer <model> is repeatable and optional. Declaration order defines contestant labels c1, c2, and c3; duplicate models are legal and produce independent samples of the same model. Zero occurrences select the conditional default lineup below. With one, stop, explain that a single contestant is not a tournament, and name /stereo:implement as the single-implementer command. Two or three occurrences define the lineup explicitly. With four or more, stop and state that tournaments are capped at 3 contestants.
  • Accept claude:sonnet, claude:opus, claude:haiku, claude:fable, and claude:inherit as Claude contestants. Accept a Codex selection with or without the codex: prefix. Reject claude:session because Claude writes must stay inside the contained stereo:implementer agent; reject unknown claude:* values and codex:claude:*. A Claude contestant runs as one foreground stereo:implementer invocation in its own worktree, so multiple Claude contestants run sequentially.
  • --implementer-effort <none|minimal|low|medium|high|xhigh|max> is repeatable with positional pairing. It is legal only when --implementer is present, every contestant is Codex-routed, and its occurrence count equals the --implementer count exactly; the k-th effort pairs with the k-th contestant. Reject a partial list and name the exact implementer and effort counts seen. Reject the flag entirely when --implementer is absent, name the effective default lineup, and point to --effort. When any contestant is Claude-routed, reject the flag, name every such label and selection, say that Claude has no effort dial, and point to --effort as the shared Codex effort.
  • --implementation-reviewer <model> selects one shared implementation reviewer. Accept it once and resolve it as explicit flag > workspace implementationReviewer default > claude:fable. claude:session is legal for this role.
  • --implementation-reviewer-effort <none|minimal|low|medium|high|xhigh|max> overrides effort for a Codex-routed reviewer and is illegal for a Claude-routed reviewer.
  • --effort <none|minimal|low|medium|high|xhigh|max> is the command-wide default for Codex roles without a role effort flag. When no active role is Codex-routed, a command-wide --effort is inert: accept it, report it as inert, and never translate it into a Claude-side control.
  • --slot <name> selects the stored plan slot and defaults to default. Define <slotArg> as --slot <slot> for a non-default slot and omit it entirely for default.
  • --resume re-enters the recorded incomplete tournament after a crashed, compacted, or closed Claude session. The record owns the lineup, reviewer, every effort, and plan slot. Reject --implementer, --implementer-effort, --implementation-reviewer, --implementation-reviewer-effort, --effort, and --slot with --resume; name the recorded values and tell the user to run without --resume to start over. Reviewer flags remain legal on /stereo:implement --resume, but are rejected here because every contestant must face the same recorded reviewer or the comparison is meaningless.

When --implementer is absent entirely, use the conditional default lineup. Set c1 to the workspace implementer model when its config --json entry has a null invalidReason and resolves to a Codex route; otherwise use the fallback c1 = codex:sol. Set c2 = claude:opus always. Report which default source supplied c1 before launch.

Read the full file on GitHub · 884 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 884 lines · 17 tokens per session scan A f3771799ed54

Subscribe to this mod's changes

tournament is a command published in the GitHub repository vsladkov/claudex-stereo (3 stars, last pushed 28d ago), licensed Apache-2.0. It adds 17 tokens to every session and 11,737 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.