generativeagents
VerifiedSimulate believable human behaviors using generative agents in a virtual town.
What is generativeagents?
Generative Agents creates computational characters that exhibit human-like routines, conversations, and decision-making within a shared sandbox world. The system combines language models with memory and planning modules so agents can reflect on past events and coordinate actions without direct scripting.
It operates by running two concurrent servers: one for the visual environment and another for the agent logic. Agents update their states in discrete time steps, allowing emergent social patterns to appear as the simulation progresses.
The toolkit targets researchers and developers exploring social simulation, AI behavior modeling, or interactive storytelling who need a reproducible starting point for multi-agent experiments.
Capabilities
What you can build with generativeagents
Social Behavior Research
Run controlled experiments to study how agents form relationships or spread information across a community.
Interactive Storytelling
Generate dynamic narratives by letting agents pursue individual goals that intersect in unexpected ways.
Agent Architecture Testing
Prototype new memory or planning components by extending the existing simulation loop with custom logic.
Install generativeagents
- 1Create a utils.py file in reverie/backend_server with your OpenAI API key and required paths.
- 2Install packages from the requirements.txt file, preferably inside a virtual environment.
- 3Start the Django environment server with python manage.py runserver in the frontend_server directory.
- 4Launch the simulation server by running python reverie.py and enter the base simulation name followed by a new simulation name.
- 5Open the simulator interface in a browser and issue run commands with desired step counts to advance the agents.
Works with
generativeagents: pros & cons
Pros
- +Provides a complete, runnable example of memory-augmented agents
- +Includes both backend logic and a visual frontend for observation
- +Well-documented setup steps for local reproduction
- +Enables emergent multi-agent interactions without manual scripting
Cons
- –Requires a valid OpenAI API key and incurs usage costs during runs
- –Setup involves multiple manual file edits and concurrent server management
- –Limited to the provided Smallville map and three starter agents
Frequently asked questions
The environment was tested on Python 3.9.12.
User reviews
Verified reviews from the community shape this listing's rating.
Loading reviews…