Manuscript Offprint

arXiv:2608.22833

Minimal Local Simulation Foundations for LLM- and VLM-Driven Agents in 2D and 3D Environments

Ryuki Hyodo

Abstract

Large language models (LLMs) and vision-language models (VLMs) are expanding the range of behaviors that can be represented in agent-based simulations, but many contemporary platforms are difficult to study, modify, or run on ordinary computers. We present two intentionally minimal simulation foundations for education and rapid prototyping. SD-AgentFoundry-2D provides a two-dimensional multi-agent environment in which locally hosted LLM agents move, communicate, respond to place occupancy, and encounter spatially localized fire events. SD-AgentFoundry-3D provides a three-dimensional digital-twin environment in which a locally hosted VLM receives first-person images and produces natural-language movement instructions. Both codebases are designed to run locally on macOS, Windows, and Linux and are deliberately left open to modification rather than developed as finished applications. Together, they offer accessible starting points for learning about generative social simulation and for building domain-specific extensions.

SD-AgentFoundry-2D: https://github.com/ryukih/SD-AgentFoundry-2D

SD-AgentFoundry-3D: https://github.com/ryukih/SD-AgentFoundry-3D

1 Introduction

Agent-based simulation has long provided a bottom-up way to study how individual decisions and interactions can produce collective patterns (Bonabeau 2002). Recent progress in foundation models has widened this approach: instead of specifying every behavior as a fixed rule, a simulator can ask an LLM to interpret a situation, use natural-language memory, communicate with other agents, and choose an action (Guo et al. 2024). Social Simulacra demonstrated LLM-supported prototyping of populated social-computing systems (Park et al. 2022), while Generative Agents combined memory, reflection, and planning in an interactive two-dimensional town (Park et al. 2023). Concordia generalized language-mediated agent-based modeling through components that connect LLM calls, associative memory, and an environment-controlling game master (Vezhnevets et al. 2023). More recent systems have increased the scale and application range of this paradigm: AgentSociety and its successor provide environments for large-scale computational social experiments (Piao et al. 2025; Piao et al. 2026), and CitySim models urban schedules and collective city dynamics (Bougie & Watanabe 2025).

These developments suggest several possible uses, provided that simulated behavior is not mistaken for validated human prediction. LLM simulations of established human-subject studies can reproduce some findings while also exhibiting systematic distortions (Aher et al. 2023). Studies that seek individual-level prediction require agents grounded in human data and evaluation against human responses (Park et al. 2024). LLM-based simulations may support exploratory studies of communication, evacuation, public policy, urban activity, and collective response to external events. They may also help organizations prototype services, examine hypothetical customer or worker interactions, and identify scenarios that deserve later evaluation with real participants. Such simulations are therefore best treated as instruments for generating hypotheses, comparing mechanisms, and rehearsing possibilities, rather than as substitutes for empirical evidence.

Textual and two-dimensional environments capture communication and social organization efficiently, but they abstract away much of the spatial and perceptual structure of physical action. VLMs and vision-language-action (VLA) models provide a complementary direction by grounding decisions in images and language. PaLM-E demonstrated an embodied multimodal language model that integrates visual, textual, and continuous state inputs for embodied reasoning (Driess et al. 2023). OpenVLA illustrates how visual and linguistic representations can be connected to actions in an open model for robot control (Kim et al. 2025). SimWorld exposes LLM and VLM agents to multimodal physical and social environments (Ren et al. 2025), CrowdVLA applies VLA agents to context-aware crowd simulation in semantically structured three-dimensional scenes (Hwang et al. 2026), and TravelAgent integrates generative agents into three-dimensional built environments for navigation and wayfinding (Noyman et al. 2024). These embodied approaches may support exploratory work on navigation, facility use, human-robot interaction, crowd behavior, and digital twins.

The growing capability of such systems also creates an educational access problem. Large platforms, remote model services, specialized simulators, and substantial compute requirements can obscure the basic loop connecting perception, reasoning, communication, action, and observation. We present SD-AgentFoundry, a pair of minimal local simulation foundations comprising SD-AgentFoundry-2D for LLM-driven multi-agent social simulation and SD-AgentFoundry-3D for VLM-driven embodied simulation. Our goal is not to provide another feature-complete simulator. Instead, we release two compact codebases that expose this loop directly and can serve as readable starting points. They use locally hosted models, include setup paths for major desktop operating systems, and retain deliberately simple mechanisms that users can replace. The intended contribution is an accessible foundation from which students, researchers, and practitioners can develop their own scenarios, agent designs, measurements, and interfaces.

References (32)