debate

debate is a command for Claude Code, Codex from hamza-ali-shahjahan/claudex. It costs 18 tokens per session (1,486 once invoked), scanned A, a copy of debate, MIT.

A command that puts Claude Code and OpenAI Codex into a structured argument about a design decision. You choose the decision, then act as the person who makes the final choice.

In plain words
What is it for?
Use it to compare design options, hear opening arguments and rebuttals, and decide which approach to take.
Why use it?
It exposes the trade-offs between two proposed approaches and produces a decision brief without changing code.

Command for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also runs codex exec. Also seen: mentions Claude Code; mentions Codex.

Part of the claudex plugin — 1 skill, 7 commands, 1 hook shipped together

Good fit Use it to compare design options, hear opening arguments and rebuttals, and decide which approach to take.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hamza-ali-shahjahan/claudex/debate
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/hamza-ali-shahjahan/claudex

Made for: Claude Code, Codex.

Or install claudex, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 1 hook.

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 debate

README.md
[![agentmods](https://agentmods.dev/badge/commands/hamza-ali-shahjahan/claudex/debate/github.svg)](https://agentmods.dev/commands/hamza-ali-shahjahan/claudex/debate)
Your own site
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/claudex/debate"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/claudex/debate/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 debate

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/claudex/debate"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/claudex/debate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 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,486 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 100% copy Near-identical to another mod 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.00018 $0.01486
Opus 5 $0.00009 $0.00743
Sonnet 5 $0.00004 $0.00297
Haiku 4.5 $0.00002 $0.00149

Measured 10d ago against content hash d735ae5d4c05, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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.

Origin

This is a copy

100% identical to debate — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/claudex/commands/debate.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.

You are running ClauDex debate — a structured argument between Claude Code (you, 🧡) and OpenAI Codex (🖤) over a real design decision. Nobody writes code here; the deliverable is a decision brief the user can arbitrate.

Sign-off contract: the closing line argued with love by ClauDex 🧡🖤 appears ONLY when Codex delivered both its opening position and its rebuttal — and it is REQUIRED then (an earned, unsigned run breaks the contract just like an unearned, signed one). Refusal, interruption, or an empty motion all end UNSIGNED. The verb is "argued" — this command builds nothing and reviews no diff; only the /claudex loop signs "built", only reviews sign "reviewed".

Preflight — it takes two to ClauDex

  1. Run codex --version and check auth (codex login status or the equivalent for the installed version). If either fails, STOP before any framing or arguing and reply with exactly:

    It takes two to ClauDex. 🧡 Claude is here — 🖤 Codex is not, and a one-model debate is just a monologue. Fix it in two lines, then come back for the argument:

    npm i -g @openai/codex
    codex login
    
  2. The motion. "$ARGUMENTS" must state a decision. If it is empty, STOP unsigned and ask for one, with two examples of a good motion — a decision with real options ("Postgres vs SQLite for this app"), not a topic ("databases").

(No git preflight — a debate needs a question, not a diff. If you happen to be inside a relevant repo, the codebase is context, not a requirement.)

The debate

  1. Frame the motion. Sharpen "$ARGUMENTS" into a decision question with 2–3 concrete options. If the user named a topic rather than a choice, propose the decision you believe they meant and say what you assumed. Gather grounding: if the current repo is relevant, read the few files that matter and note the hard constraints (existing stack, scale hints, deploy target). Compress all of it into a short written brief — motion, options, constraints. Keep it under a page; a debate is not a survey.
  2. Claude's opening (yours). Pick the option you would actually choose and argue it: your three strongest arguments, the biggest risk of your own choice (steelman honesty), and what evidence would change your mind. Write it BEFORE consulting Codex, so your position is genuinely independent.
  3. Codex's opening — safe transport. Write the brief from step 1 to a temp file (e.g. $TMPDIR/claudex-debate.md) — the motion, options, and constraints only, NOT your position; never inline content in the shell command. Then, with a hard timeout of ~10 minutes:

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. 10d ago First seen · 111 lines · 18 tokens per session scan A d735ae5d4c05

Subscribe to this mod's changes

debate is a command published in the GitHub repository hamza-ali-shahjahan/claudex (4 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 1,486 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to debate, differing in 0 lines, and is treated as a copy.