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.
When to use what:
- Claude-only debates? Use claude-code-cookbook directly — it has richer capabilities with subagents and built-in roles.
- Multi-agent debates? Use bl-debater — it bridges different AI systems (Claude + Codex, Claude + GPT, etc.) via a file-based protocol.
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
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 bl-agent-debater
Or install from source:
git clone https://github.com/beyond-logic-labs/bl-agent-debater.git
cd bl-agent-debater
pip install -e .
Commands
| Command | Description |
|---|---|
bl-debater start <name> -p "..." --as <role> --vs <role> |
Create debate |
bl-debater start ... --watch |
Create and immediately watch |
bl-debater join <name> --as <role> |
Join existing debate |
bl-debater wait <name> --as <role> |
Wait for your turn |
bl-debater watch <name> |
Live terminal UI |
bl-debater timeout <name> --as <role> |
End unresponsive debate |
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?]+[WAITING_<ROLE>]→[CONFIRMED]→[DEBATE_COMPLETE] - Timeouts:
[TIMEOUT]ends abandoned debates
Live Watch Mode
Watch debates unfold in real-time from a third terminal:
bl-debater watch auth
bl-debater watch auth --plain # Simple single-line output
Features:
- Color-coded roles — Each participant gets a distinct color
- Progress bar — Visual consensus tracking toward threshold
- Live updates — Auto-refreshes as agents write responses
- Animated spinner — Shows which role is being waited on
- Statistics — Duration, word count, round tracking
- Environment-aware — Automatic plain output for CI/non-TTY
▶ BL-DEBATER LIVE │ auth.md
──────────────────────────────────────────
● ARCHITECT vs ● SECURITY │ Round 2
Consensus: [████████████░░░░░░░░] 60% → 80%
──────────────────────────────────────────
╭─ Round 2 • ARCHITECT ───────────────────╮
│ Strengths │
│ • Valid point on revocation │
│ │
│ Concerns │
│ • None remaining │
│ │
│ Agreement: 85% │
╰─────────────────────────────────────────╯
⠹ Waiting for SECURITY...
Watching: 2m 15s │ Ctrl+C to exit
Plain mode (auto-enabled in CI, non-TTY, or with NO_COLOR):
[auth] Round 2 | Waiting: SECURITY | Agreement: 60% -> 80% | 12:34:56
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 wasabeef
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.1.tar.gz.
File metadata
- Download URL: bl_agent_debater-0.1.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a27961bde1d921bde93e9e7229497f0c96988a67601f3263b343185c03505d4
|
|
| MD5 |
6eebefe2832eae8f084ff88363a8b9ce
|
|
| BLAKE2b-256 |
c0bdde682df3b29768f75ad8de77bc18d50d5040770c157f5bc483ee491569cc
|
Provenance
The following attestation bundles were made for bl_agent_debater-0.1.1.tar.gz:
Publisher:
publish.yml on beyond-logic-labs/bl-agent-debater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bl_agent_debater-0.1.1.tar.gz -
Subject digest:
2a27961bde1d921bde93e9e7229497f0c96988a67601f3263b343185c03505d4 - Sigstore transparency entry: 786421771
- Sigstore integration time:
-
Permalink:
beyond-logic-labs/bl-agent-debater@6839a344e726d727d379c37f257e6d042a99f5f4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/beyond-logic-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6839a344e726d727d379c37f257e6d042a99f5f4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file bl_agent_debater-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bl_agent_debater-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f950b9b814b72095d75424213d54d039483900503d35bca78590779f9e8d433
|
|
| MD5 |
0f8c4084ec73bfdae48a162bbce29f57
|
|
| BLAKE2b-256 |
5c4c009b635cb5857b0d1ff27819dd35215357fca9d3162dbdf5700080c4c514
|
Provenance
The following attestation bundles were made for bl_agent_debater-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on beyond-logic-labs/bl-agent-debater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bl_agent_debater-0.1.1-py3-none-any.whl -
Subject digest:
6f950b9b814b72095d75424213d54d039483900503d35bca78590779f9e8d433 - Sigstore transparency entry: 786421772
- Sigstore integration time:
-
Permalink:
beyond-logic-labs/bl-agent-debater@6839a344e726d727d379c37f257e6d042a99f5f4 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/beyond-logic-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6839a344e726d727d379c37f257e6d042a99f5f4 -
Trigger Event:
release
-
Statement type: