AI Social Lab is a local-first simulation sandbox for multi-agent social scenes, world rules, and experiment orchestration.
The repository currently supports:
- a Vite + React web app
- an Electron shell for desktop use
- local inference through Ollama
- cloud inference through Gemini
- batch experiment runners and a local orchestration API
For the exhaustive developer manual, see README.developer.md.
- Node.js 18+
- npm 9+
- Optional: Ollama for local generation
- Optional: Gemini API key for cloud generation
npm installnpm startStarts the Vite development server on http://127.0.0.1:3000.
npm run electron:devStarts the Vite dev server and the Electron shell together.
npm run buildBuilds the web app into build/.
npm run electron:buildBuilds the web app and packages a Windows desktop build with electron-packager.
The repo keeps a small set of generated files in sync before dev/build runs:
public/vector.worker.jsis synced fromsrc/services/vector.worker.jssrc/locales/*.jsonis synced fromsrc/translations.js
If you need to run them directly:
npm run sync:generatednpm run world:validate
npm testTargeted experiment/runtime tests can also be run with vitest directly.
Run the local experiment API:
npm run society:apiRun a batch pipeline:
npm run society:batch -- --ticks 60 --agents 20Useful modes:
--mode protocol--mode ablation--mode benchmark--mode benchmark-mc--mode benchmark-distributed
- Web dev server:
127.0.0.1:3000 - Ollama default:
127.0.0.1:11434 - Society API server:
127.0.0.1:4488
- The current user-facing product name is
AI Social Lab. - The npm package name remains
aiagent-app. - Desktop packaging uses
electron-packager, notelectron-builder.
See TROUBLESHOOTING.md.