Documentation

Environments

environments maps an environment key to an environment. Environment keys use lowercase letters, digits and -, up to 64 characters. A key cannot start with a letter followed by -.

Hydra turns auto-image on for every environment a GitOps commit writes, and the auto-image builds set the image.

Environment keys

KeyTypeDefaultDescription
namestringthe environment keySets the environment's display name.
root_pathstring/environments/<key>Names the document folder that holds the environment's MCP config and skills.
mountslist of mountnoneLists what the environment's runs check out.
secretslist of stringnoneLists the names of the organization secrets that the environment's runs receive. Each name must exist as an organization secret.

A config file names secrets and never holds their values.

environments:
  web:
    name: Web
    mounts:
      - type: bundle
        target: web
        source: { kind: repo, repo_name: acme/web }
      - type: documents
        target: documents
        path_prefix: /designs/
    secrets: [API_TOKEN]

Mount keys

Settings layers merge mounts by target.

KeyTypeDefaultDescription
typebundle or documentsrequiredSets the mount type.
targetstringrequiredSets the mount's relative path in the run's working directory.
sourcebundle sourcerequired for bundleNames the repository to check out.
path_prefixstringnoneA documents mount with this key syncs only documents whose path starts with it. Without it, the mount syncs the whole tree.

Bundle source keys

KeyTypeDefaultDescription
kindrepo or remote_urlrequiredSets the source kind.
repo_namestringrequired for repoNames a repository the organization has connected, such as acme/web.
urlstringrequired for remote_urlSets the git URL.
revstringsee descriptionSets the revision to check out. For repo, the default is the repository's default_branch, then main. For remote_url, the default is main.
service_repo_namestringnoneFor remote_url, this key makes the run count as referencing that connected repository.

Environment documents

PathContents
<root_path>/instructions.mdInstructions for the environment's runs. A run finds them in its WORKSPACE.md file, under "Environment instructions".
<root_path>/mcp-config.jsonThe environment's MCP config. It wins a conflict with the agent's copy.
<root_path>/skills/The environment's skills. They win a conflict with the agent's skills.