harness.yaml reference
Every harness has a harness.yaml at its root. The hub validates it on every push against the schema published at schemas/harness.v1.json, which you can also point your editor at. Paths are relative to the harness folder and can't leave it. Unknown fields are rejected.
# yaml-language-server: $schema=https://agentfacehub.com/schemas/harness.v1.json
spec: v1
name: acme/research-agent
version: 1.0.0
license: apache-2.0
description: Searches, reads and writes a cited report.
runtime:
kind: declarative
system_prompt: ./prompts/system.md
models:
requires: [tool_use]
min_context: 128000
tools:
skills: [./skills/*]
permissions:
network: [api.semanticscholar.org]
filesystem: workspace-onlyFields
| Field | Type | Description |
|---|---|---|
spec required | "v1" | Manifest format version. Always v1. |
name required | string | namespace/name, lowercase. Must match the repo you push to, e.g. acme/research-agent. |
version required | string | Semantic version such as 1.3.0, with no leading v and no +build metadata. Each version can be published once. |
license required | string | SPDX-style license id such as apache-2.0 or mit. A hosted_only harness uses proprietary or a LicenseRef- id. |
distribution | open · hosted_only | open (the default): anyone who can see the harness can download it. hosted_only: only you get the files. See [Publishing](/docs/publishing#hosted-only-harnesses). |
description | string ≤ 300 chars | One line shown in search results and on the harness page. |
runtime required | object | How the harness runs. The kind decides which other fields are needed; see Runtimes below. |
models | object | What the model running this harness must support. |
models.requires | list of tool_use · json_mode · vision · reasoning · computer_use≤ 5 items | Capabilities the model must have. |
models.min_context | integer > 0 | Smallest context window, in tokens, the harness works with. |
models.tested_with | list of string ≤ 50 items | Model ids the author has tested with. Informational. |
tools | object | Tools the harness brings with it. |
tools.mcp_servers | list of string ≤ 50 items | Paths to MCP server config files. |
tools.skills | list of string ≤ 200 items | Skill folders, globs allowed (./skills/*). Each one must contain a SKILL.md. |
permissions | object | What the harness is allowed to touch. Shown on the harness page. |
permissions.network | list of string ≤ 100 items | Hosts the harness may reach, such as api.example.com or *.arxiv.org. An empty list means no network. |
permissions.filesystem | workspace-only · none | workspace-only to read and write the working folder, none for no file access. |
permissions.max_runtime_s | integer ≥ 1, ≤ 86,400 | Longest a single run may take, in seconds. |
permissions.max_cost_usd | number > 0, ≤ 1,000 | Most a single run may spend on model calls, in US dollars. |
io | object | Schemas for structured input and output, if the harness has them. |
io.input_schema | string | Path to a JSON Schema for the input. |
io.output_schema | string | Path to a JSON Schema for the output. |
evals | list of string ≤ 50 items | Paths to eval suites. |
Runtimes
declarative harnesses are a system prompt plus skills and can be installed straight into Claude Code or Codex. The other runtimes ship their own agent loop that speaks stdio-jsonl/v1; people download them and run them themselves.
kind: python
| Field | Type | Description |
|---|---|---|
runtime.kind required | "python" | Which runtime this harness uses. |
runtime.entrypoint required | string | For python: package.module:function. For node: path to the entry file. |
runtime.python required | string | Python version, quoted, such as "3.12". |
runtime.deps required | string | Path to the dependency file (requirements.txt, package.json, …). |
runtime.protocol required | "stdio-jsonl/v1" | The protocol the harness speaks on stdin/stdout. Always stdio-jsonl/v1. |
kind: node
| Field | Type | Description |
|---|---|---|
runtime.kind required | "node" | Which runtime this harness uses. |
runtime.entrypoint required | string | For python: package.module:function. For node: path to the entry file. |
runtime.node required | string | Node major version, quoted, such as "22". |
runtime.deps required | string | Path to the dependency file (requirements.txt, package.json, …). |
runtime.protocol required | "stdio-jsonl/v1" | The protocol the harness speaks on stdin/stdout. Always stdio-jsonl/v1. |
kind: container
| Field | Type | Description |
|---|---|---|
runtime.kind required | "container" | Which runtime this harness uses. |
runtime.dockerfile required | string | Path to the Dockerfile. |
runtime.protocol required | "stdio-jsonl/v1" | The protocol the harness speaks on stdin/stdout. Always stdio-jsonl/v1. |
kind: declarative
| Field | Type | Description |
|---|---|---|
runtime.kind required | "declarative" | Which runtime this harness uses. |
runtime.system_prompt required | string | Path to the system prompt file. |