1.9 KiB
1.9 KiB
CooCom Agentic Chat (Simple)
Two-side API decision chat:
- Left: 4 cooperative agents
- Right: 4 competitive agents
- Provider support: OpenAI or Gemini (switchable from in-app settings)
Rules implemented:
- Max 4 agents per side.
- Turn-based speaking (one at a time per side) with dynamic queueing (non-fixed order).
- Personality matching: each round randomly selects 4 personalities from a pool of 10, and both sides use the same 4 personalities (mode-specific missions) for fair comparison.
- Agent prompt includes peer roster awareness, lane discipline, discussion phase arc (early/middle/late), explicit gap-filling vs falsification behavior, and phrase-level voice anchors.
- 30-second discussion window.
- At 20s elapsed (10s remaining), moderator sends wrap-up alert.
- Final conclusion generated for each side with mode-specific templates (cooperative action/risk/success synthesis vs competitive position/assumption/falsification synthesis).
- Automatic judge scores both conclusions on
clarity,practicality,usefulness,rigor, andoverall, using transcript evidence for process quality, then picks a winner. - Session scoreboard tracks cumulative wins for cooperative vs competitive (and ties).
- Scoreboard keeps per-round history in localStorage and can be cleared.
- Settings modal stores selected provider plus per-provider API keys in localStorage for this browser.
- CSV test runner (
+icon) accepts pastedid,questiondata and executes rounds sequentially.
Run
- Optional server-side OpenAI API key:
export OPENAI_API_KEY="your_key_here" - Optional model override:
export OPENAI_MODEL="gpt-4.1-mini" export GEMINI_MODEL="gemini-2.5-flash" - Optional server-side API keys:
export GEMINI_API_KEY="your_gemini_key_here" - Start server:
npm start - Open:
http://localhost:3000