# `H.Harness`
[🔗](https://github.com/parlant/harness/blob/v0.3.0/lib/h/harness.ex#L1)

Behaviour for pluggable agent harness profiles (`H.Harness.Coding`, etc.).

A harness defines the profile descriptor, tool modules, and workspace context
bootstrapping (such as `AGENTS.md` discovery through `H.ExecutionEnv`).
Follow [Author a harness profile on hiness.dev](https://hiness.dev/docs/extensions/#author-a-harness-profile)
to register a custom profile.

# `descriptor`

```elixir
@type descriptor() :: %{id: String.t(), name: String.t(), description: String.t()}
```

# `bootstrap_agent`

```elixir
@callback bootstrap_agent(H.ExecutionEnv.t(), overrides :: map(), opts :: keyword()) ::
  {:ok, map()} | {:error, term()}
```

# `descriptor`

```elixir
@callback descriptor() :: descriptor()
```

# `id`

```elixir
@callback id() :: String.t()
```

# `tools`

```elixir
@callback tools(opts :: keyword()) :: [module()]
```

# `resolve`

```elixir
@spec resolve(nil | String.t(), keyword()) ::
  {:ok, module()} | {:error, :unknown_harness}
```

Resolves a harness module from a string ID (defaulting `nil` to `H.Harness.Coding`).

Supports custom registrations via `opts[:harnesses]` as either a `%{id => module}`
map or a list of `H.Harness` modules. Never creates atoms from input.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
