In short
- Goal. Describe the population of a client and choose how its agents decide.
- Time. 10 minutes

Two kinds of agent
mode in client_config.json says what a client runs: empty (no agents), rule_based or llm. Rule-based agents choose actions from probabilities, need no model and are fully deterministic with a seed. Language-model agents ask a model what to do and write; they use any OpenAI-compatible endpoint or Ollama (servers.llm), or an offline stub (llm.backend: "stub") for tests and reproducible runs.
Where the agents come from
Without a population file the client generates simulation.starting_agents agents (180 by default) with demographics drawn from agents (age range, nationalities, education levels, languages, political leanings, Big Five traits, toxicity levels, interests). With population.file it reads a file (the YSocial format or a standalone one, population.format), optionally with a follow network (population.network_file, follower,followed by user name). It saves its roster to agents_<client>.json each day and resumes from it, so a restart keeps the agents.
| Setting | Effect |
|---|---|
simulation.hourly_activity |
probability that an agent is active in each hour |
agents.round_actions.min/max |
actions an active agent attempts per slot |
agents.llm_agents |
the models agents can be assigned to |
simulation.percentage_new_agents_iteration / ..._removed_... |
share of agents joining or leaving each day |
agents.interests, n_interests |
topics an agent follows |
Accounts of the population file marked is_page can run as news pages (news.pages) that post the articles of their feed.
Who is in charge of what
An agent’s recommenders (content and follow) default to recsys of the client and can be set per agent; see Feeds. agents.reading_from_follower_ratio fixes the share of a read that comes from followed users.