“A Day in the Code-Base Café”
A concept note for combining a virtual company simulation with slice-of-life role-play
1. High-level idea
- Each employee is a software agent (in the MAS / BDI sense).
- The company itself is a business-process sandbox (sprints, tickets, releases).
- Layered on top is a life-simulation veneer: morning coffee, gossip, after-work karaoke.
- The goal is not only to ship features, but also to surface emergent, everyday stories.
Think “Factorio meets The Office” or a lightweight “Stardew Valley” set in a SaaS start-up.
2. Architecture sketch
| Layer | Purpose | Typical Tech |
|---|
| 0. Time & World Engine | Global clock, locations (home, subway, office), weather, holidays | Godot, Unity, custom discrete-event sim |
| 1. Core MAS | BDI or Goal/Plan reasoning for work tasks | JaDE, SPADE, Mesa (Python), AnyLogic |
| 2. BPM / Task Board | Jira-like ontology: Epics → Stories → Sub-tasks | Camunda, BPMN engine, Kanban DSL |
| 3. Slice-of-Life Engine | Routines, circadian rhythms, social drives, mood | GOAP, Social-physics (Friendship edges) |
| 4. Narrative Weaving | Turns raw events → “episodes”, ensures dramatic arcs | Plot graphs, MEXICA, StoryAssembler |
| 5. UI / Observer | 2D/3D viewer, chat logs, comic panels, analytics dashboard | React, Unreal, or text-only CLI |
3. Agent anatomy (example: “Junior Dev ‑ Emi”)
-
Beliefs
– ticket( #42, status:in_progress )
– mentor = "Sora"
– coffee_level = low
-
Desires
– Finish ticket #42 before sprint demo
– Boost relationship with mentor
– Maintain caffeine above threshold
-
Intentions / Plans
- Walk to kitchen → Brew latte
- Ask Sora for code-review → Pair-program
- Push PR → Update Jira → Celebrate with gacha pull at lunch
-
Personal traits: shy(0.6), diligence(0.8), otaku(1.0)
-
Social edges: friends(Emi, Mika, 0.7), admiration(Emi ➜ Sora, 0.9)
4. A sample Monday timeline (condensed)
| Time | Global Event | Agent micro-stories |
|---|
| 08:00 | Clouds & drizzle | Emi posts “subway delay 😭” in #standup |
| 09:15 | Daily stand-up | CTO Riku praises Sora; Emi blush-reaction emote |
| 10:30 | Build breaks | Riku → angry(0.6); HR Mika brings donuts, morale +0.2 |
| 12:00 | Lunch at Code-Base Café | gossip(employees, topic: “new intern”) |
| 14:00 | Pair-programming | friendship_increment(Emi, Sora, +0.05) |
| 17:30 | Sprint review passes | global_mood ++ ; “after-work karaoke?” poll |
| 19:00 | Karaoke side-quest | choose_song(); reveal hidden talent of Q.A. lead |
Notice how mundane beats (commute, donuts) intertwine with work beats (build break, sprint review) to form a coherent “episode”.
5. Emergent use-cases
-
Training & On-boarding Sims
Observe stress propagation, collaboration decay, or best-practice diffusion.
-
Narrative Content Generator
Auto-produce web-comic scripts or light-novel chapters based on generated logs.
-
Affective UX research
Study how tool friction (e.g., slow CI) trickles into morale and productivity.
-
Serious games / Edutainment
Let players intervene as HR or Scrum-Master NPC to steer both KPIs and happiness.
6. Key mechanics to blend “company” and “life”
Mechanic → Implementation hint → Narrative flavor
- Energy & Mood meters → Decay over time, restore via coffee, breaks → “Need coffee or die 💤”
- Skill growth → Reinforcement learning on code tasks → “Level-up” chime after merged PR
- Reputation & Trust → Social graph + edge weights → Office politics & mentorship arcs
- Random Slice-Events → Poisson distribution: plumbing leak, surprise birthday cake → “Today’s mini-drama”
7. Algorithmic considerations
• Multi-objective utility: work_score vs life_score (Pareto front).
• Conflict resolution: when stand-up overlaps with urgent restroom need.
• Memory window: short-term episodic (last 8h) vs long-term identity (career goals).
• Narrative “beats”: ensure at least 1 tension spike & 1 resolution per 24h cycle.
8. Challenges & open research
- Narrative Coherence vs Agent Autonomy – Too much autonomy → boring chaos; too much plot → theme-park rails.
- Scalability – O(N²) social edge updates; need spatial partitioning or gossip protocols.
- Evaluation Metrics – Beyond throughput, how to quantify “wholesome slice-of-life quality”?
- Ethics & Representation – Avoid stereotyping; allow culture-specific office norms.
9. First steps if you’d like to prototype
- Start with Mesa (Python MAS) + NetworkX for social graph.
- Model only 3 roles: PM, Dev, Designer.
- Use a simple Kanban JSON + YAML routine templates.
- Run a 24-hour sim and export logs.
- Pipe logs into a GPT prompt: “Summarize today’s office slice-of-life episode.”
- Iterate: add coffee machine, personalities, weather—see narratives bloom.
TL;DR
By grafting a life-simulation layer onto a business-process MAS, you create a sandbox where deadlines, coffee shortages, mentorship, and spontaneous karaoke organically mix. The result is a living workplace dramedy—useful for research, training, or just heart-warming geek entertainment. 🎉