{"id":48044617,"url":"https://github.com/agent-sh/debate","last_synced_at":"2026-04-04T14:16:55.244Z","repository":{"id":339696619,"uuid":"1163064831","full_name":"agent-sh/debate","owner":"agent-sh","description":"Structured multi-round debate between AI tools with proposer/challenger roles and verdict","archived":false,"fork":false,"pushed_at":"2026-03-23T02:31:52.000Z","size":1777,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T20:50:22.608Z","etag":null,"topics":["ai","ai-tools","automation","claude","debate","devtools","javascript","llm","multi-agent","openai"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agent-sh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-21T03:28:28.000Z","updated_at":"2026-03-24T23:58:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/agent-sh/debate","commit_stats":null,"previous_names":["agent-sh/debate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agent-sh/debate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fdebate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fdebate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fdebate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fdebate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agent-sh","download_url":"https://codeload.github.com/agent-sh/debate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fdebate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-tools","automation","claude","debate","devtools","javascript","llm","multi-agent","openai"],"created_at":"2026-04-04T14:16:55.119Z","updated_at":"2026-04-04T14:16:55.224Z","avatar_url":"https://github.com/agent-sh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debate\n\nStructured multi-round debate between two AI tools - one proposes, one challenges, and an orchestrator delivers a verdict.\n\n## Why\n\nA single AI tool gives you one perspective. When the stakes are high - architecture decisions, schema design, migration strategies - you want adversarial pressure-testing. debate pits two AI tools against each other in a structured format with enforced rules: the challenger must find flaws before agreeing, both sides must cite evidence, and the orchestrator must pick a winner.\n\nUse cases:\n\n- Stress-test an architecture decision before committing (microservices vs monolith, event sourcing vs CRUD)\n- Get adversarial review of a proposed schema or API design\n- Compare two approaches with structured arguments rather than vibes\n- Force a devil's advocate perspective on a plan you are leaning toward\n\n## Installation\n\n```bash\nagentsys install debate\n```\n\nRequires at least two AI CLI tools installed. See [consult](https://github.com/agent-sh/consult) for individual tool install commands.\n\n## Quick Start\n\n```bash\n# Codex argues for, Gemini challenges - 2 rounds about microservices\n/debate codex vs gemini about microservices vs monolith\n\n# Thorough 3-round debate with explicit flags\n/debate \"Should we use event sourcing?\" --tools=claude,gemini --rounds=3 --effort=high\n\n# Include the current git diff as context for both tools\n/debate codex vs gemini about this refactoring approach --context=diff\n```\n\n## How It Works\n\n1. **Parse** - extracts topic, tools, rounds, and effort from natural language or flags\n2. **Detect** - scans PATH for installed AI CLI tools; requires at least two\n3. **Resolve** - if parameters are missing, presents an interactive picker (proposer, challenger, effort, rounds, context)\n4. **Debate** - executes rounds sequentially. Each round:\n   - The proposer argues for the topic (round 1) or defends against challenges (round 2+)\n   - The challenger identifies flaws, missing considerations, and alternatives\n   - Both must support claims with evidence; unsupported claims are flagged\n5. **Verdict** - the orchestrator (Opus) reads all exchanges and delivers a structured synthesis: winner, agreements, disagreements, unresolved questions, and an actionable recommendation\n\nThe challenger operates under adversarial rules - it must lead with what is wrong or missing before acknowledging agreements, and cannot agree with unsupported claims.\n\n## Usage\n\n### Natural language\n\n```bash\n/debate codex vs gemini about microservices vs monolith\n/debate with claude and codex about our auth implementation\n/debate thoroughly gemini vs codex about database schema design\n/debate codex vs gemini 3 rounds about event sourcing\n```\n\n### Explicit flags\n\n```bash\n/debate \"Redis vs PostgreSQL for caching\" --tools=codex,opencode\n/debate \"Should we use event sourcing?\" --tools=claude,gemini --rounds=3 --effort=high\n/debate \"Performance optimization\" --tools=codex,gemini --context=diff\n```\n\n### Flags\n\n| Flag | Values | Default | Description |\n|------|--------|---------|-------------|\n| `--tools` | TOOL1,TOOL2 | interactive | Proposer and challenger (comma-separated) |\n| `--rounds` | 1-5 | 2 | Number of back-and-forth exchanges |\n| `--effort` | low, medium, high, max | interactive | Reasoning depth for both tools |\n| `--context` | diff, file=PATH, none | none | Codebase context shared with both tools |\n| `--model-proposer` | any model identifier | from effort | Override proposer model |\n| `--model-challenger` | any model identifier | from effort | Override challenger model |\n\n### Debate output format\n\nEach debate produces a structured result:\n\n- **Rounds** - proposer opening, challenger response, and subsequent exchanges displayed as they complete\n- **Verdict** - winner with cited evidence from the debate\n- **Debate quality** - rated on genuine disagreement, evidence quality, and challenge depth\n- **Agreements** - points both sides converged on, with supporting evidence\n- **Disagreements** - points where they diverge, with each side's position\n- **Unresolved questions** - gaps neither side addressed\n- **Recommendation** - actionable next step (the orchestrator must pick a direction)\n\n## Requirements\n\n- [agentsys](https://github.com/agent-sh/agentsys) runtime\n- Node.js (for ACP transport detection)\n- At least two supported AI CLI tools on PATH (claude, gemini, codex, opencode, copilot, or kiro)\n\n## Related Plugins\n\n- [consult](https://github.com/agent-sh/consult) - single-tool consultation for quick second opinions\n- [agentsys](https://github.com/agent-sh/agentsys) - plugin runtime and orchestration\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-sh%2Fdebate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagent-sh%2Fdebate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-sh%2Fdebate/lists"}