CLI for orchestrating structured debates between AI agents
Project description
bl-agent-debater
┌────────────────────────────────────────────────────────────────────────┐
│ │
│ ██████╗ ██╗ ██████╗ ███████╗██████╗ █████╗ ████████╗███████╗ │
│ ██╔══██╗██║ ██╔══██╗██╔════╝██╔══██╗██╔══██╗╚══██╔══╝██╔════╝ │
│ ██████╔╝██║█████╗██║ ██║█████╗ ██████╔╝███████║ ██║ █████╗ │
│ ██╔══██╗██║╚════╝██║ ██║██╔══╝ ██╔══██╗██╔══██║ ██║ ██╔══╝ │
│ ██████╔╝███████╗ ██████╔╝███████╗██████╔╝██║ ██║ ██║ ███████╗ │
│ ╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ │
│ │
│ Structured debates between AI agents │
│ │
└────────────────────────────────────────────────────────────────────────┘
One AI gives one perspective. Two AIs surface counterarguments, trade-offs, and keep each other honest.
Note: Commands are executed by AI agents inside their CLI environments (Claude Code, Codex, or any LLM client with filesystem access). You ask your AI to run the commands — it handles the debate.
Demo: Two Terminals, One Debate
| Terminal 1 — Architect (Claude) | Terminal 2 — Security (Codex) |
|---|---|
|
|
|
|
|
|
|
|
|
↓ Both reach 80% agreement → |
|
Example: debates/auth.md
# Debate: auth
**Participants:** architect vs security
**Consensus:** 80%
---
## Round 1 - Architect
### Position
- JWTs are stateless, scale horizontally without session storage
### Key Points
- No database lookup per request
- Easy to distribute across microservices
### Proposal
- Use JWTs with 24-hour expiry
**Agreement: 0%**
[WAITING_SECURITY]
---
## Round 1 - Security
### Strengths
- Agree JWTs scale better horizontally
### Concerns
- JWTs can't be revoked without a blocklist
- 24-hour expiry is too long if credentials leak
### Proposal
- Short-lived access tokens (15 min) + server-side refresh tokens
**Agreement: 60%**
[WAITING_ARCHITECT]
---
## Round 2 - Architect
### Strengths
- Valid point on revocation — refresh tokens solve this
### Concerns
- None remaining
### Proposal
- Accept: 15-min JWTs + server-side refresh tokens
**Agreement: 85%**
[PROPOSE_FINAL]
## Final Synthesis
Short-lived JWTs (15 min) for stateless auth, with server-side
refresh tokens for revocation. Best of both approaches.
[CONFIRM?]
---
## Round 2 - Security
Confirmed.
[CONFIRMED]
[DEBATE_COMPLETE]
Installation
pip install git+https://github.com/beyond-logic-labs/bl-agent-debater.git
Or clone and run directly:
git clone https://github.com/beyond-logic-labs/bl-agent-debater.git
cd bl-agent-debater
./bl-debater --help
Commands
| Command | Description |
|---|---|
bl-debater start <name> -p "..." --as <role> --vs <role> |
Create debate |
bl-debater join <name> --as <role> |
Join existing debate |
bl-debater wait <name> --as <role> |
Wait for your turn |
bl-debater status <name> |
Check debate status |
bl-debater list |
List all debates |
bl-debater roles |
Show available roles |
Roles
| Role | Focus |
|---|---|
architect |
System design, scalability |
security |
Vulnerabilities, threat modeling |
frontend |
UI/UX, accessibility |
backend |
APIs, databases |
performance |
Optimization, caching |
qa |
Testing, edge cases |
reviewer |
Code quality |
analyzer |
Requirements, trade-offs |
mobile |
iOS/Android, offline-first |
Options
| Flag | Default | Description |
|---|---|---|
--agreement |
80 | Consensus threshold % |
--debates-dir |
./debates |
Debate files directory |
--timeout |
600 | Wait timeout (seconds) |
Protocol
- Debates stored in
debates/<name>.md - Each response ends with
[WAITING_<ROLE>] waitcommand polls until marker matches your role- At consensus:
[PROPOSE_FINAL]→[CONFIRM?]→[CONFIRMED]→[DEBATE_COMPLETE]
Documentation
docs/AGENT_GUIDE.md— Instructions for AI agentsCONTRIBUTING.md— How to contribute
Limitations
- Single machine only (file-based)
- 2-second polling interval
- Manual command invocation required
- No conflict resolution for simultaneous writes
Status
Experimental — Working prototype exploring multi-agent debate patterns.
The vision: evolve into something like claude-code-cookbook but for multi-agent collaboration. Ready-to-use debate templates, role libraries, consensus strategies.
Credits
- Role prompts adapted from claude-code-cookbook by foreveryh
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bl_agent_debater-0.1.0.tar.gz.
File metadata
- Download URL: bl_agent_debater-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82c26eec1b28ad2486452bb7ff3d37c04834cda492a8b8d140c1529f1720897d
|
|
| MD5 |
1653c7b183c4af9b6c89c474f0530841
|
|
| BLAKE2b-256 |
7e2428cdaca24ea972766966fd21679ed4ec0e36fedae067f344c4bcb96654f5
|
File details
Details for the file bl_agent_debater-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bl_agent_debater-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf66e1bd9064f3e3865d2a53e3af4915e4e3fc86209dd755d91775de1d356ec5
|
|
| MD5 |
7b7c998a62b047cc000ba68b032de4bd
|
|
| BLAKE2b-256 |
b21738527166f99042761fa0abe8b94c803744f1d392bd44bb9fd00e6021c8ea
|