# Same agents, fewer tokens.

The controller for your coding agents

HarnessLink runs a gateway on your machine for Claude Code, Codex and your other agents. It trims each model call, enforces your team's rules at the tool call and gives every agent one memory.

`curl -fsSL https://harnesslink.sh/install.sh | bash`

[Read the docs](https://harnesslink.sh/docs) [For teams](https://harnesslink.sh/pricing)

Statement Illustrative

1. Tool descriptions left out 447 tools, sent with every Codex call≈155,000 left out [4](https://harnesslink.sh/docs/measurements#leaving-out-unused-tool-descriptions)
2. Stack trace folded Python RecursionError 4,215 136 [1](https://harnesslink.sh/docs/measurements#folding-a-stack-trace)
3. Test log folded Rust, Node and Python 5,704 1,564 [2](https://harnesslink.sh/docs/measurements#folding-a-test-log)
4. Repeat answered from cache second identical call 27,698 0 [5](https://harnesslink.sh/docs/measurements#answering-a-repeated-request-from-the-cache)

Tokens not sent

Four separate measurements from our own sessions, set as one statement. Sources below.

## [Works with](https://harnesslink.sh/harnesses)

- [Claude Code](https://harnesslink.sh/harnesses/claude-code)
- [Codex](https://harnesslink.sh/harnesses/codex)
- [omp](https://harnesslink.sh/harnesses/omp)
- [pi](https://harnesslink.sh/harnesses/pi)
- [Antigravity](https://harnesslink.sh/harnesses/antigravity)
- [Cursor](https://harnesslink.sh/harnesses/cursor)

### Connect by hand

- Gemini CLI
- GitHub Copilot
- Devin Desktop (formerly Windsurf)
- Zed
- Cline
- Roo Code
- Kilo Code
- Continue
- OpenCode
- goose
- Amp
- Warp
- DeepSeek Harness
- Aider
- [Any MCP client](https://harnesslink.sh/docs/multi-harness#any-mcp-client-or-base-url)

- 4,215 136 [1](https://harnesslink.sh/docs/measurements#folding-a-stack-trace)
  tokens. One Python stack trace, folded before the model reads it.
- 75%[3](https://harnesslink.sh/docs/measurements#finding-code-without-reading-whole-files)
  fewer tokens to find where code lives, against grep and whole-file reads.
- 155k [4](https://harnesslink.sh/docs/measurements#leaving-out-unused-tool-descriptions)
  tokens of unused tool descriptions left out of every Codex call.
- 93%[7](https://harnesslink.sh/docs/measurements#finding-the-right-memory)
  found. The right memory entry is in the first ten results; keyword search alone finds 81%.

How it works

## In the path of every call, on your machine.

Fig. 1 Inside HarnessLink

1. Agents: Claude Code, Codex, omp and pi
2. Rules: a tool call they deny never runs
3. Gateway: trims each call before it leaves
4. Model providers: reached on your own login
5. Memory: every finished turn is banked
6. Sync: turns and usage, up to your account
7. Your other machines: recall what this one kept

The vermilion line is one model call: from the agent, through the gateway, to the provider.

What it does

## One account across your agents and machines.

- Spend
  ### What each model cost this month.
  The HarnessLink gateway records the cost of every call it carries; the dashboard totals them.
  ![The dashboard's Overview, Spend this month by model: five models from Anthropic, OpenAI and Google, each with its cost and share of the month.](https://harnesslink.sh/landing/spend-light-752.webp) ![The dashboard's Overview, Spend this month by model: five models from Anthropic, OpenAI and Google, each with its cost and share of the month.](https://harnesslink.sh/landing/spend-dark-752.webp)
  Sample data.
- Rules
  ### Blocked before it runs.
  Rules are checked before every tool call in Claude Code, Codex and omp. Local settings cannot lift one, and every refusal is audited.
  acme-api · Claude Code
  Bash(git push --force origin main)
  Blocked by your organization's HarnessLink policy "No force push" (explicit deny on command "git push --force*"). Local settings cannot lift it; an org admin can change it at https://harnesslink.sh/policies.
  ![The dashboard's Policies audit: tool calls refused on three machines, from Claude Code, Codex and omp, each naming the rule that refused it.](https://harnesslink.sh/landing/audit-light-880.webp) ![The dashboard's Policies audit: tool calls refused on three machines, from Claude Code, Codex and omp, each naming the rule that refused it.](https://harnesslink.sh/landing/audit-dark-880.webp)
  Sample data.
- Memory
  ### Codex recalls what Claude Code decided.
  Your agents bank decisions and outcomes as they work, and any agent on any linked machine can search them.
  ![The dashboard's Memory page: entries banked across three projects by Claude Code, Codex and omp.](https://harnesslink.sh/landing/memory-light-960.webp) ![The dashboard's Memory page: entries banked across three projects by Claude Code, Codex and omp.](https://harnesslink.sh/landing/memory-dark-960.webp)
  Sample data.
- Resume
  ### Change machines mid-task.
  Start in Claude Code on the laptop and carry on in omp on the desktop; the session opens on the goal and next step.
  ![The dashboard's "Continue on another machine" for a Claude Code session: its workspace, goal and next step, with omp picked and the hnl resume command to run.](https://harnesslink.sh/landing/continue-light-464.webp) ![The dashboard's "Continue on another machine" for a Claude Code session: its workspace, goal and next step, with omp picked and the hnl resume command to run.](https://harnesslink.sh/landing/continue-dark-464.webp)
  Sample data.
- Login
  ### Only the base URL changes.
  Your claude.ai or ChatGPT login passes through, and HarnessLink never stores provider keys.
  Terminal
  hnl gateway connect
  ✓ HarnessLink gateway is running on http://127.0.0.1:4747
  ✓ claude-code connected /Users/maya/.claude/settings.json → http://127.0.0.1:4747/claude-code/anthropic; transcript sync on
  ✓ codex connected /Users/maya/.codex/config.toml → http://127.0.0.1:4747/codex/chatgpt/codex; transcript sync on
  Restart connected harnesses to route through the gateway: Codex and omp read their config only at startup.
  Sample data.

What happens to a call

## Five ways a call costs less.

- [Repeats answered from cache](https://harnesslink.sh/#call-panel-cache)
- [Stack traces folded](https://harnesslink.sh/#call-panel-trace)
- [Unused tools left out](https://harnesslink.sh/#call-panel-tools)
- [Idle caches kept warm](https://harnesslink.sh/#call-panel-warm)
- [Code found by symbol](https://harnesslink.sh/#call-panel-code)

### Repeats answered from cache

An identical request is answered from an exact-match cache and never reaches the model. A request that is only similar still does.

- Before 27,698
- After 0 [5](https://harnesslink.sh/docs/measurements#answering-a-repeated-request-from-the-cache)

input tokens

### Stack traces folded

A trace too long to send whole is grouped into frames, with repeats and library frames folded into counts. The lines kept are the original lines, and the full trace stays on hand if the agent asks.

- Before 4,215
- After 136 [1](https://harnesslink.sh/docs/measurements#folding-a-stack-trace)

tokens, one Python RecursionError

A mixed Rust, Node and Python test log: 5,704 → 1,564 tokens.[2](https://harnesslink.sh/docs/measurements#folding-a-test-log)

### Unused tools left out

Codex sends every tool description in full on every call, and the hub forwarded all its tools into every session. A tool a repository has not used recently is now left out; it can still be called by name, and `hnl tools --restore` brings it back.

- Before≈155,000
- After left out [4](https://harnesslink.sh/docs/measurements#leaving-out-unused-tool-descriptions)

tokens of tool descriptions per Codex call

447 tools were forwarded into every session; 8 of 953 sessions used any.[4](https://harnesslink.sh/docs/measurements#leaving-out-unused-tool-descriptions)

### Idle caches kept warm

Anthropic's prompt cache lapses a few minutes after the last request, and a pause means paying to write the same prefix again. While a conversation is idle, the gateway replays its last request as a cache read before the lapse. The window is a setting, and you can turn it off.

- Writing it again 100
- Keeping it warm≈20 [6](https://harnesslink.sh/docs/measurements#keeping-an-idle-conversation-warm)

relative cost, not tokens

About 40% of cache-write spend went on writing a prefix again after a pause.[6](https://harnesslink.sh/docs/measurements#keeping-an-idle-conversation-warm)

### Code found by symbol

The code map indexes each project's symbols on your machine. An agent asks for an outline, a definition or a name's references instead of reading whole files. The index is never synced.

- grep and whole files 100
- Code map 25 [3](https://harnesslink.sh/docs/measurements#finding-code-without-reading-whole-files)

relative tokens, on 10 real questions

With and without

## Six defaults it replaces.

- Without HarnessLink The bill, read at month end.
  With HarnessLink The cost of each model call, recorded as it goes through.
- Without HarnessLink Every tool description sent on every call.
  With HarnessLink Tools a repository does not use left out, still callable by name.
- Without HarnessLink Long stack traces sent whole.
  With HarnessLink Repeated and library frames folded into counts; the full trace on hand.
- Without HarnessLink Rules in a wiki, left to each agent.
  With HarnessLink Rules checked before every tool call; local settings cannot lift them.
- Without HarnessLink Every agent starts cold.
  With HarnessLink Every agent starts with what any of your agents did before, on any linked machine.
- Without HarnessLink A new laptop set up by hand.
  With HarnessLink Restored with `hnl cloud restore --apply`: settings, MCP servers, each agent's rules and skills. Secret values are never uploaded.

On the record

## Check the changes. Rerun the benchmark.

### Release notes

104 releases since v17.5.31

1. [v17.21.5 2026-11-16 The docs, release notes and every other public page, finished](https://harnesslink.sh/releases/17.21.5)
2. [v17.21.4 2026-11-16 harnesslink.sh, tightened](https://harnesslink.sh/releases/17.21.4)
3. [v17.21.3 2026-11-15 harnesslink.sh sets out the bill](https://harnesslink.sh/releases/17.21.3)

[All releases](https://harnesslink.sh/releases)

### Memory benchmark

93%[7](https://harnesslink.sh/docs/measurements#finding-the-right-memory) of questions find the right entry in the top ten results.

By keyword alone 81%[7](https://harnesslink.sh/docs/measurements#finding-the-right-memory)

[Read the benchmark](https://harnesslink.sh/docs/memory-benchmark)

Pricing

## Start free. Pay when you add a machine or a team.

- ### Free
  £0 for ever
  For one person on one machine.
  - 1 device
  - 30 days of searchable history; older history is locked, back on upgrade
  - 100 sessions and 1,000 prompts kept
  - Memory within one project
  - Download my data
  [Get started](https://harnesslink.sh/login)
- ### Pro
  £10/ month
  For one person across every machine. New accounts get 14 days of Pro free, no card.
  - Every device
  - 1,000 sessions and 25,000 prompts, all searchable
  - Memory across every project
  - Regex in Query and History
  [Start 14 days free](https://harnesslink.sh/login)
- ### Team
  £22/ user / month
  For a team: shared project memory and organisation policies, private unless the owner turns sharing on.
  - Everything in Pro
  - Shared project memory
  - Organisation policies
  - Per-member spend, when the owner turns it on
  [Get started](https://harnesslink.sh/login)
- ### Enterprise
  Contact us
  Contract terms for organisations that need them.
  - Storage sized to your contract
  - SSO and SCIM
  - Bulk export API and audit streaming
  - Data region, your own keys, legal hold and an SLA
  [Get in touch](https://harnesslink.sh/contact)

Prices in GBP, excluding VAT where applicable.[Compare plans](https://harnesslink.sh/pricing)

Questions

## Before you install.

**What leaves my machine?**

Model calls go through the gateway on your machine to your provider. With sync on, prompts, session transcripts and memory files are uploaded for search, after your machine strips API keys and other secrets. Usage goes up as token counts, model names and cost estimates; each linked device as its hostname and platform. Provider keys and passwords are never stored.

[Privacy: what HarnessLink stores](https://harnesslink.sh/privacy)

**Does it work with my Claude or ChatGPT subscription?**

Yes. Each harness keeps its own login, passed through to the provider; provider keys are never stored. Claude Code keeps its claude.ai login, Codex its ChatGPT login or API key. The gateway needs you signed in to a HarnessLink account; Free will do.

[The gateway](https://harnesslink.sh/docs/usage#the-gateway-every-model-call-goes-through-harnesslink)

**What if HarnessLink is down, or I remove it?**

It fails closed: while its service is down, connected harnesses get “connection refused”, with no silent way around. `hnl gateway disconnect` restores direct provider access. `hnl uninstall` removes the service and the command and restores every harness config. Your data stays unless you add `--purge`.

[Uninstalling](https://harnesslink.sh/docs/install#uninstalling)

**Which agents does it work with?**

It sets up six itself: omp, Claude Code, Codex, pi, Antigravity and Cursor. Model calls from the first four go through the gateway; Antigravity’s only in Gemini API-key mode, Cursor’s not at all. Other agents and editors can connect to the memory tools or the gateway by hand, and get less.

[What HarnessLink captures from each harness](https://harnesslink.sh/docs/multi-harness)

**Is it open source?**

No. HarnessLink is proprietary: `hnl` is licensed to you, not sold, under the HarnessLink End-User Licence (`hnl --license` prints it). It began as a fork of oh-my-pi; the code it still inherits stays under the MIT licence, and the notices shipped with it list those files.

[Terms: the HarnessLink software](https://harnesslink.sh/terms)

**What does the Team plan add?**

An organisation with invites, seats and teams; shared memory for the projects an owner chooses; organisation policies; per-member spend and team budgets when the owner turns Spend on; an onboarding pack of agreed skills, agents and MCP servers. Owners never see your prompts, transcripts or memory outside shared projects. £22 per user a month.

[What your organisation can see](https://harnesslink.sh/docs/organisation-visibility)

**How were these figures measured?**

Each figure’s numbered note links to its section of How we measured: the setup, what was counted, the limits. Several come from one file, log or run on one machine, and say so. The memory figures come from a benchmark of written sample questions.

[How we measured](https://harnesslink.sh/docs/measurements)

Rolling it out to a team?[Talk to us](https://harnesslink.sh/contact)

## Sources

1. A real Python RecursionError went from 4,215 to 136 tokens. One file, one machine. [How it was measured](https://harnesslink.sh/docs/measurements#folding-a-stack-trace)
2. A mixed Rust, Node and Python test log went from 5,704 to 1,564 tokens. One log. [How it was measured](https://harnesslink.sh/docs/measurements#folding-a-test-log)
3. 75% fewer tokens than grep plus whole-file reads, on 10 real questions in one repository. [How it was measured](https://harnesslink.sh/docs/measurements#finding-code-without-reading-whole-files)
4. 447 tools were forwarded into every session, about 155k tokens per Codex call; 8 of 953 sessions used any. [How it was measured](https://harnesslink.sh/docs/measurements#leaving-out-unused-tool-descriptions)
5. A second identical request was answered from the cache: 27,698 input tokens not sent. One live run. [How it was measured](https://harnesslink.sh/docs/measurements#answering-a-repeated-request-from-the-cache)
6. About 40% of cache-write spend went on writing a prefix again after a pause; in a ten-day replay, refreshes cost about a fifth of what they saved. [How it was measured](https://harnesslink.sh/docs/measurements#keeping-an-idle-conversation-warm)
7. The right entry is in the first ten results for 93% of questions, 81% by keyword alone; 64% against 11% when the question is paraphrased. [How it was measured](https://harnesslink.sh/docs/measurements#finding-the-right-memory)
