# 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`, and `overall`, 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 pasted `id,question` data and executes rounds sequentially. ## Run 1. Optional server-side OpenAI API key: ```bash export OPENAI_API_KEY="your_key_here" ``` 2. Optional model override: ```bash export OPENAI_MODEL="gpt-4.1-mini" export GEMINI_MODEL="gemini-2.5-flash" ``` 3. Optional server-side API keys: ```bash export GEMINI_API_KEY="your_gemini_key_here" ``` 4. Start server: ```bash npm start ``` 5. Open: `http://localhost:3000`