HarnessLink is the controller for your coding agents: it routes their model calls, gives them shared memory, banks what they do, and syncs and restores your setup. You code in omp, Claude Code, Codex or pi.
A harness is a coding agent that runs a model with tools: omp, Claude
Code, Codex, pi, Antigravity, Cursor. HarnessLink is not one of them. It never
patches a harness: it reads the files each one already writes and, with
your consent, through hnl cloud setup, adds its own entries to a
harness's config (gateway base URL, context hooks, MCP server). This is what
each harness yields after a default install and setup:
| omp | pi | Claude Code | Codex | Antigravity | Cursor | |
|---|---|---|---|---|---|---|
| Prompt history | ✓ | ✓ | ✓ | ✓ | ✓ | no |
| Session transcripts | ✓ | ✓ | ✓ | ✓ | ✓ (brain/<conversation>/.system_generated/logs/transcript_full.jsonl) | ~/.cursor/sessions/*.jsonl only |
| Subagent transcripts | ✓ | ✓ | ✓ | ✓ | no | no |
| Memory bank (autobank) | every finished turn (not subagents) | every finished turn (not subagents) | every finished turn (not subagents) | every finished turn (not subagents) | one entry per conversation | not supported |
Work state (state/) | todos, plan, checkpoints | todos, plan, checkpoints | todos, plans | plans | no | no |
| Own memory files | AGENTS.md, memories/ | AGENTS.md, memories/ | CLAUDE.md (global and per project), auto memory | AGENTS.md, AGENTS.override.md, memories/ | GEMINI.md, rules, knowledge, brain artifacts | ~/.cursorrules |
| Setup in the device profile | agents, commands, rules, prompts, skills, AGENTS.md, SYSTEM.md | same as omp | agents, commands, rules, output styles, skills, CLAUDE.md | prompts, skills, AGENTS.md | no | no |
| Gateway routing | ✓ | ✓ | ✓ | ✓ | Gemini API-key mode only (GOOGLE_GEMINI_BASE_URL); signed in, traffic goes straight to Google | no |
| Context hooks | ✓ | no | ✓ | ✓ | no | no |
| Org policy (tool and command rules) | ✓ (tool_call extension) | ✗ no tool hook | ✓ (PreToolUse) | ✓ (PreToolUse; prompt rules block; hosted web search not hookable) | ✗ no documented tool hook | ✗ no tool hook |
| Org policy instructions | ✓ | no | ✓ | ✓ | no | no |
| Org model rules and usage limits (gateway, 17.5.50+) | Anthropic and OpenAI Codex providers | Anthropic and OpenAI Codex providers | ✓ | ✓ | Gemini API-key mode only (gemini/<model>) | ✗ not routed |
| Memory tools (MCP) | ✓ | no | ✓ | ✓ | no | --harness=cursor by hand |
Runs from HNL_RUN_ID | ✓ | no | ✓ | ✓ | no | no |
| Runs from subagents | ✓ | ✓ | ✓ | ✓ | no | no |
Delegation target (hnl run, delegate) | omp -p --mode json | pi -p --mode json | claude -p --output-format stream-json | codex exec --json (read-only sandbox, git repos only) | agy --output-format stream-json (commands auto-denied) | no |
How each piece works: history, transcripts and runs in
USAGE.md; the memory bank and state/ in
MEMORY_BANKING.md; setup and its switches in
INSTALL.md.
Cursor is not supported beyond the two files named above. Its chats live in an editor database HarnessLink does not read, so Cursor prompts and turns are not captured or banked.
Collection runs inside the HarnessLink service (hnl daemon run,
supervised by launchd, systemd --user or a logon task), which the CLI
installs.
MCP tools a repository never uses
#Every harness resends every listed tool on every model call, and most of the
servers in HarnessLink's own ~/.hnl/agent/mcp.json are never called in a
given repository. The MCP hub records, per repository (one git repository
and its worktrees, or one folder), each session that lists tools and each
call of a proxied tool, in ~/.hnl/agent/tool-usage.db. When a session
starts, a proxied tool is left out only when all of these hold:
- its server has been on this machine for
mcp.prune.graceDays(7) days, soa newly added server is never hidden at once;
- the repository has at least
mcp.prune.sessions(10) sessions spanningthat many days;
- the tool was not called here in the repository's last 10 sessions, nor in
the last 7 days.
So that this works from the first day, the hub learns once from what is
already on the machine, in the background after it starts: the omp, pi,
Claude Code and Codex transcripts of the last 60 days (read only, in small
chunks so the service stays responsive; at most 5,000 files, 2 GB and one
minute; sessions still running are recorded live instead) give each past session's repository and
its mcp__hnl_* calls, and the mcp.json backups date each server (one in
a backup written 30 days ago was added at least 30 days ago; a server with no
such record counts as added at the upgrade). hnl tools says how many past
sessions it learned from.
A repository without that history is judged by the whole machine: tools any repository called recently are listed, the rest are not; with too little machine history everything is listed. HarnessLink's own tools are never left out. The list is decided once when a session starts and stays fixed for the session, so the cached prompt prefix does not move.
When something is left out, the session gets one more tool, more_tools,
whose description names the hidden servers. The agent searches it
(query, server), enables what it needs (enable: the tool is listed from
then on, the hub tells the client its list changed, and the tool counts as
used here so later sessions keep it), or runs a hidden tool directly (call
with arguments). A hidden tool also still runs when called by name.
hnl tools # this repository: listed tools and why, hidden ones per server
hnl tools --all # every name
hnl tools --restore [tool …] # list hidden tools here again (they count as used now)
hnl tools --off # list every tool everywhere (mcp.prune.enabled: false); --on undoes itChanges apply from each harness's next session.
hnl tools also suggests removing a harness's own tools the repository never
used in its last 10 sessions, where the harness has a setting that drops the
definition from the request (checked against the real request): Claude Code
(permissions.deny in the project's .claude/settings.local.json: Workflow,
ScheduleWakeup, ReportFindings, ListAgents) and omp (<tool>.enabled: false
in the project's .omp/config.yml: todo, web_search). It prints the exact
lines and how to undo them; HarnessLink never writes those files. Codex
(capability switches, not per tool, honoured only in trusted projects) and pi
(tools chosen per launch) get no suggestion.
Code map: locate code without reading whole files
#code_map {op, path?, name?, budget?, offset?} answers "where is this defined, who
uses it, what is in this file" in a few hundred tokens instead of a grep plus
whole-file reads. Agents are told to call it first and then read only the lines
it names.
- Ops.
overviewlists files with their top-level symbols and line numbers(
pathnarrows it; a tree too big for the budget becomes a per-directory summary naming each directory's most-referenced exports).outlinegives one file's symbols with line ranges, nesting and signatures (namenarrows it to one class and its members).findreturns definitions (Store.loadworks).refsreturnsfile:lineand the line for every whole-word use, with the definitions left out. - Budget. Replies fit
budgettokens (default 1,000, 200 to 8,000); a longeranswer ends with
call again with offset=N. - Index. One SQLite file per project root (the git root, or the session's
directory) under
~/.hnl/agent/cache/codemap/, never synced. Every call re-checks file sizes and mtimes and re-reads only what changed. A first index that takes longer than 3 s keeps going in the background and the reply says its results are partial. Up to 50,000 files per project. - What is left out.
.gitignored files; vendored and build directories(
node_modules,vendor,dist,build,target, …) and dot-directories; binaries, lockfiles, minified and generated files; files over 1 MB; and anything named like a credential (.env*, keys and certificates,credentials,id_rsa,*.tfstate, …), which is never read at all. Signatures andrefslines pass through the credential redactor. - Languages. Symbols for TypeScript/JavaScript (JSX/TSX), Python, Go, Rust,
Java, Kotlin, C#, Ruby, PHP, Swift and C/C++, by built-in line patterns over source with comments and strings masked (no parser dependency). Other files are listed and searched by
refs, without symbols. Functions declared inside function bodies, as in factory-style JavaScript, are found; other locals are not.
Any MCP client or base URL
#The table above is the six harnesses HarnessLink sets up itself. Other coding agents and editors connect by hand, in one or both of two ways, and get less: HarnessLink does not read their transcripts, so their prompts are not in History and their turns are not banked.
- The MCP server gives the tool the memory tools (
memory_search,memory_bankand the rest).hnl mcp printprints the entry; paste it into the tool's MCP config under the key it documents. - The gateway routes the tool's model calls through HarnessLink, so they
count in Usage (as
other) and follow your organisation's model rules and limits. Set the tool's base URL tohttp://127.0.0.1:4747/other/anthropicfor an Anthropic-compatible provider, orhttp://127.0.0.1:4747/other/openaiin place ofhttps://api.openai.com/v1for an OpenAI-compatible one. The tool keeps its own API key; the gateway needshnl gateway startand a HarnessLink Cloud sign-in.
hnl mcp print # the MCP entry, as JSON (`mcpServers`)
hnl mcp print --format toml # the same, as TOMLEach tool below documents how it takes an MCP server or a base URL; the links go to its own docs.
| Tool | Connects through | MCP entry goes in |
|---|---|---|
| Gemini CLI | MCP server | mcpServers in settings.json |
| GitHub Copilot | MCP server, gateway (Anthropic), gateway (OpenAI) | servers in .vscode/mcp.json (VS Code agent mode) |
| Devin Desktop (formerly Windsurf) | MCP server | mcpServers in ~/.config/devin/mcp_config.json or .devin/mcp_config.json |
| Zed | MCP server, gateway (Anthropic), gateway (OpenAI) | context_servers in Zed's settings |
| Cline | MCP server, gateway (Anthropic), gateway (OpenAI) | mcpServers in cline_mcp_settings.json |
| Roo Code | MCP server, gateway (Anthropic), gateway (OpenAI) | mcpServers in mcp_settings.json or .roo/mcp.json |
| Kilo Code | MCP server, gateway (OpenAI) | see its MCP docs |
| Continue | MCP server, gateway (OpenAI) | mcpServers in its config, or .continue/mcpServers/ |
| OpenCode | MCP server, gateway (OpenAI) | mcp in its config, with type: "local" |
| goose | MCP server, gateway (Anthropic), gateway (OpenAI) | a command-line extension in ~/.config/goose/config.yaml |
| Amp | MCP server, gateway (Anthropic), gateway (OpenAI) | amp.mcpServers in ~/.config/amp/settings.json |
| Warp | MCP server, gateway (OpenAI) | see its MCP docs |
| DeepSeek Harness | MCP server, gateway (Anthropic), gateway (OpenAI) | see its MCP docs |
| Aider | gateway (OpenAI) | no MCP |