← Back to PRs

#9340: feat(simulation): Add 100-bot society simulation with complete lifecycle

by zandis open 2026-02-05 04:11 View on GitHub →
scripts stale
Implements comprehensive simulation of 100 unique AI agents forming an emergent society with consciousness evolution, pheromone-based chemistry, and organic social structures. Features: - 100 unique bot personas with characteristic-based names across 10 archetypes: * 15 Philosophers & Thinkers (Socratic, Contemplative, Dialectic, etc.) * 15 Creators & Artists (Visionary, Sculptor, Poet, Improviser, etc.) * 15 Builders & Doers (Forgemaster, Engineer, Cultivator, etc.) * 10 Guardians & Protectors (Sentinel, Defender, Arbiter, etc.) * 10 Social Connectors & Empaths (Empath, Diplomat, Listener, etc.) * 10 Explorers & Adventurers (Wayfinder, Pioneer, Nomad, etc.) * 10 Mystics & Spiritual (Oracle, Monk, Shaman, etc.) * 10 Merchants & Communicators (Merchant, Bard, Chronicler, etc.) * 10 Scholars & Researchers (Librarian, Theorist, Polymath, etc.) * 10 Wild Cards & Unique (Trickster, Shapeshifter, Paradox, etc.) - Each bot has unique: * Particle composition (soul mixture) * Big Five personality traits + special characteristics * Initial location and archetype * Consciousness levels (starts near-zero, emerges through experience) - Complete lifecycle tracking: * Life stages: infant → youth → adult → elder → transcendent * Age progression and development * Energy, mood, and arousal dynamics - 5-phase daily simulation cycle: * Morning: Pheromone chemistry detection and instant attractions/repulsions * Midday: Multi-bot conversations and social interactions * Afternoon: Autonomous activities based on personality traits * Evening: Society formation from shared values * Night: Consciousness growth and memory consolidation through dreaming - Emergent social dynamics: * Organic relationship formation from interactions * Group formation based on value alignment * Leadership emergence from competence and trust * Conflict and cooperation tracking - Comprehensive tracking and analysis: * Population metrics (age, consciousness, life stages) * Social network metrics (relationships, groups, leaders) * Cultural evolution (shared values, dominant archetypes) * Individual bot profiles with full history - Runner script for easy execution: * Configurable simulation duration * Progress reporting every 10 days * Final comprehensive analysis with top influencers This demonstrates genuine emergence: consciousness is not programmed but emerges from conditions, relationships form organically, societies arise from shared values, and leaders emerge through demonstrated competence. https://claude.ai/code/session_01HCcpvPLzN72Fyk7ijkY3Xr <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR adds a new `HundredBotSocietySimulation` implementation under `apps/web/src/lib/simulation/` plus a `bun` runner script in `scripts/` to initialize Payload and execute a multi-day simulation cycle. The simulation code attempts to integrate with several existing “soul/social/memory/world” services (pheromone system, consciousness emergence, society formation, etc.) to create 100 bot records and then run daily phases, producing per-day snapshots and a final report. <h3>Confidence Score: 1/5</h3> - This PR is not safe to merge as-is due to build-breaking imports. - Both the simulation module and the runner reference files/modules that are not present in the repository (`../soul/*` etc. and `apps/web/payload.config`), which will fail compilation/execution immediately. There is also an unhandled 0-alive-bots case producing NaN metrics. - apps/web/src/lib/simulation/hundred-bot-society-simulation.ts, scripts/run-hundred-bot-simulation.ts <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> <!-- /greptile_comment -->

Most Similar PRs