2026-11-27 16:19 UTC

Union.ai introduces hlock for portable, reproducible agent setups

state: expiredheat: mediumuncertainty: mediumrelevance: mediumagent-harnesses configuration-portability developer-toolsUnion.ai

What is this?

Union.ai’s hlock is a developer tool documented as packaging coding-agent harnesses and their dependencies—such as models, MCP servers, skills, plugins, and configuration—in a lockfile that can be checked and restored across environments. Its documentation also describes migrating setups between harnesses, localizing them to open-source models, and evaluating configurations; these are first-party product claims, not independently verified outcomes. The supplied evidence is an HN listing and product documentation, not independent adoption or performance evidence.

Why it matters

hlock tackles a practical barrier to using coding agents in teams: an agent’s behavior depends on more than its model, and its setup can be difficult to reproduce or compare. If its documented features work as described, teams could share reproducible harness configurations, switch between providers or harnesses more easily, and test local models against their own tasks. This is a developer-tool release, not evidence that these workflows are widely adopted or that migration and evaluation produce good results.

Current assessment

Union.ai’s first-party hlock documentation describes a CLI and lockfile for pinning agent harnesses and dependencies—including models, MCP servers, skills, plugins, instructions, and configuration—with digests, then checking changes and restoring or launching the setup in another environment. It says secrets are represented as placeholders rather than committed. Other documented features include migrating locks between harnesses, localizing configurations to open-source models and local runtimes, and evaluating candidate configurations on user-provided tasks. The docs name Claude Code, Codex, Pi, OpenCode, and others as supported harnesses. These capabilities are product claims; the supplied evidence does not independently verify compatibility, security, evaluation quality, adoption, or real-world benefits. The HN item and search results point to the documentation and repository, but provide no independent validation. If successful, the approach could make agent setups more reproducible and portable, and lower friction for comparing hosted and local options; practical value depends on how completely tools and providers can be captured and migrated.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-29 02:26 (minted)⭐ origin echo-reconstructedThe HLock project’s original public artifact is its GitHub repository/README, which describes hlock as: “Pin your harness, models, MCP serve
Union.ai on github (echo) · attributed from hn.story.50283670 · published time unknown
—
10-29 02:01first on hacker news · published · lag ?HLock: Harness Portability for Agent Configs
handfuloflight
—
10-29 02:01amplified on hacker news 👑hn.story.50283670
handfuloflight
peak 1 · 0 comments · 104% of case engagement
10-29 02:22our radar first saw it · lag ?discovery anchor: hn.story.50283670—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnHLock: Harness Portability for Agent Configs
Retrieved article excerpt

Open article · Retrieved 2026-10-29T02:24:04.967172+00:00

hlock logo

# Your agent harness made portable.

Your agent is more than a model. It's a harness, MCP servers, skills, and config,
hand-tuned on one machine. `hlock` is the missing harness packaging layer:
`harness.lock` tracks all of its dependencies, so you can commit it to git and restore
it anywhere.

[Get started](https://docs.hlock.ai/getting-started/quickstart/) 
 [GitHub](https://github.com/unionai-oss/hlock)

pipuvuvx (no install)pipx

```
pip install hlock
```

```
uv add hlock            # add to a project
uv tool install hlock   # or install the CLI globally
```

```
uvx hlock --help
```

```
pipx install hlock
```

~/projects/my-app

## Lock the harness you already have[¶](https://docs.hlock.ai/#lock-the-harness-you-already-have "Permanent link")

If you've used `uv`, `cargo`, or `npm`, you already know the shape of `hlock`:

| You know this from package managers | In `hlock` |
| --- | --- |
| `uv.lock` / `Cargo.lock` | **`harness.lock`**, the [lockfile](https://docs.hlock.ai/reference/lockfile/): every dependency of your harness, pinned and hashed |
| `pip freeze` | **[`hlock pin`](https://docs.hlock.ai/guides/pin/)**: record the setup you already have, and re-pin as it grows |
| `--locked` check | **[`hlock check`](https://docs.hlock.ai/guides/pin/#keep-it-honest-with-check)**: show what changed since the pin |
| `uv sync` / `npm ci` | **[`hlock sync`](https://docs.hlock.ai/guides/sync/)**: rehydrate the locked setup on any machine |
| `uv run` | **[`hlock launch`](https://docs.hlock.ai/guides/launch/)** and **[`hlock run`](https://docs.hlock.ai/reference/cli/#run)**: start sessions and run prompts on the locked setup |

- **Pin everything**

  ---

  The harness version, models, MCP servers, skills, plugins, instruction files, and
  config, each with a digest. [Claude Code, Codex, Pi, OpenCode, autonomous agents like
  OpenClaw, and more](https://docs.hlock.ai/reference/harnesses/).
- **Secrets stay out**

  ---

  API keys and tokens become `HLOCK_SECRET_*` placeholders, so the lock is safe to
  commit. You supply the values when you sync.
- **Rehydrate anywhere**

  ---

  `hlock sync` restores the setup on a new machine, in an isolated directory, or in a
  Docker image, and tells you exactly what it can't do for you.
- **Launch from the lock**

  ---

  `hlock launch` starts your harness in an isolated environment that matches the lock,
  with none of the unlocked config on your machine.

## Manage your team's agents[¶](https://docs.hlock.ai/#manage-your-teams-agents "Permanent link")

Contributors to one repository rarely share an agent setup: one uses Claude Code with
hand-written skills, another uses Codex with a different model. Each person can commit their own
lock to `.hlock/locks/harness.<handle>.lock`, next to the code it was used on. Anyone with a clone
can then try a teammate's setup in isolation with `hlock launch --lock`, or
[`hlock pull`](https://docs.hlock.ai/guides/pull/) it from outside the repository. Add the
[hlock badge](https://docs.hlock.ai/project/badge/) to your README to point readers at the locks. See
[Team repositories](https://docs.hlock.ai/guides/teams/) for the layout and the commands.

```
hlock pin -o .hlock/locks/harness.alice.lock         # your harness and model, with the repo's setup
hlock launch --lock .hlock/locks/harness.bob.lock    # try a teammate's, isolated from yours
```

## Switch harnesses, or go local[¶](https://docs.hlock.ai/#switch-harnesses-or-go-local "Permanent link")

[`hlock migrate`](https://docs.hlock.ai/guides/migrate/) moves a lock onto another harness, Claude Code to Codex
say: skills, MCP servers, and instructions go where the new harness reads them, and models
move to a provider it supports.

[`hlock localize`](https://docs.hlock.ai/guides/localize/) turns any lock into an equivalent on an open-source
harness and models served by a local runtime like Ollama or LM Studio. It's like
cross-compiling: your MCP servers, skills, and instructions come along. Give it an
[eval pack](https://docs.hlock.ai/guides/eval-packs/), and it measures the local candidates against your tasks.

## Let an agent do the busywork[¶](https://docs.hlock.ai/#let-an-agent-do-the-busywork "Permanent link")

Some jobs need judgment, not a script. [`hlock meta`](https://docs.hlock.ai/guides/meta/) hands them to an
agent, the **meta harness**, and checks every result:

- **`install`**: installs what the sync plan leaves to you, then runs `hlock sync --yes`.
- **`bootstrap-evals`**: fills your eval packs with real tasks from your repo.
- **`update`**: moves skills, MCP servers, and plugins to their latest releases. `--pin`
  records it in the lock.

Use the agent built into hlock, or a harness you already have (Pi, Codex, Goose, OpenCode,
Hermes), on your API key or, with `--local`, open-weight models. It asks before every
command, or runs `--headless` against an allowlist.

## Then make it better[¶](https://docs.hlock.ai/#then-make-it-better "Permanent link")

A locked harness is a baseline. Once your setup is reproducible, you can measure it: every
lock `hlock resolve` writes records its success rate, cost, and latency on your own tasks.
The tools will look familiar:

| You know this from | In `hlock` |
| --- | --- |
| a test suite | **[`hlock evals init --from-traces`](https://docs.hlock.ai/guides/eval-packs/#draft-a-pack-from-your-traces)**: draft an eval pack from the requests you've made to your agent |
| `pyproject.toml` | **`harness.toml`**, the [manifest](https://docs.hlock.ai/reference/manifest/): the models, decision models, and harnesses to try, and what "best" means |
| `uv lock` | **[`hlock resolve`](https://docs.hlock.ai/guides/resolve/)**: measure every combination on your evals, and lock the winner with its evidence |
| `uv lock --upgrade` | **[`hlock upgrade`](https://docs.hlock.ai/guides/upgrade/)**: try newer models, and keep them only if they hold up |
| profile-guided optimization | **[`hlock tune`](https://docs.hlock.ai/guides/tune/)**: tune prompts, hyperparameters, and small models on your evals |

- **Find the best stack for your tasks**

  ---

  Draft an [eval pack](https://docs.hlock.ai/guides/eval-packs/) from the sessions your agent already
  logged, list the models and harnesses to try in `harness.toml`, and
  [`hlock resolve`](https://docs.hlock.ai/guides/resolve/) locks the winner with its evidence.
- **Tune what's inside**

  ---

  [`hlock tune`](https://docs.hlock.ai/guides/tune/) goes past model choice into prompts, hyperparameters,
  and fine-tuned small models, on your evals. Run it offline, on this machine, on a
  Flyte cluster for GPUs, or on [a backend you write](https://docs.hlock.ai/guides/backends/).

## Where to next[¶](https://docs.hlock.ai/#where-to-next "Permanent link")

- **New here?** Start with [Installation](https://docs.hlock.ai/getting-started/installation/) and the
  [Quickstart](https://docs.hlock.ai/getting-started/quickstart/).
- **Want the mental model?** Read [How it works](https://docs.hlock.ai/concepts/).
- **Sharing a repository?** See [Team repositories](https://docs.hlock.ai/guides/teams/).
- **Already using APM?** See [Coming from APM](https://docs.hlock.ai/getting-started/apm/): keep `apm.yml`,
  and add what hlock locks and measures on top.
- **Comparing tools?** See [hlock and related tools](https://docs.hlock.ai/concepts/related/): APM, chezmoi,
  Nix, promptfoo, DSPy, and where each one fits.
- **Want an agent to do the setup?** See [Delegating to the meta harness](https://docs.hlock.ai/guides/meta/).
- **Looking something up?** See the [CLI](https://docs.hlock.ai/reference/cli/),
  [Python API](https://docs.hlock.ai/reference/python-api/), or [`harness.toml`](https://docs.hlock.ai/reference/manifest/) reference.
handfuloflight10
🟧 echo.github ⭐The HLock project’s original public artifact is its GitHub repository/README, which describes hlock as: “Pin your harness, models, MCP serveUnion.ai——

Interpretation history

Decision trace