xiaoluolyg--god
394 行
23 KiB
Markdown
394 行
23 KiB
Markdown
<h1 align="center">
|
|
<img src="docs/assets/logo_no_bg.png" alt="GOD logo" height="32" />
|
|
GOD · Govern · Observe · Direct
|
|
</h1>
|
|
|
|
<p align="center">
|
|
<img src="docs/assets/screenshots/00-hero.png" alt="GOD — Govern · Observe · Direct" width="100%" />
|
|
</p>
|
|
<p align="center">
|
|
<b>🌩️ Be like a god to a town of agents.</b><br/>
|
|
Pause time. Whisper to a soul. Bend the next step. Reset the world — all from a single click.
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://xiaoluolyg.github.io/GOD/replays/god-town/"><b>▶ Try browser replay</b></a>
|
|
· no install, no API key ·
|
|
<a href="#-quick-start"><b>Run locally</b></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="#-live-demo"><b>🌐 Live Demo</b></a> ·
|
|
<a href="#-quick-start"><b>🚀 Quick Start</b></a> ·
|
|
<a href="#-updates">Updates</a> ·
|
|
<a href="#%EF%B8%8F-roadmap">Roadmap</a> ·
|
|
<a href="#-highlights">Highlights</a> ·
|
|
<a href="#-features">Features</a> ·
|
|
<a href="#-built-in-experiments">Built-in Experiments</a> ·
|
|
<a href="https://xiaoluolyg.github.io/GOD/">Public Site</a> ·
|
|
<a href="https://xiaoluolyg.github.io/GOD/developer/">Developer Docs</a> ·
|
|
<a href="CONTRIBUTING.md">Contributing</a> ·
|
|
<a href="README.zh-CN.md">🌏 中文</a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://github.com/XiaoLuoLYG/GOD/releases/tag/v0.2.0">
|
|
<img alt="Release" src="https://img.shields.io/github/v/release/XiaoLuoLYG/GOD?style=flat-square" />
|
|
</a>
|
|
<a href="https://xiaoluolyg.github.io/GOD/replays/god-town/">
|
|
<img alt="Live replay" src="https://img.shields.io/badge/demo-browser%20replay-22c55e?style=flat-square" />
|
|
</a>
|
|
<img alt="Python" src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" />
|
|
<img alt="React" src="https://img.shields.io/badge/React-18-61DAFB?style=flat-square&logo=react&logoColor=black" />
|
|
<img alt="Vite" src="https://img.shields.io/badge/Vite-6-646CFF?style=flat-square&logo=vite&logoColor=white" />
|
|
<img alt="No-Code Setup" src="https://img.shields.io/badge/setup-no--code-22c55e?style=flat-square&logo=googlechrome&logoColor=white" />
|
|
<img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" />
|
|
<img alt="PRs welcome" src="https://img.shields.io/badge/PRs-welcome-14b8a6?style=flat-square" />
|
|
</p>
|
|
|
|
---
|
|
|
|
> Most agent-society demos let you watch a simulation play out. GOD gives you the controls.
|
|
>
|
|
> Replay a run, question any resident, change what happens next, and export a pack others can rerun, all from one screen.
|
|
> It is built for inspecting language-agent societies, not for claiming they are socially realistic.
|
|
|
|
## 🗓️ Updates
|
|
|
|
- **2026-06-11 · [v0.2.0](https://github.com/XiaoLuoLYG/GOD/releases/tag/v0.2.0):** public site with browser replays;
|
|
Experiment / Map / Agent pack hubs and ZIP import-export; Windows launcher; hardened first-run startup.
|
|
([#64](https://github.com/XiaoLuoLYG/GOD/pull/64) [#65](https://github.com/XiaoLuoLYG/GOD/pull/65))
|
|
- **2026-06-06 · Site & packs:** rebuilt public site and frontend; site packs delivered through release assets; map pack preview pages. ([#61](https://github.com/XiaoLuoLYG/GOD/pull/61) [#62](https://github.com/XiaoLuoLYG/GOD/pull/62) [#63](https://github.com/XiaoLuoLYG/GOD/pull/63))
|
|
- **2026-06-01 · Portable packs:** unified ExperimentPack downloads; GOD package import/export; curated experiment library.
|
|
([#57](https://github.com/XiaoLuoLYG/GOD/pull/57) [#59](https://github.com/XiaoLuoLYG/GOD/pull/59) [#60](https://github.com/XiaoLuoLYG/GOD/pull/60))
|
|
- **2026-05-30 · Windows launcher & hubs:** `god.cmd start` matches the macOS/Linux flow; AgentPack hubs and public replay exports; parallel JiuwenClaw requests. ([#45](https://github.com/XiaoLuoLYG/GOD/pull/45) [#49](https://github.com/XiaoLuoLYG/GOD/pull/49) [#50](https://github.com/XiaoLuoLYG/GOD/pull/50))
|
|
- **2026-05 · Operator studios:** bilingual control room, map-first `/ask` + `/intervene` rail,
|
|
Agent Studio, Map Studio, unified skill runtime.([#26](https://github.com/XiaoLuoLYG/GOD/pull/26) to [#31](https://github.com/XiaoLuoLYG/GOD/pull/31))
|
|
- **2026-05-21 · [v0.1.0](https://github.com/XiaoLuoLYG/GOD/releases/tag/v0.1.0):** first tagged release with two built-in experiments and the PKU campus map. ([#21](https://github.com/XiaoLuoLYG/GOD/pull/21) [#24](https://github.com/XiaoLuoLYG/GOD/pull/24))
|
|
|
|
## ✨ Highlights
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center" width="20%">⏯️<br/><b>Pause time</b><br/><sub>Stop, scrub, fast-forward, auto-play any live step.</sub></td>
|
|
<td align="center" width="20%">💬<br/><b>Ask anyone</b><br/><sub>Ask one resident, a group, or the whole town, mid-run.</sub></td>
|
|
<td align="center" width="20%">🎛️<br/><b>Steer the next step</b><br/><sub>Inject instructions and inspect how agents respond.</sub></td>
|
|
<td align="center" width="20%">🪄<br/><b>No-code setup</b><br/><sub>Configure model, scenario and agents from a browser wizard.</sub></td>
|
|
<td align="center" width="20%">🔄<br/><b>Reset run state</b><br/><sub>One command wipes a stale run and re-seeds a clean world.</sub></td>
|
|
</tr>
|
|
</table>
|
|
|
|
## 🖼️ Screenshots
|
|
|
|
<p align="center">
|
|
<img src="docs/assets/screenshots/01-control-room.png" alt="GOD control room" width="94%" />
|
|
</p>
|
|
|
|
<p align="center"><sub>Live control room: PKU map, step controls, targeted ask, and resident roster in one view.</sub></p>
|
|
|
|
## 🌐 Live Demo
|
|
|
|
Browse everything in your browser on the [**public site**](https://xiaoluolyg.github.io/GOD/): curated replays, map packs, agent packs, and downloadable experiments. No install or API key needed.
|
|
|
|
<p align="center">
|
|
<a href="https://xiaoluolyg.github.io/GOD/">
|
|
<img src="docs/assets/screenshots/03-public-site.png" alt="GOD public site" height="190" />
|
|
</a>
|
|
|
|
<a href="https://xiaoluolyg.github.io/GOD/map-packs/">
|
|
<img src="docs/assets/screenshots/04-map-packs.png" alt="GOD map packs" height="190" />
|
|
</a>
|
|
|
|
<a href="https://xiaoluolyg.github.io/GOD/agent-packs/">
|
|
<img src="docs/assets/screenshots/05-agent-packs.png" alt="GOD agent packs" height="190" />
|
|
</a>
|
|
</p>
|
|
|
|
<p align="center"><sub>Left to right: the public site homepage, downloadable map packs, and downloadable agent packs.</sub></p>
|
|
|
|
## 🚀 Quick Start
|
|
|
|
```bash
|
|
git clone https://github.com/XiaoLuoLYG/GOD.git
|
|
cd GOD
|
|
./scripts/god.sh start
|
|
```
|
|
|
|
Windows PowerShell: from the repo root, run `.\scripts\god.cmd start`.
|
|
|
|
On the first run the script installs everything, opens a **browser-based setup wizard**, and waits for you to finish. You never have to edit `.env` or pass command-line flags by hand.
|
|
|
|
<p align="center">
|
|
<img src="docs/assets/screenshots/02-setup-wizard-en.png" alt="GOD setup wizard" width="100%" />
|
|
</p>
|
|
|
|
<p align="center"><sub>The Setup Wizard: model config, experiment choice, and custom society creation in one browser flow.</sub></p>
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center" width="16%">🔌<br/><b>1. Model</b><br/><sub>Paste an OpenAI-compatible API key, base URL, and model name.</sub></td>
|
|
<td align="center" width="16%">🧭<br/><b>2. Choose</b><br/><sub>Open GOD Town, open PKU Trump Visit, or create your own.</sub></td>
|
|
<td align="center" width="16%">🧪<br/><b>3. Scenario</b><br/><sub>Describe your world: date, weather, vibes, rules.</sub></td>
|
|
<td align="center" width="16%">🤖<br/><b>4. Generate</b><br/><sub>The GOD agent drafts agent profiles and a step plan.</sub></td>
|
|
<td align="center" width="16%">✏️<br/><b>5. Edit</b><br/><sub>Tweak personalities, relationships, locations, or steps.</sub></td>
|
|
<td align="center" width="16%">▶️<br/><b>6. Launch</b><br/><sub>Publish the experiment and step into the control room.</sub></td>
|
|
</tr>
|
|
</table>
|
|
|
|
Any OpenAI-compatible endpoint works. When the wizard hands off, the script prints a URL like:
|
|
|
|
```text
|
|
http://127.0.0.1:5174/pixel-replay/god_town/1
|
|
```
|
|
|
|
Full walkthrough: **[Quickstart →](QUICKSTART.md)**
|
|
|
|
## 🧩 Features
|
|
|
|
| | Feature | What you get |
|
|
| --- | --- | --- |
|
|
| 🎬 | **Replay control** | Scrub a live or recorded replay by step. Pause, jump, auto-play. |
|
|
| 💬 | **Targeted ask** | Send a natural-language question to one agent, a group, or the whole town. |
|
|
| 🎛️ | **Real-time intervention** | Inject instructions into the *next* step; agents read them on their next turn. |
|
|
| ⌨️ | **Command composer** | Type `/ask` or `/intervene`, use `@Name #id` completions, and send operator commands without leaving the map. |
|
|
| 🪄 | **No-code setup wizard** | Browser-based: configure model + scenario, let GOD generate agents and steps, edit, then launch. |
|
|
| 🧬 | **Agent Studio** | Add or edit residents through a map-aware wizard for seed, identity, appearance, personality, routine, and review. |
|
|
| 🧭 | **Map Studio** | Generate or upload a map draft, calibrate locations and collisions, validate it, then publish it as a local map package. |
|
|
| 🧼 | **One-command reset** | Wipe replay data and seed a clean society without leaving the terminal. |
|
|
| 🗺️ | **Pixel town world** | A live tiled map: locations, actions, messages, statuses, all replay-friendly per step. |
|
|
| 🧱 | **Single current experiment** | `.env` stores local model/port settings; `.god/current_experiment.json` stores the one active experiment. |
|
|
| 🌐 | **Browser replays** | Curated replays on GitHub Pages, no local setup or API key required. |
|
|
| 📦 | **Pack library** | Import and export Experiment, Map, and Agent packs; browse more on the public site. |
|
|
| 🪟 | **Windows launcher** | `god.cmd start` on PowerShell, the same one-command flow as macOS/Linux. |
|
|
|
|
## 🛣️ Roadmap
|
|
|
|
### ✅ Completed
|
|
|
|
- [x] 🗺️ **Pluggable map packages**: drop a folder under `agentsociety/custom/maps/<map_id>/`, refresh the wizard, and a new world is selectable. Auto-discovered, validated, hot-swappable. See [`docs/MAP_PACKAGES.md`](docs/MAP_PACKAGES.md).
|
|
- [x] 🏫 **PKU campus map**: the PKU map package is bundled as a first-class map alongside The Ville.
|
|
- [x] 🪄 **No-code setup wizard**: browser flow for model setup, built-in experiment choice, custom experiment generation/editing, and launch.
|
|
- [x] 🧪 **Scripted experiments**: reproducible experiments ship as plain folders under `quick_experiments/<hypothesis>/<experiment>/`; choosing or publishing one makes it the current experiment.
|
|
- [x] 🎮 **Control Room command rail**: replay controls, resident roster, live console, targeted Ask, and Intervene now live in one map-first operator surface.
|
|
- [x] 🧬 **Agent Studio v1**: map-aware add/edit flow with structured profile metadata, ID validation, setup integration, and sprite generation support.
|
|
- [x] 🧭 **Map Studio v1**: prompt/reference-image map draft generation, anchor and collision calibration, package validation, publishing, and Setup handoff.
|
|
- [x] 🌏 **Bilingual runtime UI**: English/Chinese UI and runtime-owned labels for setup, replay, maps, statuses, actions, and system events.
|
|
- [x] 🔌 **Agent skill-runtime path**: the shipped JiuwenClaw agent adapter now uses the AgentSociety skill runtime as the canonical execution path.
|
|
- [x] 🌐 **Public site & browser replays**: GitHub Pages hosts curated replays, map packs, agent packs, and downloadable experiments, with no local setup or API key.
|
|
- [x] 📦 **Portable packs & import/export**: Experiment, Map, and Agent packs with ZIP import/export, delivered through release assets.
|
|
- [x] 🪟 **Windows one-key launcher**: `god.cmd start` mirrors the one-command macOS/Linux flow.
|
|
|
|
### 🛣️ Not Yet Done
|
|
|
|
- [ ] 🤖 **Pluggable agent runtimes**: swap LLM runtimes and persona templates as cleanly as we now swap maps.
|
|
- [ ] 🧪 **Multi-experiment orchestration**: run experiments, control groups, repeats, and ablations side by side.
|
|
- [ ] 🗺️ **Live map generation**: maps that evolve with events, repairs, blockages, and crowds.
|
|
- [ ] 🌦️ **Event-responsive worlds**: weather, accidents, festivals, rumors, and shortages that change agent behavior over time.
|
|
- [ ] 🌐 **Large-scale simulation**: AgentSociety batching, sharded runs, sampled replay, and performance-minded replay summaries.
|
|
- [ ] 📊 **Experiment evaluation**: cross-run metrics, behavior diffs, intervention effect analysis.
|
|
- [ ] 📝 **Operator workflow**: per-step notes, tags, bookmarks, key-event summaries.
|
|
- [ ] 🌍 **Hosted live control room**: a hosted demo where you can steer a run, not just watch replays, plus community scenario templates.
|
|
|
|
Have an idea? [Open an issue or PR](#-contributing).
|
|
|
|
## 🏗️ How It Works
|
|
|
|
```mermaid
|
|
flowchart LR
|
|
O["Operator"]:::operator
|
|
UI["Control Room"]:::surface
|
|
API["Live API"]:::core
|
|
RT["Agent Runtime"]:::runtime
|
|
TOWN["Pixel Town"]:::world
|
|
CFG[["Experiment Files"]]:::data
|
|
DB[("Replay Store")]:::data
|
|
|
|
O --> UI
|
|
UI <-->|"commands / updates"| API
|
|
API -->|"prompts"| RT
|
|
RT -->|"actions"| TOWN
|
|
TOWN -->|"frames"| DB
|
|
CFG -->|"scenario"| API
|
|
|
|
classDef operator fill:#fff7ed,stroke:#f59e0b,color:#7c2d12,stroke-width:2px;
|
|
classDef surface fill:#eef2ff,stroke:#6366f1,color:#312e81,stroke-width:2px;
|
|
classDef core fill:#ecfeff,stroke:#0891b2,color:#164e63,stroke-width:2px;
|
|
classDef runtime fill:#f0fdf4,stroke:#22c55e,color:#14532d,stroke-width:2px;
|
|
classDef world fill:#fefce8,stroke:#ca8a04,color:#713f12,stroke-width:2px;
|
|
classDef data fill:#fdf2f8,stroke:#db2777,color:#831843,stroke-width:2px;
|
|
```
|
|
|
|
GOD is intentionally local-first: the control room, backend, runtime bridge, experiment files, and replay store all run on your machine. The model endpoint is the only external service you choose.
|
|
|
|
GOD keeps three concepts separate:
|
|
|
|
- **Experiment** is the playable setup: map, agents, scenario context, and step plan.
|
|
- **Replay** is the viewable result of an experiment after it has been played.
|
|
- **Runtime state** is local machine data such as SQLite replay stores, logs, and agent snapshots; it is not part of an ExperimentPack and should not be committed.
|
|
|
|
| Layer | What it does |
|
|
| --- | --- |
|
|
| 🎮 **Control Room** | React/Vite browser UI: replay, ask, intervention, status. |
|
|
| ⚙️ **Backend** | Local FastAPI service exposing live and replay APIs. |
|
|
| 🗺️ **Pixel Town** | Replay-friendly social world: locations, actions, messages, agent status. |
|
|
| 🤖 **Agent Runtime** | Out-of-process LLM agents reached over a local WebSocket. |
|
|
|
|
## ⚙️ Commands
|
|
|
|
```bash
|
|
./scripts/god.sh start # start the full stack (idempotent)
|
|
./scripts/god.sh configure # open setup to switch defaults or create an experiment
|
|
./scripts/god.sh restart # stop everything cleanly, then start again
|
|
./scripts/god.sh new-run # wipe local runtime state for the current experiment and start fresh
|
|
./scripts/god.sh status # ports, URLs, model status
|
|
./scripts/god.sh stop # stop everything
|
|
./scripts/god.sh tail # follow logs
|
|
./scripts/god.sh open # open the frontend pages in the default browser
|
|
```
|
|
|
|
On Windows, replace `./scripts/god.sh` with `.\scripts\god.cmd`.
|
|
|
|
## 🧪 Built-in Experiments
|
|
|
|
GOD ships two built-in experiments and treats them exactly like experiments you publish yourself. The setup wizard writes the selected experiment to `.god/current_experiment.json`; `start`, `open`, and `new-run` then act only on that current experiment.
|
|
|
|
More downloadable scenarios live on the [**public site**](https://xiaoluolyg.github.io/GOD/experiments/): Empty City Gate, Gaokao Blackout, Hogwarts Parent Meeting, and others.
|
|
|
|
`.env` is intentionally local-only and only stores model, API, port, and similar machine settings. It no longer decides the default experiment or map, so an old `GOD_MAP_ID=pku` cannot make GOD Town load the PKU map.
|
|
|
|
|
|
### 🏘️ An ordinary weekday in The Ville
|
|
|
|
A late-spring Tuesday morning at 8:20. Sunny, 18°C, light breeze. A 200-person town with **10 residents who know each other but don't live in each other's pockets**. It is a slice-of-life simulation, not a quest script.
|
|
|
|
➡️ **Choose `god_town` in the Setup Wizard to make this the current experiment.** It is bound to `hypothesis_god_town/experiment_1` and the `the_ville` map.
|
|
|
|
➡️ See [`hypothesis_god_town/experiment_1/`](agentsociety/quick_experiments/hypothesis_god_town/experiment_1/README.md) for the full breakdown of locations, profiles, and interactions.
|
|
|
|
<p align="center">
|
|
<img src="docs/assets/screenshots/map-the-ville.png" alt="The Ville map" width="94%" />
|
|
</p>
|
|
|
|
<p align="center"><sub>The Ville: all 10 residents going about a typical day across home, school, library, cafe, park, market, pharmacy, pub, and dorm.</sub></p>
|
|
|
|
<table>
|
|
<tr><td colspan="5" align="center"><b>🗺️ 10 Locations · 65 location-scoped interactions</b></td></tr>
|
|
<tr>
|
|
<td align="center" width="20%">🏠<br/><b>Home</b><br/><sub>cook · sleep · tidy · read · WFH · video-call</sub></td>
|
|
<td align="center" width="20%">🏫<br/><b>School</b><br/><sub>attend / teach class · grade · office hours</sub></td>
|
|
<td align="center" width="20%">📚<br/><b>Library</b><br/><sub>read · study · research · borrow / return</sub></td>
|
|
<td align="center" width="20%">☕<br/><b>Hobbs Cafe</b><br/><sub>light meal · coffee chat · cafe shift · meetup</sub></td>
|
|
<td align="center" width="20%">🌳<br/><b>Johnson Park</b><br/><sub>walk · meet · exercise · public announcement</sub></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="20%">🛠️<br/><b>Supply Store</b><br/><sub>repair · restock · lend tools · customer service</sub></td>
|
|
<td align="center" width="20%">🛒<br/><b>Market</b><br/><sub>buy food · haggle · deliver · chat w/ regulars</sub></td>
|
|
<td align="center" width="20%">💊<br/><b>Pharmacy</b><br/><sub>buy medicine · refill · check BP · home visit prep</sub></td>
|
|
<td align="center" width="20%">🍻<br/><b>Pub</b><br/><sub>socialize · watch match · host small event</sub></td>
|
|
<td align="center" width="20%">🛏️<br/><b>Dorm</b><br/><sub>rest · self-study · common-room hangout · video call</sub></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<tr><td colspan="5" align="center"><b>👥 10 residents, each with a real life</b></td></tr>
|
|
<tr>
|
|
<td align="center" width="20%">🧭<br/><b>Alice</b> · 34<br/><sub>Neighborhood coordinator</sub></td>
|
|
<td align="center" width="20%">🛠️<br/><b>Bob</b> · 45<br/><sub>Supply-store shopkeeper</sub></td>
|
|
<td align="center" width="20%">📖<br/><b>Charlie</b> · 39<br/><sub>High-school history teacher</sub></td>
|
|
<td align="center" width="20%">💊<br/><b>Dana</b> · 41<br/><sub>Pharmacy nurse</sub></td>
|
|
<td align="center" width="20%">☕<br/><b>Elena</b> · 36<br/><sub>Cafe owner</sub></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="20%">🎒<br/><b>Farah</b> · 16<br/><sub>High-school student</sub></td>
|
|
<td align="center" width="20%">📮<br/><b>George</b> · 68<br/><sub>Retired postman</sub></td>
|
|
<td align="center" width="20%">💻<br/><b>Hana</b> · 28<br/><sub>Remote software engineer</sub></td>
|
|
<td align="center" width="20%">🦺<br/><b>Ivan</b> · 52<br/><sub>Public-safety volunteer</sub></td>
|
|
<td align="center" width="20%">🍅<br/><b>Mei</b> · 47<br/><sub>Market vegetable vendor</sub></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<sub>Every resident carries a full profile: age, family, housing, economic status, health, daily routine, skills, needs, worries, secrets, social network, language style, quirks, short- & long-term goals.</sub>
|
|
|
|
### 🏫 PKU Trump Visit
|
|
|
|
A campus public-situation experiment on a stylized PKU map. Daily routines begin around gates, classrooms, library, lake, dining hall, dormitory, and Centennial Hall, then a high-attention visit event tests how residents notice, ask, gather, and react.
|
|
|
|
➡️ **Choose `pku_trump_visit` in the Setup Wizard to make this the current experiment.** It is bound to `hypothesis_pku_trump_visit/experiment_1` and the `pku` map.
|
|
|
|
➡️ See [`hypothesis_pku_trump_visit/experiment_1/`](agentsociety/quick_experiments/hypothesis_pku_trump_visit/experiment_1/README.md) for the full scenario, cast, operator notes, and replay data.
|
|
|
|
<p align="center">
|
|
<img src="docs/assets/screenshots/map-pku.png" alt="PKU campus map" width="94%" />
|
|
</p>
|
|
|
|
<p align="center"><sub>PKU campus map: gates, classrooms, library, Weiming Lake, Boya Pagoda, dining hall, dorm, and Centennial Hall, with named residents and the Trump-visit cast.</sub></p>
|
|
|
|
## 🗺️ Pluggable Map Packages
|
|
|
|
GOD now discovers map packages automatically from `agentsociety/custom/maps/<map_id>/`. To add a map, copy [`agentsociety/custom/maps/_template/`](agentsociety/custom/maps/_template/), replace `map.yaml`, `visuals/map.json`, tileset PNGs, and optional `characters/` or `location_assets/`, then run:
|
|
|
|
```bash
|
|
cd agentsociety
|
|
uv run python scripts/validate_map_package.py custom/maps/<map_id>
|
|
```
|
|
|
|
The setup wizard will list valid packages without code changes. v1 supports Tiled JSON maps with PNG tilesets and a `Collisions` layer where `0` means walkable. The PKU campus package now ships in the repository at `agentsociety/custom/maps/pku/`. See [docs/MAP_PACKAGES.md](docs/MAP_PACKAGES.md) for the full package contract.
|
|
|
|
## 🤝 Contributing
|
|
|
|
Issues and pull requests are very welcome. To set up a dev environment:
|
|
|
|
```bash
|
|
./scripts/god.sh start
|
|
```
|
|
|
|
That installs Python and Node dependencies, brings up the full stack, creates a live session, and runs the first step so the control room opens on a populated town. From there, edit and reload.
|
|
|
|
Full guide: **[CONTRIBUTING.md →](CONTRIBUTING.md)** covers branching, the PR checklist, style, and how to ship a new map or experiment.
|
|
|
|
## 🙌 Acknowledgements
|
|
|
|
GOD builds on open research and open-source work. It bundles two trimmed upstream checkouts:
|
|
|
|
- [AgentSociety](https://github.com/tsinghua-fib-lab/AgentSociety): large-scale generative-agent simulation framework.
|
|
- [JiuwenClaw](https://github.com/openJiuwen-ai/jiuwenclaw): out-of-process agent runtime.
|
|
|
|
And takes inspiration from [Generative Agents](https://arxiv.org/abs/2304.03442) and [OASIS](https://github.com/camel-ai/oasis).
|
|
|
|
## 📚 Citation
|
|
|
|
```bibtex
|
|
@article{piao2025agentsociety,
|
|
title = {AgentSociety: Large-Scale Simulation of LLM-Driven Generative Agents Advances Understanding of Human Behaviors and Society},
|
|
author = {Piao et al.},
|
|
journal = {arXiv preprint arXiv:2502.08691},
|
|
year = {2025}
|
|
}
|
|
|
|
@misc{park2023generativeagents,
|
|
title = {Generative Agents: Interactive Simulacra of Human Behavior},
|
|
author = {Joon Sung Park and Joseph C. O'Brien and Carrie J. Cai and Meredith Ringel Morris and Percy Liang and Michael S. Bernstein},
|
|
year = {2023},
|
|
eprint = {2304.03442},
|
|
archivePrefix = {arXiv},
|
|
primaryClass = {cs.HC},
|
|
url = {https://arxiv.org/abs/2304.03442}
|
|
}
|
|
```
|
|
|
|
## ⭐ Star History
|
|
|
|
<a href="https://www.star-history.com/?repos=xiaoluolyg%2Fgod&type=date&legend=top-left">
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=xiaoluolyg/god&type=date&theme=dark&legend=top-left" />
|
|
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=xiaoluolyg/god&type=date&legend=top-left" />
|
|
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=xiaoluolyg/god&type=date&legend=top-left" />
|
|
</picture>
|
|
</a>
|
|
|
|
## 📄 License
|
|
|
|
Released under the [Apache-2.0](LICENSE) license. Upstream LICENSE and NOTICE files are kept inside the integrated runtime checkouts and apply to those subtrees.
|
|
|
|
<p align="center"><sub>If GOD is useful to you, a ⭐ helps other people find it.</sub></p>
|