Skip to main content

CI Docs

NOTE: This repository is currently in alpha development, and we expect to ship further stability updates over the coming weeks

SiliSocS

A configurable, extensible framework for multi-agent social simulation and experimentation.

SiliSocS (Silicon Society Sandbox) is easy to use and is structured around the EASE decomposition (Environment, Agents, Simulation engine, and Evaluation), taking inspiration from the Concordia framework and providing a principled, reproducible configuration layer for simulated worlds. You define each axis in YAML: the environment agents inhabit, the agent population and their memories, the simulation engine that schedules how and when agents act, and the evaluation that measures them. Built-in environments span social platforms (a Twitter-like app, a Reddit-like app, and a real Mastodon server), a resource market, and a virtual space, and you can add your own. SiliSocS offers scenario-driven grounding, game master-mediated environments, local and served backends, evaluation probes, runtime telemetry, and experimental study tooling. Interoperability for Concordia-designed agents is available through an optional bridge extra.

Papers on a previous version centered on a served Mastodon social media network:

Install

The default package is intentionally lean and supports local simulations without Studio, Mastodon, HuggingFace, or analysis dependencies:

pip install silisocs

Optional integrations are exposed as extras:

pip install "silisocs[hf]"        # Hugging Face persona sources
pip install "silisocs[mastodon]"  # real Mastodon backend
pip install "silisocs[studio]"    # unified visual workspace
pip install "silisocs[analysis]"  # notebooks and extended analysis
pip install "silisocs[concordia]" # optional Concordia bridge
pip install "silisocs[hpc]"       # optional Submitit/Slurm study helpers

For contributor work from a checkout:

git clone https://github.com/sandbox-social/silisocs.git
cd silisocs
uv sync --all-extras --group dev --group docs

Quick Start

Run the built-in package default scenario:

uv run silisocs

For a local smoke test without model API calls:

uv run silisocs sim.llm.provider=scripted

Override scale or model settings with Hydra dot notation:

uv run silisocs num_agents=10 num_steps=5 sim.llm.name=gpt-4o

Run a bundled external scenario:

uv run silisocs --config-path scenarios/election/conf

Run the packaged resource-market preset:

uv run silisocs world=resource_market agents=resource_market env=resource_market

Run the packaged virtual-space preset:

uv run silisocs world=virtual_space agents=virtual_space env=virtual_space

The same backends also have curated external examples under scenarios/:

uv run silisocs --config-path scenarios/resource_market/conf world=resource_market agents=resource_market env=resource_market
uv run silisocs --config-path scenarios/virtual_space/conf world=virtual_space agents=virtual_space env=virtual_space

Outputs are written under outputs/<scenario_name>/<jobname>/ and include action_events.jsonl, probe_events.jsonl, prompts_and_responses.jsonl, sim_metrics.json, a resolved Hydra config snapshot, and a local SQLite backend database for local platforms.

Studies and Experiments

Study orchestration ships in the package as silisocs.studies.run_study, exposed as the silisocs-study console command (equivalent: python -m silisocs.studies.run_study). It expands hypotheses, conditions, scenarios, and seeds into reproducible simulation runs, then executes the configured evaluators and writes organized artifacts under the study's generated/ directory.

uv run silisocs-study --study experiments/studies/study_template_v1 plan
uv run silisocs-study --study experiments/studies/study_template_v1 run --only-hypothesis h1_timeline_mechanism
uv run silisocs-study --study experiments/studies/study_template_v1 summary-append --author analyst --hypothesis h1_timeline_mechanism --note "Initial finding"

Custom commands plug in through conditions.<id>.execution.command, evaluator commands through the evaluations list, and optional HPC setup through the study runner's submitit or slurm-array commands. See docs/experiments.md and docs/study_schema.md.

Architecture

The canonical runtime entry point is src/silisocs/runtime/runner.py. It composes Hydra configuration, builds agents, initializes memory, constructs the environment backend and game master, runs the simulation engine, and writes artifacts.

silisocs/
├── src/silisocs/
│   ├── agents/              # Native and bridge-compatible runtime agents
│   ├── conf/                # Packaged Hydra defaults
│   ├── studio/              # Unified visual workspace and control plane
│   ├── environments/        # Game masters and environment backends
│   ├── evaluations/         # Probes, telemetry, and optional analysis tools
│   ├── runtime/             # Runner, config projection, and orchestration
│   └── simulation_engines/  # Engine loop, step, and turn policies
├── scenarios/                  # Scenario configs and curated inputs
├── experiments/             # Study orchestration and generated study outputs
├── docs/                    # ProperDocs documentation
└── tests/                   # Unit and integration tests

Optional Concordia Bridge

SiliSocS runs on native runtime contracts by default. The optional Concordia bridge is for porting Concordia-designed agents or components without making Concordia part of the default install:

  • All runtime agents satisfy silisocs.agents.base_agent.Agent.
  • Native runtime classes and GM components are the primary extension API.
  • Legacy Concordia-shaped components are isolated behind silisocs.adapters.concordia.
  • Scenario YAML selects builders, backends, policies, probes, and prompts so most experiment designs do not require Python edits.

See docs/concordia_bridge.md and docs/building_agents.md for the extension contracts.

Development

Common commands:

uv run pytest
uv run silisocs-config-dry-run --project-root .
uv run --group dev poe lint
uv run --group dev poe docs
uv build --sdist --wheel
uv run --group docs properdocs build --strict
  • uv run pytest runs the test suite in the current environment.
  • uv run silisocs-config-dry-run --project-root . composes shipped scenario and replication configs without running LLM calls.
  • uv run --group dev poe lint runs the configured formatting, static checks, and type checks.
  • uv run --group dev poe docs runs the configured documentation build task.
  • uv build --sdist --wheel builds release artifacts in dist/.
  • uv run --group docs properdocs build --strict builds the documentation site and fails on broken links or stale navigation.

Metadata

Release files for silisocs 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for silisocs 0.4.0
File Size Uploaded Provenance Actions
silisocs-0.4.0.tar.gz 1.5 MB With provenance Details for silisocs-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for silisocs 0.4.0
File Interpreter ABI Platform Actions
silisocs-0.4.0-py3-none-any.whl Python 3 none any Details for silisocs-0.4.0-py3-none-any.whl

Total release size: 2.8 MB

Release files / silisocs-0.4.0.tar.gz

Download URL silisocs-0.4.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
316d3baf2289d19efc418934d8b7686d89486830e3bd6e7b382992144e925716
BLAKE2b-256 checksum
How to use checksums
a0ae2dff083fb99de5b3342f04d0e081b37d4525b8cfe55e746647c17c52d837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Release files / silisocs-0.4.0-py3-none-any.whl

Download URL silisocs-0.4.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6befd78ded37f2668ac6287b0e5c19351df8ee14f42ad451287bf35526b79802
BLAKE2b-256 checksum
How to use checksums
740e7163801469fa28054e295cdffec77432dd987c181981d9ef9fc7a2da2b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

Security for silisocs 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for silisocs-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page