debate

A structured discussion in which several AI agents argue different sides of a question before another agent combines their strongest points.

In plain words
What is it for?
It is for comparing competing approaches, reviewing a decision from opposing perspectives, and producing a conclusion that names agreements, disagreements, and missing viewpoints.
Why use it?
It helps expose trade-offs and weaknesses when choosing between options or testing a plan.

Skill for Claude CodeCodex

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 skills/ashkaan/contextium/debate
Any agent
npx skills add Ashkaan/contextium --skill debate
Clone the repo
git clone --depth 1 https://github.com/Ashkaan/contextium

Made for: Claude Code, Codex.

Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,883 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.00056 $0.02883
Opus 5 $0.00028 $0.01442
Sonnet 5 $0.00011 $0.00577
Haiku 4.5 $0.00006 $0.00288

Measured 2d ago against content hash a673890fe9f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debate 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 2d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/build-agent-prompts.sh, scripts/build-agent-prompts.test.sh, scripts/dispatch-agents.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

templates/claude/skills/debate/SKILL.md · 223 lines

How it starts

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

Debate — Multi-Agent Adversarial Reasoning

Spawn 2-3 AI agents with competing perspectives on a question, collect their arguments, and synthesize the strongest conclusion.

Step graph (mirrors frontmatter steps:): step-1-parse-input → step-2-build-prompts → step-3-dispatch-agents → step-4-synthesize → step-5-optional-round-2

Critical

  • Synthesis (step-4) is where the value is — don't just summarize. Read every agent's output, identify genuine tensions, name what they agree on. The orchestrator's authorship of the synthesis IS the skill; if all you do is concatenate, you wasted the cost.
  • Gaps MUST be named when an agent fails. .gap files written by dispatch-agents.sh mean an agent never returned; the Gaps section MUST surface "Agent X failed (timeout/rate-limit). Synthesis reflects N of M — the {role} position may be underrepresented." Do not silently emit a 2-agent synthesis labeled 3-agent.
  • Stop when a round adds nothing. Per @rule:adversarial-recursion-cap, the loop ends on the work: a round that surfaces no argument already on the table is the last one. There is no round number to hit and no question to fire — rounds here are requested by the user in the first place.

step-1-parse-input

Extract the question from $ARGUMENTS. Parse optional flags:

  • --format: dialectic (default), redteam, council
  • --agents: 2 (default) or 3 — how many seats the debate has. WHO fills them is decided at dispatch by which model CLIs you have installed, not here.

Auto-detect format if not specified:

  • Binary choice / "X or Y" / "X vs Y" → dialectic
  • Evaluating a plan/proposal/design → redteam
  • Open-ended, multi-dimensional → council

If the question is unclear or too vague, ask ONE clarifying question first.

Context Scaffold

Before building prompts, assemble a context block. If the user gave a bare question, check whether it references a known project/file/decision and pull key facts. Structure:

CONTEXT FOR DEBATE:
- Decision: [one sentence framing the choice]
- Constraints: [timeline, budget, dependencies, blockers]
- Stakes: [what's at risk if the wrong choice is made]
- Current leaning: [user's position, if any — agents should challenge this]

Read the full file on GitHub · 223 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. 2d ago First seen · 223 lines · 56 tokens per session scan A a673890fe9f2

Subscribe to this mod's changes

debate is a skill published in the GitHub repository Ashkaan/contextium (32 stars, last pushed 5d ago), licensed MIT. It adds 56 tokens to every session and 2,883 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

agentic-code-orchestrator

Unified codebase manipulation, AI deployment, data analysis, and academic delivery engine. Absorbs 6 coding protocols + data-analysis + academic-delivery + spec-driven-dev.

winstonkoh87/Athena-Public · 42 tokens

skill-compiler

Automatic solved-to-skill compiler — detects novel task completions and autonomously drafts new SKILL.md files. Stolen from Hermes Agent's learning loop (NousResearch, 2026-05-11).

winstonkoh87/Athena-Public · 46 tokens

daemon-loop

Autonomous recurring agent tasks — converts workflows into persistent background daemons that run on intervals. Stolen from Boris Cherny's Claude Code /loop pattern (2026-03-31).

winstonkoh87/Athena-Public · 42 tokens

git-worktree-swarm

Automates the complex setup of parallel git worktrees for agentic swarms with dependency-aware wave execution.

winstonkoh87/Athena-Public · 27 tokens

synthetic-parallel-reasoning

Automates Protocol 75 v4.0, forcing 4 parallel external API calls (Domain Expert, Adversarial Skeptic, Cross-Domain Pattern Matcher, Zero-Point First Principles) with an Adversarial Convergence Gate. The 'Einstein Protocol' application.

winstonkoh87/Athena-Public · 64 tokens

using-subagents

指导如何可靠使用 subagents、多个 Agents、并行 Agent 审查、集群搜索和项目分片处理。当用户要求使用 Agents/SubAgents、并行 Agent、对抗审查、多角色审查、集群搜索、项目分片处理,或明确说出“进入agents approve迭代模式”时使用。.

Lianues/Lim-Code · 75 tokens