skill-debate
Skill4.2k starsChanged 4 months agoMITView on GitHub
Structured multi-provider AI debates between Claude and available advisors — use for critical decisions
1 other project uses a version of this, 1 of them edited.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- kannaka-labs/Kannaktopusedited, first seen Mar 19, 2026
Who's talking about nyldn/claude-octopus
- hashgraph-online/awesome-codex-plugins“Add Claude Octopus — multi-LLM orchestration plugin”GitHub · Mar 29, 2026 · 3 reactions
- @andybrnr.bsky.social“Since individual models have their blind spots, ensembling different coding agents can lead to more robust …”Bluesky · Mar 31, 2026 · 2 likes
- A Hacker News story“Multi-tentacled orchestrator for Claude Code”Hacker News · Mar 18, 2026 · 1 points
- sudosubin/agents.nix“codex-plugins.github.nyldn.claude-octopus: init at 11.10.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-plugins.github.nyldn.claude-octopus: init at 11.10.0”GitHub · Oct 4, 2026
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub, Bluesky and Hacker News (36 times).
On GitHub · 33
- Mar 29, 2026Add Claude Octopus — multi-LLM orchestration plugin — hashgraph-online/awesome-codex-plugins3 reactions · 6 comments
- Oct 4, 2026codex-plugins.github.nyldn.claude-octopus: init at 11.10.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.nyldn.claude-octopus: init at 11.10.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.nyldn.claude-octopus: init at 11.10.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.nyldn.claude-octopus: 11.8.1 → 11.10.0 — sudosubin/agents.nix0 reactions
28 more on GitHub
- Oct 2, 2026Upstream sync — 2026-10-03 — AlobarQuest/claude-octopus0 reactions · 5 comments
- Sep 30, 2026agent-skills.github.nyldn.claude-octopus: init at 11.8.1 — sudosubin/agents.nix0 reactions
- Sep 26, 2026Upstream sync — 2026-10-01 — AlobarQuest/claude-octopus0 reactions · 13 comments
- Sep 24, 2026Upstream sync — 2026-09-24 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 23, 2026Upstream sync — 2026-09-23 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 22, 2026Upstream sync — 2026-09-22 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 21, 2026Upstream sync — 2026-09-21 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 20, 2026Upstream sync — 2026-09-20 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 19, 2026Upstream sync — 2026-09-19 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 18, 2026Upstream sync — 2026-09-18 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Sep 8, 2026Upstream sync — 2026-09-13 — AlobarQuest/claude-octopus0 reactions
- Sep 7, 2026Upstream sync — 2026-09-07 — AlobarQuest/claude-octopus0 reactions · 2 comments
- Aug 19, 2026[WR] implement claude octopus as a github action -- — midnghtsapphire/revvel-standards0 reactions · 27 comments
- Jul 9, 2026Update codex marketplace selector for octo — nyldn/plugins0 reactions · 1 comment
- Jun 30, 2026Upstream sync — 2026-09-06 — AlobarQuest/claude-octopus0 reactions · 37 comments
- Jun 19, 2026Upstream sync — 2026-06-27 — AlobarQuest/claude-octopus0 reactions · 11 comments
- Jun 15, 2026Upstream sync — 2026-06-19 — AlobarQuest/claude-octopus0 reactions · 1 comment
- Jun 14, 2026Upstream sync — 2026-06-14 — AlobarQuest/claude-octopus0 reactions
- Jun 12, 2026Upstream sync — 2026-06-13 — AlobarQuest/claude-octopus0 reactions · 1 comment
- Jun 10, 2026Upstream sync — 2026-06-11 — AlobarQuest/claude-octopus0 reactions
- Jun 9, 2026Upstream sync — 2026-06-09 — AlobarQuest/claude-octopus0 reactions
- May 7, 2026Add report: Analyzing Claude Octopus — zarguell/research-reports0 reactions
- Apr 24, 2026task: expose Codex/Gemini CLI runtime info like claude-octopus — pureliture/ai-cli-orch-wrapper0 reactions
- Apr 13, 2026Audit candidate: nyldn/claude-octopus — xiaolai/nlpm0 reactions · 8 comments
- Apr 6, 2026Audit candidate: nyldn/claude-octopus — xiaolai/nlpm0 reactions · 3 comments
- Mar 23, 2026Research: Notable concepts & workflows from the Claude Code plugin ecosystem — aiocean/claude-plugins0 reactions · 1 comment
- Jan 18, 2026feat: Add enhanced error messages with troubleshooting steps — wolverin0/claude-skills0 reactions · 1 comment
- Jan 18, 2026feat: Add atomic state writes with file locking — wolverin0/claude-skills0 reactions · 1 comment
On Bluesky · 2
- Mar 31, 2026Since individual models have their blind spots, ensembling different coding agents can lead to more robust results. See e.g. Claude… — @andybrnr.bsky.social2 likes and reposts
- Jun 11, 2026https://github.com/nyldn/claude-octopus — @tom-doerr.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Mar 18, 2026Multi-tentacled orchestrator for Claude Code1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- kannaka-labs/Kannaktopus★ 055% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository123 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- skill-extractSkill
- flow-defineSkill
- flow-deliverSkill
- flow-developSkill
- flow-discoverSkill
- flow-parallelSkill
- flow-specSkill
- skill-agent-topologySkill
- octopus-architectureSkill
- skill-auditSkill
- skill-authoringSkill
- skill-code-reviewSkill
- skill-content-pipelineSkill
- skill-context-detectionSkill
- skill-copilot-providerSkill
- skill-cost-projectionsSkill
- skill-coverage-auditSkill
- skill-debugSkill
- skill-decision-supportSkill
- skill-deckSkill
- octopus-researchSkill
- skill-design-lineageSkill
- skill-doc-deliverySkill
- skill-doc-syncSkill
- skill-doctorSkill
- skill-factorySkill
- skill-finish-branchSkill
- skill-intakeSkill
- skill-intent-contractSkill
- skill-issuesSkill
- skill-iterative-loopSkill
- skill-knowledge-workSkill
- skill-meta-promptSkill
- skill-native-escalation-routingSkill
- skill-parallel-agentsSkill
- skill-prdSkill
- skill-pressure-testSkill
- skill-prototypeSkill
- octopus-quickSkill
- skill-resumeSkill
- skill-review-responseSkill
- skill-rollbackSkill
- octopus-security-auditSkill
- skill-security-framingSkill
- skill-shipSkill
- skill-staged-reviewSkill
- skill-statusSkill
- skill-task-managementSkill
- skill-tddSkill
- skill-thought-partnerSkill
- octopus-ui-ux-designSkill
- skill-verification-gateSkill
- skill-visual-feedbackSkill
- skill-work-slicingSkill
- skill-writing-plansSkill
- sys-configureSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 14 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 75
Do not call provider CLIs directly from the debate workflow.
- Distinctive: line 79
Do not copy direct provider CLI invocations into debate steps.
- Very specific: line 80
Always pass the selected advisor name to orchestrate.sh spawn.
- Very specific: line 97
When the question is an interface design, load skills/blocks/architecture-simplification.md.
- Distinctive: line 216
Set up the debate: Create folder structure, write context.md
- Very specific: line 219
Contribute your analysis: Write your own perspective to rounds/r00N_claude.md
- Distinctive: line 220
Moderate: Ensure advisors stay on topic, follow word limits
- Very specific: line 227
When running debates in claude-octopus, the following enhancements are automatically applied:
- Very specific: line 280
When the user invokes /octo:debate:
- Very specific: line 310
If all external providers are unavailable: Inform user that debate requires at least one external provider and suggest running /octo:setup …
- Distinctive: line 311
If one or more providers are unavailable: Note which providers are missing and proceed with available provider(s) and Claude
- Distinctive: line 317
Ask 4 clarifying questions to ensure high-quality debate:
- Very specific: line 369
If user selected "Cross-critique": use --mode cross-critique (default ACH falsification)
- Very specific: line 370
If user selected "Independent evaluation": use --mode blinded (no cross-contamination)
- Distinctive: line 502
After all allowed advisors finish, enforce the two-provider minimum:
- Distinctive: line 517
Use the Read tool to read all advisor responses, then write your independent analysis:
- Distinctive: line 534
After each advisor responds, evaluate response quality:
- Distinctive: line 566
After all rounds complete, write a comprehensive synthesis:
- Distinctive: line 599
Read the synthesis and present it in the chat:
- Very specific: line 612
If the user passed --synthesize (or -s), generate a concrete deliverable after synthesis:
- Distinctive: line 614
Read the synthesis.md file
- Distinctive: line 673
Before completing a debate, ensure:
- Distinctive: line 727
After debate completes, export results via document-delivery skill:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Debate Hub Skill v4.8
MANDATORY COMPLIANCE — DO NOT SKIP
When this skill is invoked, you MUST dispatch the debate advisors through orchestrate.sh and synthesize their positions. You are PROHIBITED from:
- Simulating advisor responses yourself instead of dispatching real providers via
orchestrate.sh - Deciding the question is "too simple" and answering single-model without the multi-provider debate
- Skipping the provider availability check or the structured rounds
- Dropping an available advisor (including
agy) from the roster without telling the user - Rationalizing that one model's view is sufficient — the user invoked a debate for multiple perspectives
⚠️ MANDATORY: Visual Indicators Protocol
BEFORE starting ANY debate, you MUST output this banner:
🐙 **CLAUDE OCTOPUS ACTIVATED** - AI Debate Hub
🐙 Debate: [Topic/question being debated]
Participants:
🔴 Codex CLI - Technical implementation perspective
🟡 Antigravity CLI - Ecosystem and strategic perspective
🟠 Sonnet 5 - Pragmatic implementer perspective
🐙 Claude (Opus) - Moderator and synthesis
🟢 Copilot CLI - GitHub-native perspective (if available)
🟤 Qwen CLI - Alternative model perspective (if available)Core participants are selected from available providers. Codex (🔴), Antigravity (🧭), Sonnet (🟠), Claude/Opus (🐙), and other detected providers can participate based on routing and availability.
This is NOT optional. Users need to see which AI providers are active. External API calls (🔴 🟡) use provider API keys. Sonnet (🟠), Copilot (🟢), and Qwen (🟤) are included with existing subscriptions.
CRITICAL: External CLI Syntax (v0.101.0+)
You MUST use this exact command pattern. Do NOT improvise provider flags.
For debate rounds, dispatch every external advisor through Octopus routing:
"${HOME}/.claude-octopus/plugin/scripts/orchestrate.sh" spawn "$advisor" "$prompt"Do not call provider CLIs directly from the debate workflow. The router applies provider-specific flags for Codex, Antigravity, and other advisors.
- Provider-specific syntax lives in
scripts/lib/dispatch.shand helper scripts. - Do not copy direct provider CLI invocations into debate steps.
- Always pass the selected advisor name to
orchestrate.sh spawn; the router chooses the correct command.
Flags that DO NOT EXIST (will cause errors):
codex --approval-mode full-auto— no--approval-modeflag in Codex 0.130.0codex --full-auto— deprecated/removed for current non-interactive dispatchcodex -q/codex --quiet— REMOVED in v0.101.0codex -y/codex --yes— NEVER EXISTEDcodex "prompt"withoutexec— launches interactive TUI, hangs
You are Claude (Opus), a participant and moderator in a multi-provider AI debate system. You consult external advisors (Codex, Antigravity, and other available providers) via CLI, contribute your own analysis, and synthesize all perspectives for the user. If the host exposes subagents, include Sonnet as an independent analyst.
CRITICAL: You are NOT just an orchestrator. You are an active participant with your own voice and opinions.
Interface-design debates
When the question is an interface design, load
skills/blocks/architecture-simplification.md. Give each initial advisor the same
requirements and source revision without another advisor's draft. Record source
access and model family separately from provider transport. A reviewer without
artifact access contributes questions, not approval. Preserve evidence-backed
minority findings even when the vote count favors another design.
How Users Invoke This Skill
Users invoke this skill explicitly from the slash menu. Parse the supplied intent and run the debate.
Basic Invocation
/octo:debate <question or task>With Flags
/octo:debate -r 3 -d thorough <question>
/octo:debate --rounds 2 --debate-style adversarial <question>
/octo:debate --path debates/009-new-topic <question>With File References
Users can mention files naturally - you resolve them to full paths:
/octo:debate Is our CLAUDE.md accurate?
-> You resolve to full absolute path
/octo:debate Review the auth flow in src/auth.ts
-> You find src/auth.ts relative to cwd and pass full path to advisorsExamples Users Might Say
/octo:debate Should we use Redis or in-memory cache?/octo:debate -r 3 Review the whatsappbot codebase for issues/octo:debate on whether our error handling in api.ts is sufficientRun a debate about the database schema designI want Antigravity and Codex to review this PR
Flags
| Flag | Short | Default | Description |
--rounds N | -r N | 1 | Number of debate rounds (1-10) |
--debate-style STYLE | -d STYLE | quick | Style: quick, thorough, adversarial, collaborative |
--moderator-style MODE | -m MODE | guided | Mode: transparent, guided, authoritative |
--advisors LIST | -a LIST | auto | Comma-separated list |
--out-dir PATH | -o PATH | debates/ | Output directory (relative to cwd) |
--path PATH | -p PATH | none | Debate folder path (skips cd requirement) |
--context-file FILE | -c FILE | none | File to include as context |
--max-words N | -w N | 300 | Word limit per response |
--topic NAME | -t NAME | auto | Topic slug for folder naming |
--synthesize | -s | off | Generate a deliverable (markdown file, diff, or plan) from consensus |
Flag Precedence Rules
--rounds vs --debate-style:
--roundsexplicitly set: ALWAYS takes precedence over style defaults--debate-style quickimplies 1 round UNLESS--roundsis also specified- Error if conflicting:
--debate-style quick --rounds 5-> warn user, use--roundsvalue
Style round defaults (when --rounds not specified):
| Style | Default Rounds |
| quick | 1 |
| thorough | 3 |
| adversarial | 3 |
| collaborative | 2 |
Validation:
--roundsmust be 1-10- Error on
--rounds 0or--rounds 11+
Your Role: Participant + Moderator
Multi-Provider Debate Structure
This is a provider debate with selected advisor voices plus you as moderator:
User Question
|
v
+-------------------+
| ROUND 1 |
+-------------------+
| Antigravity analyzes | 🧭 External CLI
| Codex analyzes | 🔴 External CLI
| Sonnet analyzes | 🟠 Agent(model: sonnet)
| YOU analyze | 🐙 Your independent analysis (Opus)
+-------------------+
|
v
+-------------------+
| ROUND 2+ |
+-------------------+
| Antigravity responds | 🧭 Sees prior round
| Codex responds | 🔴 Sees prior round
| Sonnet responds | 🟠 Sees prior round
| YOU respond | 🐙 Your independent response
+-------------------+
|
v
+-------------------+
| FINAL SYNTHESIS |
+-------------------+
| YOU synthesize all four perspectives
| and recommend a path forward
+-------------------+Key responsibilities:
- Set up the debate: Create folder structure, write context.md
- Consult external advisors: Dispatch Antigravity/Codex through Octopus routing for each round
- Launch allowed Sonnet: Dispatch Sonnet via Agent tool only when the provider allowlist permits it
- Contribute your analysis: Write your own perspective to rounds/r00N_claude.md
- Moderate: Ensure advisors stay on topic, follow word limits
- Synthesize: Combine all four perspectives into actionable recommendations
Claude-Octopus Enhancements
When running debates in claude-octopus, the following enhancements are automatically applied:
1. Session-Aware Storage
Enhanced behavior (when CLAUDE_CODE_SESSION is set):
~/.claude-octopus/debates/${SESSION_ID}/
└── NNN-topic-slug/
├── context.md
├── state.json
├── synthesis.md
└── rounds/Benefits:
- Debates organized by Claude Code session
- Easy to find debates from specific conversations
- Automatic cleanup when sessions expire
- Integration with claude-octopus analytics
2. Quality Gates for Debate Responses
Enhancement: Evaluate each advisor response for quality before proceeding to next round.
Quality Metrics:
| Metric | Weight | Criteria |
| Length | 25 pts | 50-1000 words (substantive but concise) |
| Citations | 25 pts | References, links, or sources present |
| Code Examples | 25 pts | Technical examples or code snippets |
| Engagement | 25 pts | Addresses other advisors' specific points |
Quality Thresholds:
- Score >= 75: Proceed (high quality)
- Score 50-74: Proceed with warning (flag in synthesis)
- Score < 50: Re-prompt advisor for elaboration
3. Cost Tracking & Analytics
Track token usage and cost for each debate, integrated with claude-octopus analytics.
4. Document Export
Export debates to professional formats via the document-delivery skill:
- PPTX presentations
- DOCX reports
- PDF documents
Implementation Steps
When the user invokes /octo:debate:
Step 1: Check Provider Availability & Display Banner
MANDATORY: You MUST use the Bash tool to run this provider check BEFORE displaying the banner. Do NOT skip it. Do NOT assume availability.
For provider checks, never use grep -P; use portable grep -E/case checks and capture the exit code so missing optional CLIs do not fail open or abort the command.
bash "${HOME}/.claude-octopus/plugin/scripts/helpers/check-providers.sh"Use the ACTUAL results below. PROHIBITED: Showing only "🔵 Claude: Available ✓" without listing all providers.
Then display the banner with real provider status:
🐙 **CLAUDE OCTOPUS ACTIVATED** - AI Debate Hub
🐙 Debate: [Topic/question being debated]
Provider Availability:
🔴 Codex CLI: [Available ✓ / Not installed ✗]
🟡 Antigravity CLI: [Available ✓ / Not installed ✗]
🧭 Antigravity CLI: [Available ✓ / Not installed ✗]
🤖 Grok CLI (xAI): [Available ✓ / Not installed ✗]
🟠 Sonnet 5: Available ✓ (via Agent tool — no extra cost)
🐙 Claude (Opus): Available ✓ (Moderator and participant)🧭 Antigravity availability: Antigravity CLI = the
agybinary; judge availability only viacommand -v agy(ascheck-providers.shdoes), never from theantigravitydesktop shortcut.
If providers are missing:
- If all external providers are unavailable: Inform user that debate requires at least one external provider and suggest running
/octo:setupto configure them - If one or more providers are unavailable: Note which providers are missing and proceed with available provider(s) and Claude
Step 2: Ask Clarifying Questions
Use the AskUserQuestion tool to gather context before starting the debate:
Ask 4 clarifying questions to ensure high-quality debate:
AskUserQuestion({
questions: [
{
question: "What's your primary goal for this debate?",
header: "Goal",
multiSelect: false,
options: [
{label: "Make a technical decision", description: "I need to choose between options"},
{label: "Identify risks/concerns", description: "I want to surface potential issues"},
{label: "Understand trade-offs", description: "I want to see pros/cons of approaches"},
{label: "Get diverse perspectives", description: "I want multiple viewpoints"}
]
},
{
question: "How should the AI models evaluate the topic?",
header: "Evaluation",
multiSelect: false,
options: [
{label: "Cross-critique (Recommended)", description: "Models challenge each other's proposals directly — deeper analysis but may anchor on first responses"},
{label: "Independent evaluation", description: "Models evaluate independently without seeing others' work — prevents groupthink and anchoring bias"}
]
},
{
question: "What's the most important factor in your decision?",
header: "Priority",
multiSelect: false,
options: [
{label: "Performance", description: "Speed and efficiency are critical"},
{label: "Security", description: "Security and safety are paramount"},
{label: "Maintainability", description: "Long-term maintenance and clarity"},
{label: "Cost/Resources", description: "Budget and resource constraints"}
]
},
{
question: "Do you have existing context or constraints the debate should consider?",
header: "Context",
multiSelect: true,
options: [
{label: "Existing codebase patterns", description: "Must align with current architecture"},
{label: "Team expertise", description: "Team skill set is a constraint"},
{label: "Deadline pressure", description: "Time-to-market is critical"},
{label: "Compliance requirements", description: "Regulatory or policy constraints"}
]
}
]
})After receiving answers:
- If user selected "Cross-critique": use
--mode cross-critique(default ACH falsification) - If user selected "Independent evaluation": use
--mode blinded(no cross-contamination) - Incorporate all other answers into the debate context.
Step 3: Parse Arguments & Build Debate Fleet
# Extract question and flags
QUESTION="Should we use Redis or in-memory cache?"
ROUNDS=3
STYLE="thorough"
# Dynamic advisor selection — the fleet builder remains the admission authority.
CONSULTATIVE_LIB="${HOME}/.claude-octopus/plugin/scripts/lib/consultative-advisors.sh"
ADVISOR_SELECTOR="${HOME}/.claude-octopus/plugin/scripts/helpers/select-fleet-advisors.sh"
source "$CONSULTATIVE_LIB" || exit 1
HOST_CLAUDE_ALLOWED=false
HOST_ADVISOR_SUCCESS=0
if octo_consultative_host_allowed; then
HOST_CLAUDE_ALLOWED=true
fi
REQUIRED_EXTERNAL_ADVISORS=$(octo_consultative_required_external_count)
if ! ADVISORS=$("$ADVISOR_SELECTOR" debate standard "$QUESTION"); then
echo "No eligible external debate advisors are available." >&2
exit 1
fiThe build-fleet.sh debate command selects up to 3 debaters from different model families (for example, codex/OpenAI, agy/Google Antigravity, and copilot/Microsoft) to maximize training-bias diversity. Do not hardcode provider pairs; use the runtime ADVISORS list.
Step 4: Setup Debate Folder
# Create debate directory structure
DEBATE_BASE_DIR="${HOME}/.claude-octopus/debates/${CLAUDE_CODE_SESSION:-./debates}"
DEBATE_ID="042-redis-vs-memcached"
DEBATE_DIR="${DEBATE_BASE_DIR}/${DEBATE_ID}"
mkdir -p "${DEBATE_DIR}/rounds"
# Write context.md
cat > "${DEBATE_DIR}/context.md" <<EOF
# Debate: ${QUESTION}
**Debate ID**: ${DEBATE_ID}
**Rounds**: ${ROUNDS}
**Style**: ${STYLE}
**Advisors**: ${ADVISORS}
**Started**: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
## Question
${QUESTION}
## Clarifying Context
**Primary Goal**: ${USER_GOAL}
**Priority Factor**: ${USER_PRIORITY}
**Constraints**: ${USER_CONSTRAINTS}
## Additional Context
[Any relevant context from user's message or files]
[If claude-mem is installed, search for past debates or decisions on this topic using its MCP tools]
EOF
# Initialize state.json
cat > "${DEBATE_DIR}/state.json" <<EOF
{
"debate_id": "${DEBATE_ID}",
"question": "${QUESTION}",
"rounds_total": ${ROUNDS},
"rounds_completed": 0,
"advisors": [$(echo "$ADVISORS" | sed 's/,/", "/g' | sed 's/^/"/' | sed 's/$/"/')],
"user_context": {
"goal": "${USER_GOAL}",
"priority": "${USER_PRIORITY}",
"constraints": "${USER_CONSTRAINTS}"
},
"status": "active",
"created_at": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
}
EOFStep 5: Conduct Rounds
For each round, iterate the runtime advisor list and dispatch through Octopus. The launch
waits for every advisor to finish, often several minutes, so run the block with
run_in_background: true; a foreground 600000 ms timeout stops it after 10 minutes, while
the launcher waits up to OCTOPUS_ADVISOR_WAIT_SECONDS (default 3600 s). Each answer lands in
${DEBATE_DIR}/rounds/r001_<advisor>.md, with any character other than a letter, digit,
_ or - in the advisor name replaced by _ (codex:model gives r001_codex_model.md).
An advisor that fails leaves no file:
ORCH="${HOME}/.claude-octopus/plugin/scripts/orchestrate.sh"
DEBATE_PROMPT="You are {{advisor}} participating in debate round 1.
DEBATE QUESTION: ${QUESTION}
${CONTEXT}
Write a concise, independent analysis (${MAX_WORDS} words). Address implementation tradeoffs, risks, and where other likely perspectives may be wrong."
if ! SUCCESSFUL_EXTERNAL_ADVISORS=$(octo_launch_advisors "$ORCH" "$ADVISORS" \
"${DEBATE_DIR}/rounds" r001_ "$DEBATE_PROMPT" "$REQUIRED_EXTERNAL_ADVISORS"); then
echo "The required external debate advisors did not complete successfully." >&2
exit 1
fi5.2: Launch Sonnet (Pragmatic Implementer)
Dispatch Sonnet via the Agent tool only when HOST_CLAUDE_ALLOWED=true and the
host exposes subagents. If Claude is disallowed, skip this step. Set
HOST_ADVISOR_SUCCESS=1 only after the allowed Sonnet task completes with usable
output; otherwise set it to 0. Sonnet can run in parallel with the external
advisor calls.
Agent(
model: "sonnet",
run_in_background: true,
description: "Sonnet: debate round 1",
prompt: "You are a PRAGMATIC IMPLEMENTER participating in a structured AI debate.
YOUR ROLE: You are the person who would actually have to BUILD this. You care about what ships, what works, and what you'll be debugging at 2am. Ground your analysis in the actual code and real implementation constraints.
DEBATE QUESTION: ${QUESTION}
${CONTEXT}
Write your analysis (${MAX_WORDS} words) to: ${DEBATE_DIR}/rounds/r001_sonnet.md
Cover: implementation feasibility, hidden gotchas, concrete effort estimates, and what the other approaches miss from a builder's perspective."
)After all allowed advisors finish, enforce the two-provider minimum:
if ! octo_consultative_provider_count_is_sufficient \
"$SUCCESSFUL_EXTERNAL_ADVISORS" "$HOST_ADVISOR_SUCCESS"; then
echo "A debate requires two successful, allowlisted providers." >&2
exit 1
fiWHY Sonnet and not just more Opus? Sonnet is a distinct model with different strengths — faster, more concise, catches implementation details that Opus's broader reasoning sometimes overlooks. Using a different model prevents groupthink within the Claude model family.
Timing: Launch Sonnet BEFORE or IN PARALLEL with the external advisor calls. By the time the CLI calls return, Sonnet is usually done too. Check for completion before proceeding to 5.3.
5.3: Write Your Analysis (Opus)
Use the Read tool to read all advisor responses, then write your independent analysis:
# Read what all advisors said
for response_file in "${DEBATE_DIR}"/rounds/r001_*.md; do
printf '\n## %s\n' "$(basename "$response_file" .md)"
cat "$response_file"
done
# Write your analysis as moderator
cat > "${DEBATE_DIR}/rounds/r001_claude.md" <<EOF
# Claude (Opus) Analysis - Round 1
[Your independent analysis here, considering but not just summarizing the three advisor perspectives. Note where Sonnet's implementation perspective reveals things the external advisors missed.]
EOF5.4: Quality Gates (Claude-Octopus Enhancement)
After each advisor responds, evaluate response quality:
evaluate_response_quality() {
local response_file="${1}"
local advisor="${2}"
word_count=$(wc -w < "$response_file")
has_citations=$(grep -c '\[' "$response_file" || echo 0)
has_code=$(grep -c '```' "$response_file" || echo 0)
addresses_others=$(grep -ciE '(gemini|codex|agy|antigravity|claude|sonnet)' "$response_file" || echo 0)
score=0
(( word_count >= 50 && word_count <= 1000 )) && (( score += 25 ))
(( has_citations > 0 )) && (( score += 25 ))
(( has_code > 0 )) && (( score += 25 ))
(( addresses_others > 0 )) && (( score += 25 ))
echo "$score"
}
for response_file in "${DEBATE_DIR}"/rounds/r001_*.md; do
advisor=$(basename "$response_file" .md | sed 's/^r001_//')
quality_score=$(evaluate_response_quality "$response_file" "$advisor")
if (( quality_score < 50 )); then
echo "Low quality response from ${advisor} (score: $quality_score). Re-prompting..."
# Re-prompt for more detail
fi
doneStep 6: Final Synthesis
After all rounds complete, write a comprehensive synthesis:
cat > "${DEBATE_DIR}/synthesis.md" <<EOF
# Final Synthesis: ${QUESTION}
## Summary of Perspectives
### External Advisor Perspectives
[Key points from each advisor selected in ADVISORS: Codex, Antigravity, or other available providers]
### 🟠 Sonnet's Perspective
[Key points from Sonnet across all rounds — especially implementation feasibility and gotchas]
### 🐙 Claude (Opus) Perspective
[Your key points across all rounds]
## Areas of Agreement
[Where all advisors converged]
## Areas of Disagreement
[Key points of contention]
## Recommended Path Forward
[Your final recommendation based on all perspectives]
## Next Steps
[Concrete action items for the user]
EOFStep 7: Present Results to User
Read the synthesis and present it in the chat:
I've completed a ${ROUNDS}-round debate on "${QUESTION}".
[Include key findings from synthesis.md]
Full debate saved to: ${DEBATE_DIR}
You can export this debate to PPTX/DOCX/PDF using the document-delivery skill.Step 7.5: Generate Deliverable (when --synthesize is set)
If the user passed --synthesize (or -s), generate a concrete deliverable after synthesis:
- Read the synthesis.md file
- Identify the consensus recommendations and action items
- Generate ONE of the following based on context:
- For code topics: A plan with file paths and proposed changes
- For content topics: A draft document (e.g., rewritten README, PRD outline)
- For architecture topics: A decision record with rationale
- Save to
${DEBATE_DIR}/deliverable.md - Show the deliverable to the user with AskUserQuestion:
- "Apply this" — proceed with implementation
- "Refine" — adjust the deliverable
- "Save only" — keep it as reference, don't act
IMPORTANT: The deliverable is a PROPOSAL. Never auto-apply changes without user approval.
Example Usage
Example 1: Quick Debate
User: /octo:debate Should we use Redis or in-memory cache?
Claude:
1. Creates debate folder at ~/.claude-octopus/debates/${SESSION_ID}/042-redis-vs-memcached/
2. Writes context.md with question
3. Round 1:
- Launches Sonnet via Agent(model: sonnet, run_in_background: true) when the provider allowlist permits it
- Calls orchestrate.sh spawn for each runtime advisor selected by build-fleet.sh, such as codex and agy
- Waits for Sonnet completion
- Writes own analysis (Opus) considering all advisor perspectives
4. Writes synthesis.md with final recommendation from all participants
5. Presents results in chatExample 2: Thorough Adversarial Debate
User: /octo:debate -r 3 -d adversarial Review our authentication implementation in src/auth.ts
Claude:
1. Reads src/auth.ts to understand context
2. Creates debate folder
3. Round 1 (Sonnet launched in background first, then selected external advisors in parallel):
- 🟠 Sonnet: Implementation feasibility analysis of auth.ts
- External advisors selected by build-fleet.sh, such as 🔴 Codex or 🧭 Antigravity depending on availability
- 🐙 Claude (Opus): Your independent analysis considering all advisors
4. Round 2:
- 🟠 Sonnet: Responds to other participants' points
- External advisors challenge each other's points
- 🐙 Claude: You challenge advisor points
5. Round 3:
- All participants: Final positions
6. Synthesis with quality scores for each advisor
7. Present results with cost trackingQuality Checklist
Before completing a debate, ensure:
- All rounds completed for selected participants
- Your independent analysis (Opus) written for each round (not just summaries)
- Synthesis.md includes all participating perspectives
- Quality scores recorded for advisor responses
- Cost tracking updated (if in claude-octopus context)
- Results presented to user in chat
- Debate folder path provided to user
Integration with Other Skills
Document Delivery
Export debates to professional formats:
After debate completes:
"Would you like to export this debate to PPTX/DOCX/PDF? I can use the document-delivery skill to create a professional presentation."Knowledge Mode
Debates can be used in knowledge mode workflows:
Knowledge mode "deliberate" phase → Run /octo:debate to get multiple perspectives
→ Use synthesis for final decisionQuality Gates for Responses
Each advisor response is scored before proceeding:
| Metric | Weight | Criteria |
| Length | 25 pts | 50-1000 words (substantive but concise) |
| Citations | 25 pts | References, links, or sources present |
| Code Examples | 25 pts | Technical examples or code snippets |
| Engagement | 25 pts | Addresses other advisors' specific points |
Score >= 75: proceed. Score 50-74: proceed with warning. Score < 50: re-prompt for elaboration.
Cost Tracking
Typical costs (default word limits):
- Quick (1 round): 0.02 USD - 0.05 USD
- Thorough (3 rounds): 0.10 USD - 0.20 USD
- Adversarial (5 rounds): 0.25 USD - 0.50 USD
Cost tracking integrates with ~/.claude-octopus/analytics/ logs.
Export
After debate completes, export results via document-delivery skill:
- PPTX: stakeholder presentations from synthesis
- DOCX: detailed documentation from full transcript
- PDF: archival with metadata (topic, participants, cost)
Attribution
- Original Skill: AI Debate Hub by wolverin0
- Version: v4.8
- Repository: https://github.com/wolverin0/claude-skills
- License: MIT
- Enhancements: Claude-Octopus integration (session-aware storage, quality gates, cost tracking, document export, provider debate with Sonnet)
Ready to debate! Users can invoke with /octo:debate <question> or natural language.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

