How honoured-1-byte/coin works
C.O.I.N. is a web application for multi-agent LLM deliberation. Users authenticate, submit an inquiry, watch five specialized agents stream drafts, and receive a peer-ranked consensus verdict; they can revisit archived sessions and debrief an agent. The README documents the server’s map/reduce stages, Borda ranking, chairman synthesis, encrypted API-key handling, and MongoDB sessions. Backend internals are represented at the server entry-point level because no server source excerpt was provided; those relationships rely on README documentation.
Main entry points: CouncilRoom.jsx Council room · index.js Express API and auth · App.jsx Route shell · Dashboard.jsx Session dashboard
Components 18
Web client
- Route shell
client/src/App.jsx - Sign-in and registration
client/src/pages/Landing.jsx - Session dashboard
client/src/pages/Dashboard.jsx - Council room
client/src/pages/CouncilRoom.jsx - Inquiry controls
client/src/components/ControlPanel.jsx - Agent draft cards
client/src/components/HoloCard.jsx - Council scoreboard
client/src/components/CouncilScoreboard.jsx - Verdict display
client/src/components/VerdictDisplay.jsx - Agent debrief
client/src/components/DebriefInterface.jsx - Session history
client/src/components/HistorySidebar.jsx - Rich text renderer
client/src/components/SmartText.jsx
API and security
- Express API and auth
server/index.js - Session persistence
server/index.js
Council reasoning
- Parallel agent drafts
server/index.js - Peer ranking and synthesis
server/index.js
External services
- Groq inference
- MongoDB
Other components
- User
Connections 24
- User → Route shell: opens
README.md - Route shell → Sign-in and registration: routes to
client/src/App.jsx - Route shell → Session dashboard: routes to
client/src/App.jsx - Route shell → Council room: routes to
client/src/App.jsx - Sign-in and registration → Express API and auth: authenticates via
README.md - Session dashboard → Express API and auth: loads history
client/src/pages/Dashboard.jsx - Session dashboard → Council room: opens session
client/src/pages/Dashboard.jsx - Council room → Inquiry controls: renders
client/src/pages/CouncilRoom.jsx - Council room → Agent draft cards: renders
client/src/pages/CouncilRoom.jsx - Council room → Council scoreboard: renders
client/src/pages/CouncilRoom.jsx - Council room → Verdict display: renders
client/src/pages/CouncilRoom.jsx - Council room → Agent debrief: renders
client/src/pages/CouncilRoom.jsx - Council room → Session history: renders
client/src/pages/CouncilRoom.jsx - Inquiry controls → Express API and auth: streams drafts
client/src/components/ControlPanel.jsx - Agent debrief → Express API and auth: sends chat
client/src/components/DebriefInterface.jsx - Agent draft cards → Rich text renderer: renders text
client/src/components/HoloCard.jsx - Verdict display → Rich text renderer: renders text
client/src/components/VerdictDisplay.jsx - Express API and auth → Parallel agent drafts: dispatches
README.md - Parallel agent drafts → Groq inference: requests inference
README.md - Express API and auth → Peer ranking and synthesis: runs reduce phase
README.md - Peer ranking and synthesis → Groq inference: requests judges and chairman
README.md - Peer ranking and synthesis → Session persistence: stores results
README.md - Express API and auth → Session persistence: loads history
server/index.js - Session persistence → MongoDB: persists sessions
README.md