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 | bashStatementIllustrative
- Tool descriptions left out447 tools, sent with every Codex callwas ≈155,000now left out4
- Stack trace foldedPython RecursionErrorwas 4,215now 1361
- Test log foldedRust, Node and Pythonwas 5,704now 1,5642
- Repeat answered from cachesecond identical callwas 27,698now 05
Works with
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
In numbers
4,215 to 1361
tokens. One Python stack trace, folded before the model reads it.
75%3
fewer tokens to find where code lives, against grep and whole-file reads.
155k4
tokens of unused tool descriptions left out of every Codex call.
93%7
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. 1Inside HarnessLink
- Agents: Claude Code, Codex, omp and pi
- Rules: a tool call they deny never runs
- Gateway: trims each call before it leaves
- Model providers: reached on your own login
- Memory: every finished turn is banked
- Sync: turns and usage, up to your account
- Your other machines: recall what this one kept
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.


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.
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.


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.


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.


Sample data. Login
Only the base URL changes.
Your claude.ai or ChatGPT login passes through, and HarnessLink never stores provider keys.
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
- Stack traces folded
- Unused tools left out
- Idle caches kept warm
- Code found by symbol
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 - After05
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 - After1361
tokens, one Python RecursionError
A mixed Rust, Node and Python test log: 5,704 → 1,564 tokens.2
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 - Afterleft out4
tokens of tool descriptions per Codex call
447 tools were forwarded into every session; 8 of 953 sessions used any.4
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≈206
relative cost, not tokens
About 40% of cache-write spend went on writing a prefix again after a pause.6
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 map253
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
104releases since v17.5.31
- v17.21.5The docs, release notes and every other public page, finished
- v17.21.4harnesslink.sh, tightened
- v17.21.3harnesslink.sh sets out the bill
Memory benchmark
93%7of questions find the right entry in the top ten results.
By keyword alone81%7
Read the benchmarkPricing
Start free. Pay when you add a machine or a team.
Free
£0for 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
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
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
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
Prices in GBP, excluding VAT where applicable.Compare plans
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 storesDoes 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 gatewayWhat 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.
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 harnessIs 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.
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 seeHow 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 measuredRolling it out to a team?Talk to us
Sources
- A real Python RecursionError went from 4,215 to 136 tokens. One file, one machine. How it was measured
- A mixed Rust, Node and Python test log went from 5,704 to 1,564 tokens. One log. How it was measured
- 75% fewer tokens than grep plus whole-file reads, on 10 real questions in one repository. How it was measured
- 447 tools were forwarded into every session, about 155k tokens per Codex call; 8 of 953 sessions used any. How it was measured
- A second identical request was answered from the cache: 27,698 input tokens not sent. One live run. How it was measured
- 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
- 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