Park 2023 generative agents

From curiositech/windags-skills · View interactive version

Park 2023 generative agents is an AI agent skill from the GitHub repository curiositech/windags-skills. Simulation of believable human behavior using LLM-powered generative agents with memory and social interaction

How to use this skill

Skill file

SKILL: Generative Agents Architecture

When to Use This Skill

Activate when designing AI agents that maintain coherent behavior over extended periods (hours/days/weeks) with accumulated experience. Essential for multi-agent simulations, long-running assistants, and believable AI characters.

NOT for: Single-turn responses, prompt engineering, task-specific tools, or centrally coordinated systems.

Decision Points

Memory System Design Decision Tree

Is agent behavior incoherent with past actions?
├─ YES: Audit retrieval function
│   ├─ Agent seems amnesic about important events?
│   │   └─ → Increase importance weight (0.1→0.3) or lower threshold (5→3)
│   ├─ Agent retrieves irrelevant memories?
│   │   └─ → Increase relevance weight (0.5→0.7) or improve embeddings
│   └─ Agent over-focuses on recent trivial events?
│       └─ → Decrease recency weight (0.99→0.95 decay factor)
└─ NO: Memory system functioning, check other components

Reflection Triggering Decision Matrix

| Importance Sum | Time Since Last | Action |

|---------------|-----------------|--------|

| >150 points | Any | Trigger reflection immediately |

| 100-150 | >2 hours | Trigger reflection |

| 50-100 | >6 hours | Trigger reflection |

| <50 | Any | Wait for more observations |

Planning Replan Threshold

Observation conflicts with current plan?
├─ Minor conflict (efficiency impact only)
│   └─ → Continue with plan
├─ Moderate conflict (plan becomes suboptimal)
│   ├─ High commitment context (public promises, deadlines)?
│   │   └─ → Continue plan, note conflict for future planning
│   └─ Low commitment context?
│       └─ → Replan affected time blocks only
└─ Major conflict (plan becomes impossible/harmful)
    └─ → Full replan from current moment

Multi-Agent Information Diffusion

Agent receives socially significant information?
├─ Information affects other known agents?
│   ├─ Strong relationship exists?
│   │   └─ → High probability (0.8+) to share in next interaction
│   └─ Weak relationship?
│       └─ → Moderate probability (0.4) if contextually relevant
└─ Information is private/personal?
    └─ → Share only if directly asked or high trust relationship

Failure Modes

1. **Retrieval Cascade Failure**

Detection: Agent denies knowledge of information they previously demonstrated knowing

Symptom: "I don't know about X" when agent stored observations about X

Diagnosis: Retrieval function weights are mistuned, causing relevant memories to score below threshold

Fix: Increase importance scoring for similar event types OR lower retrieval threshold temporarily OR retune relevance embeddings

2. **Reflection Vacuum**

Detection: Agent repeats same mistakes despite having multiple similar experiences

Symptom: No behavioral learning from patterns (e.g., always late to meetings despite noting lateness)

Diagnosis: Reflection not triggering on significant patterns OR reflections not being stored with sufficient importance

Fix: Lower reflection threshold (150→100 importance points) OR increase importance scoring for reflection outputs (auto-score reflections as 8+ importance)

3. **Plan Rigidity Lock**

Detection: Agent continues obviously suboptimal plans when context changes

Symptom: Walking to closed locations, pursuing obsolete goals, ignoring environmental changes

Diagnosis: Replanning thresholds too high OR commitment override too strong

Fix: Lower conflict threshold for replanning OR add forced replan checks at major time boundaries (hourly)

4. **Social Isolation Spiral**

Detection: Agents stop interacting despite being in proximity and having social motivations

Symptom: Multiple agents in same location but no conversation or coordination

Diagnosis: Social observations scoring too low in importance OR reflection not synthesizing social patterns

Fix: Boost importance scoring for social events (conversations, relationships) OR add social-specific reflection triggers

5. **Memory Importance Inflation**

Detection: Agent treats mundane events as highly significant, drowning out actual important events

Symptom: Reflection on trivial activities, treating routine tasks as major life events

Diagnosis: Importance scoring model lacks calibration OR no relative scoring mechanism

Fix: Implement comparative importance scoring (rate events relative to recent history) OR add importance decay over time

Worked Examples

Example 1: Multi-Day Party Planning Coordination

Scenario: Isabella (artist) wants to throw Valentine's Day party, needs to coordinate with multiple agents over 3 days.

Day 1 - Initial Planning:

Day 2 - Information Spreading:

Day 3 - Emergent Coordination:

Memory Retrieval Trade-offs Demonstrated:

Example 2: Conflicting Plans Resolution

Scenario: Tom has standing plan to work on novel 2-4pm, but Maya asks him to coffee at 3pm.

Decision Process:

  1. Observation: "Maya invited me to coffee at 3pm" [Importance: 6]
  2. Retrieval surfaces: current plan [Recent], Maya relationship memories [Relevant], past coffee meetings [Similar]
  3. Conflict detection: overlap between 3-4pm work block and coffee invitation
  4. Reflection synthesis: "Maya is a good friend, but I've been inconsistent with writing schedule"
  5. Planning decision: Moderate conflict + relationship importance → replan work to 1-3pm, accept coffee

What novice would miss: Treating this as binary choice (work OR coffee) instead of temporal reoptimization

What expert catches: Relationship maintenance has long-term importance, schedule flexibility enables both goals

Quality Gates

NOT-FOR Boundaries

Don't use this architecture for:

Delegate when:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.