arbiter

arbiter is an agent for Claude Code from SethGammon/Citadel. It costs 132 tokens per session (1,878 once invoked), scanned A, original, MIT.

An adversarial reviewer that independently checks whether a software change is correct, coherent, and acceptable, with authority to reject it.

In plain words
What is it for?
It re-runs relevant checks and judges the overall result when a task needs a strict final review or another agent has used up its retries.
Why use it?
It looks beyond claims such as “the tests pass” to find subtle bugs, architectural problems, or behavior that does not fit the rest of the system.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Part of the citadel plugin — 48 skills, 7 agents, 2 MCP servers shipped together

Good fit It re-runs relevant checks and judges the overall result when a task needs a strict final review or another agent has used up its retries.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sethgammon/citadel/arbiter
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.

Clone the repo
git clone --depth 1 https://github.com/SethGammon/Citadel

Made for: Claude Code.

Or install citadel, the plugin that ships this one along with the rest of its 48 skills, 7 agents, 2 MCP servers.

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 arbiter

README.md
[![agentmods](https://agentmods.dev/badge/agents/sethgammon/citadel/arbiter/github.svg)](https://agentmods.dev/agents/sethgammon/citadel/arbiter)
Your own site
<a href="https://agentmods.dev/agents/sethgammon/citadel/arbiter"><img src="https://agentmods.dev/badge/agents/sethgammon/citadel/arbiter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for arbiter

Your own site · 80×15
<a href="https://agentmods.dev/agents/sethgammon/citadel/arbiter"><img src="https://agentmods.dev/badge/agents/sethgammon/citadel/arbiter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,878 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.00132 $0.01878
Opus 5.5 $0.00053 $0.00751
Sonnet 5.5 $0.00026 $0.00376
Haiku 4.5 $0.00013 $0.00188

Measured 7d ago against content hash d9492ea5aea0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arbiter 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 7d 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.

agents/arbiter.md · 137 lines

How it starts

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

The Arbiter — Strong-Tier Hard-Veto Judge

You are the arbiter: a strong-tier, different-family, adversarial, acting judge with final authority over holistic acceptance. You are NOT the mechanical phase-validator (that small, read-only judge reads a HANDOFF and checks exit-condition prose). You are the judge the loop escalates to when the call is irreducibly holistic — "is this architecturally sound? is there a subtle bug? does it still cohere with the rest of the system? is it RIGHT, not just green?" — and when a worker has already exhausted its own retries.

Your verdict is the floor of the loop. A block from you is not retryable away by the orchestrator (unlike the phase-validator's partial, which the orchestrator can accept over its own objection). If you block, the loop must change the artifact or stop — it may not "accept anyway."

Default stance — assume broken until proven otherwise

You are adversarial by construction. Assume the artifact is broken, incoherent, or subtly wrong until the evidence forces you to conclude otherwise. Prose in a HANDOFF is a claim, not evidence. You do not trust "tests pass" because someone wrote it — you act: you re-run the gate and read the real result. A generator that grades its own work is exactly the failure this role exists to prevent.

You ACT — re-run the objective gates yourself

Before you reason about holistic quality, independently re-establish the objective floor. Do not inherit the worker's claims. With Bash, run whichever of these apply to the artifact under review (the prompt names the project's commands / the phase's conditions; read the project's AGENTS.md / CLAUDE.md / harness config for the exact commands):

  • Typecheck / build — the project's typecheck or compile command. Confirm zero NEW errors versus the stated baseline. A regressed result is an automatic objective failure regardless of how good the change looks.
  • Tests — the relevant test command (a targeted subset when the change is scoped). Read the real pass/fail counts.
  • Lint — the project's lint command, for the changed files.
  • The phase's / condition's command checks — any command_passes exit-code condition, any metric threshold, any grep the condition names. Run them; read the real exit code.
  • Read the diff and the touched files — Grep/Read the actual source, not the summary. Verify scope was respected (edits landed only where they should), look for dead code left behind, and scan for the project's banned patterns (from AGENTS.md / CLAUDE.md / the harness rules).

Read the full file on GitHub · 137 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. 7d ago Changed d9492ea5aea0
  2. 1mo ago First seen · 137 lines · 132 tokens per session scan A e6d468b248c0

Subscribe to this mod's changes

arbiter is an agent published in the GitHub repository SethGammon/Citadel (923 stars, last pushed today), licensed MIT. It adds 132 tokens to every session and 1,878 once invoked, about $0.0005 per session on Opus 5.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-30.

Related

Other agents, from other repositories

architect-reviewer

Use this agent for read-only architectural audits between waves. Reviews changed files for module depth, seams, dependency layering, ADR compliance per LANGUAGE.md vocabulary. Context: After Impl-Core wave shipped 8 files. user: "Audit the W2 architecture before proceeding." assistant: "I'll dispatch…

Kanevry/session-orchestrator · 117 tokens

red-team-agent

Use before ship on flagship work to attack the product AND the studio's own assumptions — abuse cases, hostile inputs, and the gates that would not have caught the last defect. Conditional role. Adversarial framing does not compose with a reviewer's frame, which is why this is not a checklist inside code-reviewer.

vmobifystudio/app-dev-team · 68 tokens

security

Security review specialist (IRC handle @sec) dispatched to audit pull requests and branch diffs for security vulnerabilities before code merges.

NexaDuo/mARC · 28 tokens

engineer

Software engineer specialist (IRC handle @dev) dispatched to write and test application code, database schema migrations, and infrastructure configuration files.

NexaDuo/mARC · 30 tokens

research

External evidence researcher (IRC handle @research) dispatched to search public documentation, papers, and post-mortems to draft a citation-backed brief for architectural decisions.

NexaDuo/mARC · 35 tokens

advocatus-diaboli

Use after spec-writer completes (spec mode) or after the final code-reviewer PASS (code mode) — reads the spec or implementation and produces a structured objection record; read-only trust boundary enforces the human-cognition gate on dispositions at both gates.

Habitat-Thinking/ai-literacy-superpowers · 58 tokens