Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Floating garden worlds where participants create, deliberate and build together

Agency Garden

Build worlds. Investigate agency.

An experimental world engine for moral reasoning.
A project by Syntelesis.

PyPI version Tests Python 3.11 and newer Apache 2.0 license

Public alpha. Published versions are available from PyPI and GitHub. The publishing workflow is disabled between explicitly approved releases. See publication readiness for validation, security settings and scope.

Agency Garden lets you build small worlds where an agent's choices have consequences. Define what each participant can observe, what it can do, and how the world changes. Run scripted or model participants, compare conditions, and follow the resulting histories.

The larger ambition is an open laboratory for artificial agency: purposes that persist, commitments that matter, relationships that develop, and institutions participants can help shape. This first release provides a compact foundation for that inquiry: two working worlds, a small Python extension interface, durable local execution and inspectable evidence.

Your first world in a minute

Python 3.11 or newer. The default examples run entirely offline; no API keys or model calls are needed.

python -m pip install --pre agency-garden
agency-garden init commons my-study
agency-garden run my-study/experiment.toml --output my-study/run
agency-garden view my-study/run

Four participants contribute to a shared pool while each has a private need. The experiment compares two pool multipliers across three paired seeds. You get 6 episodes and 120 recorded decisions, a JSON summary and an HTML explorer that opens directly in your browser.

This installs the latest published alpha from PyPI without Git or GitHub authentication. Record the installed version and environment for your study. You can also download a wheel and its checksums from GitHub releases. Existing release artifacts are retained for reproducibility.

Change a parameter in experiment.toml, use a new output directory, and run again. Each run freezes its configuration and implementation identity.

Quickstart · Configuration · Worlds · Build a world · Research use

What you can do

Capability What it gives you
Consequential worlds Explicit rules, legal actions, private observations and state transitions
Controlled comparisons Conditions × seeds × repetitions, configured in TOML or JSON
Scripted and model participants Four transparent baselines; optional OpenAI and Anthropic adapters
Sealed decision boundaries Every simultaneous participant receives a view of the same pre-action world
Durable histories SQLite checkpoints, retained responses and explicit recovery after interruption
Inspectable evidence Offline HTML exploration, JSON reports and a hash-linked event journal
Local extensions Add a world or policy without modifying engine source; record its code identity

Two worlds to start from

Shared Commons studies contributions, private needs and distribution. Contributions change actual game credits; integer remainders rotate among participants.

Trust studies sequential transfers and returns. Participants alternate roles, see the shared history, and decide how much of an amplified transfer to return.

agency-garden init trust trust-study
agency-garden run trust-study/experiment.toml --output trust-study/run

Both worlds expose rules you can read in a few minutes. Their outputs describe game outcomes; a study must establish what those outcomes reveal about moral reasoning.

Use it from Python

from agency_garden import AgentConfig, Experiment, PolicyConfig, WorldConfig, run
from agency_garden.report import write_report

experiment = Experiment(
    name="first-garden",
    world=WorldConfig(kind="commons", parameters={"rounds": 3}),
    agents=[
        AgentConfig(id="ada", policy=PolicyConfig(kind="middle")),
        AgentConfig(id="basil", policy=PolicyConfig(kind="random")),
    ],
    seeds=[11, 22, 33],
)
result = run(experiment, "runs/first-garden")
write_report(result.directory)
print(result.completed)  # 3

Bring your own participants

Install only the integration you need:

python -m pip install --pre 'agency-garden[openai]'
# Or: 'agency-garden[anthropic]' / 'agency-garden[models]'

Set the corresponding API key in your environment. Replace a participant's policy with openai or anthropic and supply a model ID available to your account. Model selection is explicit; the engine does not silently choose or upgrade a model.

[[agents]]
id = "ada"
instructions = "Consider your needs and the effects of your choices on the other participants."
[agents.policy]
kind = "openai"
[agents.policy.parameters]
model = "YOUR_MODEL_ID"
max_output_tokens = 1024
timeout = 60.0

Calls use explicit memory and token limits. Automatic provider retries are disabled. A refusal, invalid response or uncertain call is retained and blocks progress until you decide what to do. Model configuration and limits.

Make the world your own

agency-garden init custom my-world
agency-garden run my-world/experiment.toml --output my-world/run \
  --plugin-file my-world/world.py

This creates a complete Asymmetric Commons extension. Edit its private-need rule, add a new condition, or replace it with your own world. Extensions are trusted local Python, registered explicitly with source files and a version. Extension guide.

Understand a run

agency-garden plan my-study/experiment.toml
agency-garden verify my-study/run
agency-garden report my-study/run
agency-garden report my-study/run --include-private
agency-garden resume my-study/run

The ordinary report omits raw observations, memory, reasons and internal state. The private report includes them for investigation. Game-defined actions and outcomes may themselves reveal information, so review exports before sharing.

Resuming reuses completed decisions and requires the same configuration, Python version and implementation identity. Retrying an unresolved decision requires resume --retry-failed; that can duplicate remote work or charges. Execution and evidence.

Research ambition, honest scope

Agency Garden is designed for questions about how purposes, commitments and reasons organize conduct, and how such capacities might relate to an AI system's own good. A world can expose a choice or enact a cost. Interpreting that evidence requires a research design and a theory.

The current alpha runs finite local worlds with explicit per-episode memory. Continuing projects across environments, revisable institutions and longer-lived worlds are on the roadmap. The artwork illustrates that ambition; it is not a screenshot of an implemented 3D game.

Develop and contribute

git clone https://github.com/Syntelesis-Lab/agency-garden.git
cd agency-garden
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
python -m pip install -e '.[dev,models]'
ruff check .
ruff format --check .
mypy
pytest
python -m build

Useful contributions include complete worlds, independent research applications, reproducible bugs and clearer first-use instructions. See CONTRIBUTING.md, SECURITY.md and the changelog.

Created by Laurentiu Meirosu at Syntelesis. Licensed under Apache-2.0. See CITATION.cff to cite the software.

Metadata

Release files for agency-garden 0.1.0a3

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

Source distribution (sdist)

Source distribution for agency-garden 0.1.0a3
File Size Uploaded Provenance Actions
agency_garden-0.1.0a3.tar.gz 2.3 MB With provenance Details for agency_garden-0.1.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agency-garden 0.1.0a3
File Interpreter ABI Platform Actions
agency_garden-0.1.0a3-py3-none-any.whl Python 3 none any Details for agency_garden-0.1.0a3-py3-none-any.whl

Total release size: 2.4 MB

Release files / agency_garden-0.1.0a3.tar.gz

Download URL agency_garden-0.1.0a3.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
af3a5c6e468b30150a873f3e85f51bb0c42b40ccafab4716d8c03113d29f83aa
BLAKE2b-256 checksum
How to use checksums
c171a9fdf8030130a8b4910783701101f32a78664d1382bd67656f350e448325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Release files / agency_garden-0.1.0a3-py3-none-any.whl

Download URL agency_garden-0.1.0a3-py3-none-any.whl
Size 38.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
082d6b98a833f6effd525a82a2273057e5284bad4659bea17826b55d01a5d71a
BLAKE2b-256 checksum
How to use checksums
1cbdd4991e0bf2d2452f5cbdda2105766dc8e8259afa61e54fbeeb9777968fea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for agency-garden 0.1.0a3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agency_garden-0.1.0a3.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 Nov 18, 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