_arena-protocol

_arena-protocol is an agent for coding agents from samibs/skillfoundry. It costs 0 tokens per session (747 once invoked), scanned A, original, MIT.

A process for having two or three independent agents solve the same software story in separate Git worktrees, then comparing their results.

In plain words
What is it for?
Use it for competitive implementation, isolated experiments, and selecting a preferred solution against shared acceptance criteria.
Why use it?
Independent attempts provide alternative solutions and reduce the chance that one agent's approach is accepted without comparison.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/samibs/skillfoundry/_arena-protocol
Clone the repo
git clone --depth 1 https://github.com/samibs/skillfoundry

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 _arena-protocol

README.md
[![agentmods](https://agentmods.dev/badge/agents/samibs/skillfoundry/_arena-protocol.svg)](https://agentmods.dev/agents/samibs/skillfoundry/_arena-protocol)
Your own site
<a href="https://agentmods.dev/agents/samibs/skillfoundry/_arena-protocol"><img src="https://agentmods.dev/badge/agents/samibs/skillfoundry/_arena-protocol.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00747
Opus 5 $0.00000 $0.00374
Sonnet 5 $0.00000 $0.00149
Haiku 4.5 $0.00000 $0.00075

Measured yesterday against content hash 09e8ed96ceb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

_arena-protocol 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 yesterday.

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.

agents/_arena-protocol.md · 111 lines

How it starts

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

Arena Mode Protocol

Shared module for competitive agent evaluation. When /go --arena is active, multiple agents compete on the same story and gate-keeper selects the winner.


When Arena Mode is Active

1. Spawn Contestants

For each story, spawn 2-3 independent agent runs:

Contestant Agent Model Rationale
A coder opus Maximum quality
B coder sonnet Cost-efficient alternative
C coder opus Different perspective

The orchestrator determines contestants based on story complexity and cost-routing config.

2. Isolate Solutions

Each contestant works in complete isolation:

  • Separate git worktrees (.arena/contestant-{a,b,c})
  • No access to other contestants' output
  • Same story file, same acceptance criteria
  • Same project context (read-only access to shared codebase)
# Worktree setup (managed by arena-evaluate.sh)
git worktree add .arena/contestant-a -b arena/${story}-a
git worktree add .arena/contestant-b -b arena/${story}-b

3. Collect Solutions

Wait for all contestants to complete (or timeout):

  • Default timeout: 2x normal story timeout
  • If only 1 contestant completes, use that solution (graceful degradation)
  • If 0 complete, fail the story with detailed error

4. Evaluate

Gate-keeper scores each solution on weighted criteria:

Criterion Weight What's Measured
Correctness 40% Meets acceptance criteria, tests pass
Quality 25% Code clarity, patterns, maintainability
Security 20% No vulnerabilities, proper auth, input validation
Performance 15% Efficient algorithms, no N+1 queries

Scoring scale: 0.0 to 1.0 per criterion.

5. Select Winner

  • Highest weighted total score wins
  • Winner's code is cherry-picked to the main branch
  • Loser branches are deleted
  • All scores logged to .claude/arena-results.jsonl

Resource Management

  • Arena mode uses 2-3x resources (tokens, time)
  • User confirmation required before arena starts
  • Timeout per contestant: configurable, default 2x normal
  • Graceful degradation: partial results are better than no results

Read the full file on GitHub · 111 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. yesterday First seen · 111 lines · 0 tokens per session scan A 09e8ed96ceb5

Subscribe to this mod's changes

_arena-protocol is an agent published in the GitHub repository samibs/skillfoundry (12 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 747 tokens. 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-09-03.