What it is used for

The first use is characters in games and virtual worlds that feel alive. Instead of a character who repeats the same lines, a generative agent remembers whom it has met and what was discussed, so conversations develop from day to day.

The second use is rehearsal space. A simulation filled with generative agents can be a place to practice interviews, negotiations, or difficult conversations, because the partners inside respond plausibly and are not easy to predict.

The third use is social prototyping: testing how news spreads through a community, how a queue forms, or how residents react to a new rule, before trying anything similar in the real world.

How to use it

Most people will meet generative agents as a feature inside a game or simulation application, not as a product they install themselves. The user simply interacts in plain language: greeting a character, sharing news, or planting one idea, then watching how the agents respond over time.

In the Smallville experiment, the user planted a single simple notion: one agent wanted to throw a Valentine's Day party. Over the next two days of simulation, the agents spread invitations on their own, made new acquaintances, asked each other out to the party, and coordinated to show up together at the right time. None of those steps was spelled out by the user.

For developers, using generative agents means designing three things: the agent's memory, how the agent reflects, and how the agent plans. The next levels explain each.

Practitioner level

The architecture in the paper rests on three components. First, the memory stream: a complete record of the agent's experiences in natural language, from small observations to important conversations. Second, reflection: periodically, the agent synthesizes its memories into higher-level conclusions, such as realizing that it enjoys music or that a neighbor can be trusted. Third, planning: the agent builds a daily plan from its summary of itself and its experiences, then adjusts it as the day unfolds.

When the agent must act, the system retrieves the most relevant memories from the stream. Relevance is judged by a mix of recency, importance, and closeness to the current situation. Without good retrieval, the agent forgets what matters or remembers trivia.

Ablation tests in the paper show that all three components matter. Agents without reflection or without planning behaved far less believably according to human evaluators.

Expert level

Technically, the large language model acts as the reasoning engine at every stage: scoring how important an observation is, writing reflections, drafting plans, and deciding reactions. The memory stream grows continuously, so retrieval is a ranking problem rather than simple keyword search; the paper combines a recency score that decays over time, an importance score rated by the model, and a semantic relevance score.

Reflections are layered: reflections over observations produce conclusions, and conclusions can be reflected on again into more general views. Plans are layered too, from a one-day outline down to hourly detail that can change when circumstances shift.

What makes the Smallville result an example of emergent social behavior is the absence of special rules for parties, gossip, or date invitations. All of it arose from memory, reflection, and planning combined across many agents observing each other.

Limits and risks

The experiment was small and short: 25 agents over two simulated days, in a game world inspired by The Sims. Believable behavior at that scale does not prove agents would stay believable at the scale of a real town or over months of running time.

The cost is high. Each agent calls a language model many times to score, reflect, and plan, so running many agents for long periods consumes substantial resources.

Agents can also misremember and fabricate. Memories written by the model may exaggerate events or blend facts together, and those errors then become the basis for later plans. Finally, believable is not the same as conscious or alive; generative agents are skilled behavioral imitations, and treating them as real people, for example in rehearsal that touches on feelings, needs clear boundaries.