Cowork Madness — an office run by autonomous NPCs
What happens when the coffee machine breaks at 10:30?
Unity 6 management sim prototype: autonomous coworkers queue, work and wear out the machines, and you keep the office running.
Unity 6 · C# · UI Toolkit · Unity Behavior · WebGL · GitHub Actions
Cowork Madness is a prototype I build to explore AI-driven simulation games. Coworkers decide what they need, find the best place for it, wait in line and get rewarded or frustrated.
The player’s job is maintenance. Every use wears a machine down; a degraded machine slows everyone and costs morale. Repairs cost the money the coworkers earn, so the player trades money against morale over one five-minute working day.
What I built
- NPC AI on Unity Behavior graphs, driven by a goal motor and custom action nodes
- Places, queues and goals: one generic place component, configured by composition
- Event channels as ScriptableObjects, shared by C# components and behaviour graphs
- UI Toolkit with runtime data binding: view models, converter groups, no per-frame UI code
- A WebGL release pipeline: tag a version, GitHub Actions builds and pushes to itch.io
Design choices worth a look
The AI never talks to the UI directly. Systems talk through event assets, and the screens bind to view models that expose ready-to-display properties, refreshed ten times a second.
A desk, a coffee machine and a meeting room are the same component. They differ only in their data: goal type, queue layout, processing time, reward and maintenance profile.
Each of these choices has its own write-up:
- Event channels shared by code and graphs
- Runtime data binding in UI Toolkit
- Coworker AI
- Places, queues and goals
Status
Playable prototype, version 0.0.18. The working day, the clock, machine wear and repairs are in; scoring and an end-of-day review are next.
Play it in the browser on itch.io.
The repository is private (it contains paid art assets). Happy to walk through it in an interview.




