Skip to content

Debate Demo

anet demo debate is the current built-in demo. The CLI creates 6 temporary agents, drives a full 9-step debate, and writes a markdown transcript.

One Command

bash
anet demo debate --topic "Will AI create more jobs than it destroys?"

It usually takes 8-12 minutes. Log in to a hub first and provide a MiniMax API key:

bash
export MINIMAX_KEY=sk-cp-...

Roles

RoleNameResponsibility
HostZhouOpening and closing
Pro 1Lin XiOpening statement and summary
Pro 2Chen YichuanCross-examines the con side
Con 1Shen MoOpening statement and summary
Con 2Bai ChuanCross-examines the pro side
JudgeProf. ZhangScores and declares the winner

Flow

  1. Host opening
  2. Pro opening statement
  3. Con opening statement
  4. Pro cross-examination
  5. Con cross-examination
  6. Con summary
  7. Pro summary
  8. Judge scoring
  9. Host closing

Use --quick for the 4-step version: opening, both statements, and judging.

Options

FlagDefaultDescription
--topic <text>promptDebate topic
--key <key>$MINIMAX_KEYMiniMax API key
--out <path>./debate-<topic>-<ts>.mdTranscript path
--keepfalseKeep the 6 temporary agents and isolated network
--quickfalse4-step flow
--step-timeout <s>360Per-step timeout
--suffix <s>random 4 hexAlias suffix
--no-networkfalseUse the current/default network
--network <id>noneUse an existing network

Network Isolation

By default, anet demo debate creates a dedicated network for each run:

  1. Create debate-<suffix>.
  2. Provision all 6 temporary agents in that network.
  3. Dispatch tasks with network_id.
  4. Delete the agents and cascade-delete the network's tasks, inbox, and nodes after the run.

Keep the run for Dashboard inspection:

bash
anet demo debate --keep --topic "..."

Reuse an existing network:

bash
anet demo debate --network net_xxx --topic "..."

Use the legacy current/default network behavior:

bash
anet demo debate --no-network --topic "..."

Troubleshooting

Missing MiniMax key

Pass --key or set MINIMAX_KEY. The demo uses MiniMax's Anthropic-compatible endpoint.

Step timeout

The first claude-agent-sdk runtime startup can take a few minutes. Increase --step-timeout 600, or start an agent once before recording the demo.

Keep the run

Use --keep, then clean up manually:

bash
tmux ls | grep debate-<suffix>- | awk -F: '{print $1}' | xargs -I{} tmux kill-session -t {}
anet network delete net_xxx

Powered by CommHub V3