Skip to main content
Selecting a provider and passing Environment parameters are separate operations: the provider chooses the Environment implementation that executes the task, while its parameters control how that Environment is created and run. Set only the fields you need to change, and let provider defaults or an applicable Recipe supply the rest. Environment parameters must belong to the selected provider’s public schema shown by agentcompass config docs env <provider-id>. Undeclared fields and misspellings raise an unknown-parameter error. Configure outbound access through the shared network policies; adapters generate the corresponding native API options internally. All providers share execution settings and can declare additional provider-specific parameters. setup includes image, dockerfile, workdir, build_timeout_seconds, os, compose_file, main_env, and mounts. evaluation_setup uses the same structure for a fresh verifier. Resource, network, and environment-variable fields are also shared. Host credentials are configured through the adapter’s existing environment variables or SDK configuration, outside task execution settings.
AgentCompass matches recipes automatically. A normal evaluation does not require setting or modifying a recipe; configure one manually only when a benchmark page names an alternative, troubleshooting requires restricted matching, or your team loads custom adaptation logic.

Dockerfile environments

Docker and Daytona accept setup.dockerfile, a Dockerfile on the driver, and build a single-environment image with the Dockerfile’s directory as the build context, as Harbor does. Precedence is compose_file > image > dockerfile: a set image is used directly, and Compose mode also ignores dockerfile. Other providers reject a setup that provides only dockerfile.
Docker builds the image locally and reuses it by build-input fingerprint, following Compose image reuse and cleanup. Daytona creates the sandbox with the SDK’s Image.from_dockerfile, uploading only context files referenced by COPY/ADD. Build time counts toward build_timeout_seconds; resources, network policies, and environment variables behave as for any single environment.

Compose environments

Docker and Daytona accept setup.compose_file, a complete Compose file on the driver, and setup.main_env, the default service name (main when omitted). The Benchmark merges format-specific base definitions and overrides during task loading; the provider deploys the complete definition.
The Compose file declares each service’s CPU, memory, and GPU limits. In DinD mode, environment.resources configures the outer sandbox; run_resources and evaluation_resources override the outer resources for execution and fresh evaluation respectively. These fields do not change inner service limits. Native Docker Compose has no outer sandbox, so shared resources do not set service limits; use the Compose file or compose_override. Provider capability checks, including GPU model validation, still apply. Service images and builds come from the Compose definition and compose_override. Compose mode ignores the image and dockerfile fields in that environment’s setup. Execution and fresh evaluation select their modes independently: evaluation_setup.image is ignored only when the verifier itself uses Compose. The common workdir and task environment variables override only the default service. Direct ComposeEnvSession operations delegate to that service; env["database"] returns an operation view of another service. Closing the group releases its owned containers, networks, and volumes. Child views cannot independently close resources. The runtime does not automatically expose the Docker socket or other service shells to the agent. Setting evaluation_setup.image prevents the verifier from inheriting compose_file and main_env from execution. A single-image verifier declared by the task also does not inherit those fields. An explicit evaluation_setup.compose_file still selects Compose for evaluation. A fresh verifier can inherit rollout setup, including its image and mounts. Docker Compose supports all four phase network policies and dynamic changes; see Compose Network Policies for topology and proxy requirements. Daytona Compose still supports only public. Each service represents one container; fixed container_name and scaling are unsupported. Images must provide the timeout utility for command deadlines. Daytona selects the outer host image through dind_image and configures its resources through resources; see Terminal-Bench 4 for budget rules. See Mount data in DinD to make a Daytona storage volume available to the main service. When Daytona DinD Compose pulls or builds private images, pass a base64-encoded Docker config.json through dind_config_secret. AgentCompass writes it only to /root/.docker/config.json on the outer DinD host before image preparation; it is never injected into inner Compose service containers and cannot be used in single-container mode. Only static auths are kept; credsStore and credHelpers are unsupported. Avoid putting the secret directly in the config: reference an environment variable, or omit the field and let Compose mode read DIND_CONFIG_SECRET from the driver process environment:

External overrides

Docker and Daytona accept compose_override as a dictionary with the same structure as Compose YAML. Use it to set build arguments, build networking, or other Compose fields without editing Benchmark files. For example, configure a build proxy for TB4 execution and verifier images in your configuration file:
You can also pass it through the CLI:
"*" matches every service declared in the base file or override document, including services that only have an image; adding build enables building those services too. Use actual service names to modify only selected services. When wildcard and named overrides coexist, they apply in this order: base definition, wildcard overrides, named overrides. Named overrides take precedence; the base definition includes resolved shared settings for the main service. Mappings merge recursively, commands and healthcheck commands are replaced, volumes merge by container target, and ports are deduplicated by address, ports, and protocol. You can also provide top-level settings such as volumes and networks. AgentCompass writes temporary Compose files. Docker appends them as --file arguments to the startup command and uses the same files to validate the merged definition and query containers. Relative paths use the original setup.compose_file parent directory. Values follow Compose interpolation rules; write $$ for a literal $. build.network controls build networking only, and the builder must support the selected mode. This parameter applies to both execution and fresh evaluation environments on Docker and Daytona. A nonempty override without Compose raises an error. Daytona uses the framework’s built-in Python merger before estimating outer resources and uploading build inputs. The driver needs neither Docker nor the Compose CLI, and no additional Python dependencies are required. Each layer is interpolated before merging, using .env from the original Compose directory with process environment variables taking precedence. Service env_file and label_file inputs are also read on the driver. Uploads preserve literal dollar signs to prevent a second interpolation remotely. The remote host still needs Docker Compose and validates the complete configuration before startup. The built-in parser supports ordinary YAML and dictionary overrides; !reset and !override tags and unresolved include or extends are unsupported. Existing DinD restrictions on bind mounts, additional build contexts, and SSH forwarding still apply. Proxy addresses in overrides must be reachable from the remote builder; 127.0.0.1 refers to the remote host, not the driver.

Prebuild task images

From the source repository root with AgentCompass installed, run tools/build_benchmark_images.py to build task Compose and Dockerfile images and record their task mappings. The tool accepts a registered Benchmark and obtains TaskSpec objects through its loader and task selector. It reads the execution and independent evaluation environments’ compose_file fields, or their dockerfile fields when no image is set. Stages with neither are skipped; if no selected task declares anything to build, the tool exits without calling the container engine. It uses definitions already present in TaskSpec without applying Recipes or provider configuration. For example, prepare images for one TB4 task:
Replace the Benchmark ID and --benchmark-params with your dataset’s configuration. The Benchmark handles the JSON parameters, including the common sample_ids selector. The tool does not require tasks_dir, task.toml, or a specific dataset layout, and does not call a model or start task services. The default uses the local Docker daemon and Compose. Select the engine with --container-cli docker or --container-cli podman. To use sudo, pass --container-cli "sudo docker" or --container-cli "sudo podman", quoting the full command as one argument. Building, image inspection, tagging, pushing, and cleanup all use that command. Building only Dockerfiles does not require Compose. To build Compose stages, Podman requires an available API socket and a Compose provider supporting config --format json --no-normalize, such as Docker Compose v2 or newer. Select the provider through PODMAN_COMPOSE_PROVIDER or containers.conf. With sudo, root’s configuration, image store, and login credentials apply. All Compose profiles are enabled while building, so every service with build is included, including sidecars. Image-only services retain their original references. --image specifies a repository without a tag or digest, defaulting to agentcompass/<benchmark-id> with underscores in the Benchmark ID replaced by hyphens. Tags use <task_id>-<phase>-<service>, where phase is run or evaluation. Dockerfile stages build with the Dockerfile’s directory as the context and use <task_id>-<phase> tags. Identifiers that contain invalid tag characters or exceed the length limit are normalized and receive an identity digest; the manifest retains the original task ID. An existing local image with the same repository and tag skips the build. The tool does not detect changes to build inputs. Use --rebuild to force a build; the engine may still use its layer cache. Each service or Dockerfile stage builds under a temporary tag and receives its final tag only after image inspection succeeds. A failed build preserves the previous final image and cleans up temporary tags. The output directory must not exist. A successful run produces compose/ and images.json. Compose filenames contain the task index and phase. Built or reused services have build removed and their new image and pull_policy: missing set. Other service settings remain; the top-level project name is omitted so the caller can choose it. Compose resolves paths and environment variables relative to the source file, and exports preserve resolved values and literal dollar signs. Referenced local runtime files are not copied; move them and adjust paths yourself when using another host. Dockerfile stages export no files and appear only in the manifest. The manifest’s top-level benchmark identifies the Benchmark, and images is a list of Compose service or Dockerfile stage records: Use the output to edit dataset configuration manually. It is not a replacement dataset directory. The tool does not copy task data, rewrite the source dataset, or provide dataset-format export interfaces. Use the manifest to update task image fields or Compose references. If the loader regenerates Compose, update its source configuration as well. A build failure does not stop the remaining services, phases, or tasks. Failures are listed at the end, the process exits with a nonzero status, and no output directory is published. Successful final images remain available. Rerun without --rebuild to reuse existing images and retry missing ones; retry failed forced builds with --rebuild. Add --push to push built and reused images using the selected container command’s login. The default does not push. Push failures are also listed and prevent publication of the output directory. Rerun with --push and without --rebuild to reuse local images and retry pushing. Docker and Podman use separate image stores, as do rootless and rootful Podman. Push images to an accessible registry before using another engine or host, and configure authentication where images are pulled. Prebuilding does not change GPU or other runtime resource requirements.

Choose a Provider and Input Method

All of the following methods can provide Environment parameters. Choose one based on whether the values apply only to the current evaluation or should be reused by other runs or programs:

agentcompass run

Use --env <id> to select a provider. When it is omitted, AgentCompass uses host_process. Run agentcompass list env to see the provider IDs available in the current installation. --env-params accepts a JSON object for the Environment parameters of this evaluation. Matching fields override configuration-file values:

Configuration File

Write reusable provider parameters directly under environments.<id>. Do not add a params wrapper:
Select the same provider and load the file when running the evaluation:

Python SDK Single Evaluation

The SDK accepts a Python dictionary, so the parameters do not need to be encoded as a JSON string:

agentcompass launch and SDK Multiple Evaluations

In a launch orchestration, id selects the provider and the remaining fields are written directly under environment:
Each evaluation request can override these defaults in its own environment section. The Python SDK’s OrchestrationSpec uses the same field structure. See the agentcompass launch mapping rules and Python SDK multiple-evaluation requests.
When an orchestration mixes providers, do not place provider-specific parameters in defaults.environment. A request that overrides environment.id still inherits and merges the other fields in defaults.environment. Put provider-specific values in each requests[].environment instead.

Write Nested Fields

Provider parameters can be strings, numbers, booleans, objects, or lists. In a parameter reference, resources.cpu means the cpu field inside the resources object; it is not a flat key named resources.cpu. The following four forms are equivalent. Each requests 2 vCPUs and 6 GiB of memory from Daytona. The CLI accepts a JSON object:
A configuration file preserves the nested YAML structure:
The Python SDK accepts a nested dictionary:
A launch orchestration places provider parameters beside id while retaining their nested shape:
Objects merge recursively by field, while a later scalar or list replaces the earlier value in full. For example, if a configuration file sets resources.cpu: 2 and resources.memory_mb: 6144, then a request that passes only {"resources":{"memory_mb":8192}} resolves to 2 vCPUs and 8192 MiB of memory. Do not add a params wrapper, and do not write a field path as {"resources.cpu":2}. See the selected provider’s parameter reference for its nested fields, units, and accepted values.

Mount data

Mount an existing directory or storage volume to give the agent direct access to its files at a path inside the sandbox.

Mount your first directory

Start with an evaluation that runs in Docker. Suppose /datasets/challenge/public/train.csv exists on the Docker host. To make it available as /data/train.csv inside the sandbox, save this configuration as mount.yaml.
Add --env docker --config mount.yaml to your agentcompass run command. Once the sandbox starts, run ls /data inside it or have the agent read /data/train.csv. If the file is missing, check that the directory and file exist on the Docker host. With a remote Docker daemon, use a path on that remote machine.

Choose what to mount

To mount multiple directories or volumes, add one list entry per mount and give each a distinct target. A higher-priority mount list replaces the entire earlier list for that phase. Use mounts: [] to clear it.

Mount data in DinD

When you run Compose on Daytona, Docker runs inside a Daytona sandbox. This is Docker-in-Docker (DinD). For each mount, set source to the storage volume ID and target to the path in the outer sandbox. Add bind to expose that data in an inner Compose service.

Mount a volume in one service

If your Compose file already defines worker, add a mount like this to its Environment setup.
This maps the outer /mnt/dataset to /data in worker. When you omit bind.service, AgentCompass uses setup.main_env, which defaults to main. When you omit bind.target, the service uses the outer mount path. Different services can use the same inner path.

Mount the same data in every service

Set bind.service to "*" to bind the volume into every service in the merged Compose configuration.
Each service sees the volume at /data when its container starts, including services that run once and exit. Compose profiles determine which containers start. Keep mount targets distinct within each service, including targets supplied by "*".

Give two services different volumes

Suppose your compose.yaml defines a solver service for the agent and a worker service.
Save the configuration below as mount.yaml. Replace the Compose file path with its absolute path and enter the IDs of two existing storage volumes. Add --env daytona --config mount.yaml to your evaluation command.
The first bind uses setup.main_env, so solver sees the first volume at /data. The second names worker, which sees the other volume at its own /data. bind.service matches a key under services in the Compose file. Outer target paths must be distinct. Inner paths must be distinct within each service. These examples set read_only: false so they work with the Daytona SDK used by AgentCompass. Both the outer mount and the inner bind are writable. Choose an outer path outside /tmp, which DinD uses for staging. An inner bind.target can use /tmp. Use the same fields in evaluation_setup.mounts for a fresh verifier that runs in DinD.

Diagnose a bind error

AgentCompass checks for duplicate bind targets during plan validation. Before creating the outer sandbox, it matches bind.service against the merged Compose configuration, including definitions from compose_override. A one-shot service can receive a mount through an explicit service name or "*". After startup, AgentCompass checks mounts inside running services.

Mount data for a separate verifier

In reuse mode, rollout and evaluation use the same sandbox and mounts. In fresh mode, a verifier that inherits rollout setup also inherits its mounts. Set evaluation_setup.mounts to replace that list. The example below mounts public data for the agent and labels for the verifier.
The agent reads public inputs from /data and the verifier reads labels from /evaluation/labels. To clear the inherited mount list for a fresh verifier, set evaluation_setup.mounts to an empty list.

Understand Field Ownership

Environment parameters contain two kinds of fields: With every input method, shared fields and provider fields are written at the same level, without another params wrapper. In a configuration file, for example, all are written directly under environments.docker.

Inspect Fields and Resolved Configuration

Show the provider-specific fields, types, and defaults declared by one provider in the current installation:
Show the result of merging built-in defaults with a configuration file:
config show includes only built-in values and configuration-file layers. It does not include extra CLI, SDK, or orchestration fields for a particular run, or the final Environment settings that a Recipe adds before a task starts. See agentcompass config for the complete command behavior.

How Environment Parameters Take Effect

Environment parameters are not read once from a single source. They are built in these stages: The following command does not set a Docker image. The matching SWE-bench Verified Recipe derives the image and task workspace from the sample, so selecting the provider is usually enough:
Without a matching Recipe, you must still provide the provider’s required fields, such as the task image for Docker. A Recipe is also not a universal “explicit parameters always win” rule: built-in Recipes usually preserve compatible explicit image and resource settings, but they may still adjust workspace, network, or execution settings required by the Benchmark or Harness. Pass Environment parameters only when you intend to change the default behavior. Valid values still depend on the provider and are documented on its provider page and by config docs.
Configure overall and per-task time budgets under Timeouts, and concurrency and Environment startup rate under Run Controls. Fields such as Modal’s timeout and OpenSandbox’s lifecycle_seconds limit the lifetime of one sandbox and are not evaluation timeouts.
Native adapters may require particular variable values to launch their runner or translate canonical model/execution settings. If a declared environment variable conflicts with one of these requirements, the command fails before launch and reports only the variable name. Change the corresponding Model, Harness, or execution setting instead of overriding its generated variable. Matching values are accepted. This adds no new CLI field. Internal Python runners preserve your PYTHONPATH where they can bootstrap their imports; the mini-SWE-agent CLI still requires its generated module directory and rejects a conflicting PYTHONPATH.