---
title: "hooks.yaml"
description: "The agent-qa hooks.yaml reference: hook IDs, names, runtimes, script files, extra files, timeouts and network access for scripts that run in the Docker sandbox."
canonical_url: "https://vostride.com/docs/agent-qa/configuration/hook"
md_url: "https://vostride.com/docs/agent-qa/configuration/hook.md"
last_updated: "2026-11-07T15:25:39+05:30"
---

> [Documentation index](https://vostride.com/docs.md) · [Site index](https://vostride.com/llms.txt)
> Follow the Markdown links to read individual pages; the indexes list the available documentation.

# hooks.yaml

> The agent-qa hooks.yaml reference: hook IDs, names, runtimes, script files, extra files, timeouts and network access for scripts that run in the Docker sandbox.

The hooks file lists the scripts your tests can run. Its path is `workspace.hooksFile`, `hooks.yaml` by default. It must exist; a project without hooks uses `hooks: []`. [Hooks](https://vostride.com/docs/agent-qa/guides/hooks.md) explains when hooks run and how they pass values to tests.

```yaml
hooks:
  - id: h_phi-arts-vis-band-aira-streng-twig-roi-mino-fold
    name: Make a shipping address
    runtime: node
    file: scripts/examples/make-shipping-address.mjs
    timeout: 30s
    network: false
```

## id
Description: How tests refer to the hook in `setup`, `teardown` and `{{runHook:"…"}}`. IDs must be unique.

Possible values: `h_` followed by ten lowercase words joined by hyphens.

Required: yes.

Default: none. The dashboard's hook editor and `agent_qa_change_config` create it.

## name
Description: The name shown in logs and in the dashboard.

Possible values: any text, unique in the file.

Required: yes.

Default: none.

## runtime
Description: What runs the script. Each has its own sandbox image.

Possible values: `node`, `bun`, `python`, or `bash`.

Required: yes.

Default: none.

## file
Description: The script to run.

Possible values: a path from the config file's folder.

Required: yes.

Default: none.

## deps
Description: Extra files to copy next to the script, such as helper modules or test data.

Possible values: a list of paths.

Required: no.

Default: none.

## packageFile
Description: A package manifest to copy next to the script. Nothing is installed from it.

Possible values: a path.

Required: no.

Default: none.

## timeout
Description: How long the hook may run. A hook that runs past it fails.

Possible values: a duration, such as `30s` or `2m`.

Required: yes.

Default: none.

## network
Description: Whether the sandbox has network access. Set `false` for hooks that only compute values.

Possible values: `true` or `false`.

Required: no.

Default: `true`.

## Documentation navigation

- [All documentation](https://vostride.com/docs.md)
- Parent: [Configuration](https://vostride.com/docs/agent-qa/configuration.md)
- Previous: [Suite files](https://vostride.com/docs/agent-qa/configuration/suite.md)
- Next: [Variables and secrets](https://vostride.com/docs/agent-qa/configuration/env-secrets.md)
