Skip to content
generativeagents logo

generativeagents

Verified

Simulate believable human behaviors using generative agents in a virtual town.

Autonomous AgentsResearch 21.5kOpen source
View on GitHub
Updated 2026-06-15
generativeagents GitHub repository

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

simulate believable human behaviors
run interactive multi-agent simulations
integrate with openai api
manage game environments
replay simulation animations

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

  1. 1Create a utils.py file in reverie/backend_server with your OpenAI API key and required paths.
  2. 2Install packages from the requirements.txt file, preferably inside a virtual environment.
  3. 3Start the Django environment server with python manage.py runserver in the frontend_server directory.
  4. 4Launch the simulation server by running python reverie.py and enter the base simulation name followed by a new simulation name.
  5. 5Open the simulator interface in a browser and issue run commands with desired step counts to advance the agents.

Works with

OpenAI APIPythonDjango

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
Did you find this helpful?

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…

Sign in to review

Promote generativeagents

Add this badge to your website, or share the tool.

DFeatured on Dhanasvigenerativeagents 1