924 B
924 B
CooCom Agentic Chat (Simple)
Two-side OpenAI API decision chat:
- Left: 4 cooperative agents
- Right: 4 competitive agents
Rules implemented:
- Max 4 agents per side.
- Turn-based speaking (one at a time per side) with dynamic queueing (non-fixed order).
- Agent role cards (different lens per agent) to reduce repetitive outputs.
- 30-second discussion window.
- At 20s elapsed (10s remaining), moderator sends wrap-up alert.
- Final conclusion generated for each side.
- Automatic judge scores both conclusions (clarity, practicality, usefulness, overall) and picks a winner.
- Session scoreboard tracks cumulative wins for cooperative vs competitive (and ties).
Run
- Export API key:
export OPENAI_API_KEY="your_key_here" - Optional model override:
export OPENAI_MODEL="gpt-4.1-mini" - Start server:
npm start - Open:
http://localhost:3000