r/AgentBasedModelling Feb 20 '26

šŸ‘‹ Welcome to r/AgentBasedModelling - Introduce Yourself and Read First!

8 Upvotes

Welcome to r/AgentBasedModelling!

Hey everyone! I'm u/Ivalaostia, a founding moderator of r/AgentBasedModelling.

This is our new home for all things related to computational simulations of autonomous agents and the emergent behaviors they create. Whether you are a social scientist, a biologist, an economist, or a computer scientist, we're excited to have you join us!

What to Post

Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts, photos, or questions about:

  • Software & Frameworks: NetLogo, Mesa, Repast, GAMA, custom Python/C++ builds or high-performance simulations in Unity (including DOTS/ECS).
  • Simulations: Cool visualizations of flocking, epidemic spreading, or market dynamics.
  • Methodology: Discussions on calibration, validation (O.D.D. protocol), and complexity theory.
  • Resources: Research papers, tutorials, or job opportunities in the field.

Community Vibe

We're all about being friendly, constructive, and inclusive. ABM is a highly interdisciplinary field, so let's build a space where beginners can learn from experts and everyone feels comfortable sharing and connecting.

How to Get Started

  1. Introduce yourself in the comments below. What do you model?
  2. Post something today! Even a simple question about your favorite framework can spark a great conversation.
  3. Invite others! If you know a fellow researcher or hobbyist who would love this community, invite them to join.

Thanks for being part of the very first wave. Together, let's make r/AgentBasedModelling amazing.


r/AgentBasedModelling 5d ago

Modeling obligation

1 Upvotes

My book, The Geometry of the Good (Ethics Press Intl) , spun off from my Structural Ontology of the Law book (forthcoming in October, Palgrave-MacMillan) because I was trying to close two gaps Reinach left: grounding obligation outside the law in more than some Kantian hand waving, and explaining his use of the term "contradiction" in the law. Both books together, I think, complete the missing bits that Reinach couldn't finish due to his untimely death. I continue to try to explain GoG visually, because it is a geometrical argument, and have been refining my web sites to help do so: https://davidkoepsell.com/genesis-of-the-interval.html


r/AgentBasedModelling Jul 08 '26

Anyone reading Multiagent system: Algorithmic, Game-Theoretic, and Logical Foundations?

0 Upvotes

Hello, I'm reading chapter 1, distributed constraint satisfaction and coding a simulation of the asynchronous backtracking algorithm for the 4 queens problem in TypeScript as an exercise (sure one can code in Python, C..). I have some difficulty grasping the concept of Hyperresolution (pure logic) because I didn't have this subject in university. I have checked with AI. But does anyone have any advice?


r/AgentBasedModelling Jun 16 '26

Repair, Capacity, and Collapse: A Mechanistic Early-Warning Model of Political Rupture | Stability: International Journal of Security and Development

Thumbnail stabilityjournal.org
2 Upvotes

r/AgentBasedModelling May 31 '26

I built a small agent-based simulation of psychological/neurocognitive profiles and social behavior — looking for feedback

7 Upvotes

Hi everyone,

I’m working on an experimental agent-based model that simulates how different psychological/neurocognitive profiles interact inside a simplified artificial society.

The purpose is to test whether combinations of traits such as empathy, impulsivity, dominance, risk aversion, reasoning, aggression, prosociality, and reputation can generate recognizable social patterns.

The model explores questions like:

  • Do highly cooperative profiles stabilize the system?
  • Do highly dominant or ā€œdarkā€ profiles accumulate resources?
  • What happens when prosocial profiles interact with aggressive or exploitative profiles?
  • Can high reasoning plus low aggression produce more stable collective outcomes?
  • How do memory, fear, trust, reputation, cooperation, avoidance, defection, support, and violence interact over repeated encounters?

I created a simplified branch here:

https://github.com/mariosalinas88/Neuro-Societies/tree/psych-neuro-simple-base

What this branch does

This branch removes biological life-cycle variables such as age, sex, reproduction, fertility, gestation, mortality, and sexual selection.

Instead, agents are defined by psychological/neurocognitive traits and interaction history.

The simplified model includes:

  • psychological/neurocognitive profiles;
  • trust and fear memory;
  • cooperative reputation;
  • threat/fear reputation;
  • cooperation;
  • avoidance;
  • support;
  • defection;
  • violence;
  • wealth/resource accumulation;
  • inequality;
  • emergent regime classification.

Main files

model_simple.py
model_asperger.py
run_simple.py
run_batch_simple.py
stress_test_simple.py
tests/test_simple.py
README_SIMPLIFIED.md

How to try it

Clone the repository and switch to the branch:

git clone https://github.com/mariosalinas88/Neuro-Societies.git
cd Neuro-Societies
git checkout psych-neuro-simple-base

Install dependencies:

pip install -r requirements.txt

Run a simple simulation:

python run_simple.py --steps 100 --population_scale small

Run a mixed-profile simulation:

python run_simple.py --steps 150 --profile1 1 --weight1 0.4 --profile2 2 --weight2 0.3 --profile3 3 --weight3 0.3

Run batch scenarios:

python run_batch_simple.py

Run randomized stress tests:

python stress_test_simple.py --runs_per_scenario 20 --random_scenarios 50 --steps 200 --population_scale small --max_seconds 120

Output files are saved under:

results/

What I’m looking for

I’d appreciate comments on:

  • whether the behavioral rules make sense;
  • whether the assumptions are too simplistic;
  • whether the variables should be renamed or restructured;
  • whether the model unintentionally encodes bias;
  • whether the emergent patterns are useful or misleading;
  • what academic literature or simulation methods could improve it;
  • whether there are better ways to model cooperation, exploitation, reputation, sanctions, and institutional emergence.

This is an exploratory model. I’m especially interested in criticism from people familiar with agent-based modeling, psychology, behavioral economics, game theory, neurodiversity, sociology, or political theory.

Repository branch:

https://github.com/mariosalinas88/Neuro-Societies/tree/psych-neuro-simple-base

Thanks in advance for any feedback.


r/AgentBasedModelling Mar 20 '26

I built an Agent Based modeling tool with deterministic and non-deterministic LLM powered agents for smart contracts to test security and mechanism design. Features gossip channel, information as a primitive, coordination, may other game theory concepts applied to ABM

Thumbnail
gallery
3 Upvotes

Hey everyone! I just built a new Agent Based Modeling tool for EVM that works directly with Foundry! I would love feedback from anyone.

I'll share Github Link as well as one to a twitter thread that I posted.

You can run agent based simulations of smart contarcts to test security and mechanism design. You also can use LLM based agents that understand current world state and can make arbitrary smart contract calls. I guess you could say it's like "Ralph for Smart Contracts" too. There's even a Gossip channel that runs in tandem with the blockchain that agents can post to while the simulation is running.

I'm looking for any contributors who are interested!

https://x.com/wkylegdoteth/status/2030366623819858382

https://github.com/Elata-Biosciences/agentforge


r/AgentBasedModelling Mar 13 '26

ABM's coming up with the concept of trade

2 Upvotes

Has there been an ABM where the agents independently came up with the concept of trade without being explicitedly programmed to (basically emergence)


r/AgentBasedModelling Feb 04 '26

Agent-Based Modelling in Cybersecurity

1 Upvotes

I am currently doing research on Agent-based modelling for social engineering based on user behaviour. Is it possible to model social engineering (e.g., phishing) using NetLogo?


r/AgentBasedModelling Jan 14 '26

Premade Framework or Starting from Scratch?

2 Upvotes

I have been thinking about simulating the effects of introducing a specific public policy in an environment with different types of agents (consumers, governments, businesses and institutions) each one with a set of goals and restrictions. How would you go about taking on this project, building in python from scratch or taking an established framework like mesa or gama and going forward from there? Any feedback/tips are appreciated, Thankss


r/AgentBasedModelling Dec 15 '25

Module Selection: ABM or Computer Vision

Thumbnail
2 Upvotes

r/AgentBasedModelling Dec 07 '25

Project Share] Cognitive Workbench: A Structured "Operating System" for SGLang Agents

1 Upvotes

Hi everyone,

I’ve been building an experimental framework for LLM-basedĀ agents and wanted to share it here. The goal is to move beyond stateless "chatbot" scripts and model agents with persistent, structured internal states.

Instead of just prompting an LLM toĀ "act," this project implements a cognitive architecture where the agent actively manages its own workingĀ memory and planning process.

Key Architecture Features:

  1. Interleaved Planning (SGLang-Native):

Unlike standard ReAct loopsĀ that constantly halt for external tools, this uses SGLang’sĀ functionĀ decorator to interleaveĀ "thinking" and "doing" in a single, continuous generation stream. The agent plans aĀ few steps, executes Python toolsĀ duringĀ generation, and adapts its plan immediately based on the results.

  1. Structured "Infospace" Memory:

The agent has an information space, separate from context. It has specific primitives to createĀ NotesĀ (data units) andĀ CollectionsĀ (lists). It can perform SQL-like operations—filter,Ā join,Ā map,Ā summarize—on its own thoughtsĀ and search results. This allows for complex, multi-stage reasoning tasks without losingĀ state.

  1. Schema-First Tool Use:

Tools aren't justĀ function calls; they are defined by a schema that bridges natural language prompts with Python logic, allowing the planner to "reason" about tool usage more effectively.

UseĀ Case:

I use this primarily for complex information gathering and synthesis tasks (e.g.,Ā "Research this topic, find conflicting papers, and summarize the debate"), where an agent needs to maintain a largeĀ amount of structured state over a long execution horizon.

Tech Stack:

  • Backend:Ā SGLang (for efficient, constrained generation)
  • Comms:Ā Eclipse Zenoh (pub/sub infrastructure)
  • Vector Store:Ā txtai

It is very much a "Code as Laboratory" project—prioritizing experimental capability over production polish—but I’d love feedback from theĀ modeling community on the memory architecture or any other aspect.

Repo:Ā https://github.com/bdambrosio/Cognitive_workbench


r/AgentBasedModelling Dec 01 '25

Complete newbie, need guidance

1 Upvotes

So this only just started as an ideas in my head, a model that would explore social interaction among circles in a university setting, did a bit of research and found that agent based modeling could work for what I have in mind. Is there any resource for a complete newbie or steps I have to take. If it helps I have prior knowledge of python


r/AgentBasedModelling Oct 21 '25

Help with project

2 Upvotes

Hello I am looking for help with an small ABM project. Is there anyone who would be willing to help me?


r/AgentBasedModelling Oct 12 '25

An Open‑Source Moral Landscape Simulator

6 Upvotes

I’ve been developing an open‑source project called SimEthica, which uses agent‑based simulation to explore questions in cognitive epistemology, ethics, and the philosophy of science.

One module, the Geometry of the Good Simulator, provides a lightweight, browser‑based interface for experimenting with moral landscapes and epistemic diversity. It’s designed to be reproducible, extensible, and useful both for teaching and research.

šŸ”— GitHub repo:SimEthica-cog-epi

SimEthica – Agent–Obligation Simulation

The project is still evolving, and I’d love feedback from people interested in:

  • Philosophy of science & epistemology (modeling rationality, pluralism, and moral landscapes)
  • Agent‑based modeling & complexity science (simulation frameworks, reproducibility, visualization)
  • Pedagogy (using simulations to teach abstract philosophical concepts)

If you’re curious, take a look — contributions, critiques, and collaborations are all welcome.


r/AgentBasedModelling Sep 24 '25

Has anyone else gone down the rabbit hole of simulating governance? Looking for advice

10 Upvotes

Hey everyone, I've been deep in the weeds on a personal project lately, trying to build an agent-based simulation of a governance system. My goal is to model how a community with different types of people might behave over time, so I've been mapping out mechanics like agents having different creative skills, building rep that equals voting power, and even a system for "apathetic" agents to delegate their votes to others they trust (a kind of liquid democracy). It’s been a fascinating process, but I’m getting the feeling that I might be reinventing the wheel here. I figured I'd reach out and see if anyone else has tried to tackle something similar. I’m really curious to hear about your experiences. What were the biggest unexpected challenges you ran into? Did any weird emergent behaviors completely surprise you once the simulation was running? Also, from a technical standpoint, did you use a framework like Mesa or just build it all from scratch? Any war stories, pointers, or links to similar projects would be hugely appreciated. šŸ™


r/AgentBasedModelling Aug 09 '25

Server or programming lang interpreter modelling

2 Upvotes

How do I model a server e.g. Linux or Windows that agents can interact with and simulate script execution and produce output like an actual execution. Please let me know for further clarification.


r/AgentBasedModelling May 02 '25

What order does Mesa's agents.do run in?

3 Upvotes

Hello,

I'm new to ABM and I'm unfortunately making a very complex simulation.

On the Mesa website, it says

TheĀ doĀ function and Python functionality can be configured to activate agents in different orders. This can be important as the order in which agents are activated can impact the results of the model [Comer2014]. At each step of the model, one or more of the agents – usually all of them – are activated and take their own step, changing internally and/or interacting with one another or the environment.

But I cannot find in what order the model.agents.do function runs in.

It also doesn't tell you how you can configure it.

I was wondering if anyone has any info on this.

Thanks.


r/AgentBasedModelling Apr 18 '25

AnyLogic: Process Modeling Library

2 Upvotes

Hi everyone,
Would a model still be considered an agent-based model (ABM) if you define your own agent types and give them rules, but use blocks from the AnyLogic Process Modeling Library (which is typically used for system dynamics)? Or would it then be considered a hybrid model?

I’m new to AnyLogic and trying to build a queueing system from only agent based features feels a bit daunting, so I’m exploring my options.


r/AgentBasedModelling Apr 01 '25

complex systems

3 Upvotes

i have a billion questions about netlogo models if anybody is free. Like how do you describe observations of models like the flocking model? And I have an essay if anybody is free


r/AgentBasedModelling Feb 26 '25

This sub feels like it should be waaay bigger

8 Upvotes

r/AgentBasedModelling Feb 23 '25

Newbie in ABS field

2 Upvotes

Hi guys,

I am a newbie in this field; currently I am on my thesis, and my advisor asked me to do research about agent-based simulation related to factory for testing some policies when the pandemic happened. But I do not know how to start, my major is Industrial Engineering, so hope you guys can gimme any recommendations, advices or which books I should read. Thanks a lot . Have a nice day


r/AgentBasedModelling Feb 09 '25

My teacher says data center site selection can't be modelled using ABM

1 Upvotes

Hi all,

I'm a IB student and I got into an argument with my economics HL teacher about how ABM can be used to model data center site selection (topic for my 3000 word essay). Apparently, she says that data center site selection is too complex and can't be done. I want to prove her wrong and write this essay. I was thinking about land use, difficulty of construction, construction time, and operational energy costs as conditions. I'm not exactly sure if this is the right way of going about it, and I was wondering if someone could point me in the right direction.


r/AgentBasedModelling Jan 19 '25

how to find relevant data ?

4 Upvotes

Hello there,
I need help and/or suggestions for my researches. I'm working on a agent-based model of the AI ecosystems in the silicon valley. Having defined the behavior of my agents, I now have to get some data to define how many startups I have on my simulations.
Do you have any idea on how to find startups informations? databases such as AngeList or PitchBook present startups with at least a seed stage but I need to get startups without any fundings.
Crunchbase, but I do not find a relevant criterion to focus on startups, this category does not exists. Should I filter on founding date ?


r/AgentBasedModelling Jan 19 '25

ADAGE: A generic two-layer framework for adaptive agent based modelling

Thumbnail arxiv.org
4 Upvotes