← home
RESEARCH · NEW AND TIMELY

What is DeepSeek Harness?

August 16, 2026

By the LLM CFO team

We have written several pieces on what DeepSeek Harness implies for agent spend. This one is the version that assumes nothing: what the thing is, how you run it, and why a finance function should care that an open-source project has published its internals in this much detail.

Start with the distinction that matters

A model produces text and requests to call tools. That is the whole of what it does. Everything else belongs to the harness: building the prompt, actually executing those tool calls, deciding what the agent is permitted to do, recording what happened, running the loop that decides whether to call the model again, and handing work to child agents.

Get this distinction wrong and every cost conversation goes to the wrong place. Teams negotiate token prices, which is the one variable they do not control, while steps per turn, tool catalogue size and delegation depth — which they do control, and which move the bill far more — sit unmeasured. Those are all harness properties.

What DeepSeek Harness is

An MIT-licensed open-source agent harness published by DeepSeek AI, distributed as the package dsh. It runs coding and automation agents: reading and editing files, running shell commands, searching a codebase, delegating to subagents, planning work, and requesting confirmation according to whatever permission policy is configured. It offers a browser interface, a headless one-shot mode, and an automation server that speaks JSON-RPC over standard input and output.

Its organising principle is that everything is a plugin. It runs on Cordis, a plugin runtime, and there is no privileged core: the model adapter, the tool registry, the session log and the agent loop itself are all plugins composed into a shared context.

How to run it

StepWhat to do
Fastest startnpx @deepseek-ai/dsh web, then open port 3080 locally
From sourceClone the repository, then pnpm install, pnpm run build, pnpm dsh web
PrerequisitesNode 22.19 or newer, Git 2.26 or newer, pnpm pinned through Corepack
Add your keySettings, then Models. The route enables immediately with no restart
Activate a workspaceChoose workspace and add your project directory, or the composer stays unavailable
HeadlessRun with the headless profile and a prompt as an argument

Those last two rows are where most first attempts stall. Neither is a failure; both are configuration steps the interface expects before it will do anything.

The vocabulary you need

A step is one model request plus the tools it triggers, and it is the billing atom. A turn is one drain of input, ending when the model stops or policy intervenes. A round is an outer iteration above turns. A session is an append-only log of typed events, treated as the single source of truth for the run. A capability seam is an interface with several interchangeable implementations behind it. A profile is a named composition — an ordered list of plugin bundles plus your patches — and configuration resolves through four layers in a documented order.

The one to memorise: steps, not requests. A forecast built on user requests, applied to a system that runs multiple steps per turn and multiple turns per round, is counting a different quantity from the one on the invoice.

Why a finance team should read an engineering repository

Because it is a published reference for what a well-built agent runtime does, and that gives you four concrete questions to put to whatever you already run.

  1. Is the model swappable? Here it sits behind an interface with several backends, one of which replays a recorded session at no inference cost. If your stack cannot switch providers without a rewrite, your negotiating position is weaker than you think.
  2. Is the record complete? The stated principle is that model-visible means logged, and token usage travels attached to the output that incurred it. Cost attribution is a property of the log, and no dashboard fixes a log that was never complete.
  3. Where are the enforcement points? Two: one before the model request goes out, documented as authoritative, and one before any tool executes. Guards can deny or abstain but never grant, and an unanswerable approval prompt denies. An alert is not a control.
  4. Does it run headless? If it only works interactively it cannot be scheduled, and what cannot be scheduled cannot be measured on a cadence.

What it costs

Nothing to licence. Everything to run. You supply an API key, or point the model seam elsewhere, and inference is billed by that provider. The practical shape of the bill is set by steps per turn, the size of the tool catalogue re-sent on every request, how deep delegation is allowed to go, and how many rounds an open-ended objective may run — every one of them a configuration decision rather than a price.

The caveat

This is a developer preview and its own documentation warns of compatibility-breaking changes. Do not put it on a standardisation roadmap this quarter. Use it as an evaluation reference, pin any version you build against, and take the four questions above to your existing stack — those outlive whatever the API looks like next release.

Related

← Back to llmcfo.com

FAQ

What is DeepSeek Harness?

DeepSeek Harness, published as the package dsh, is an MIT-licensed open-source agent harness from DeepSeek AI. It runs coding and automation agents that read and edit files, run commands, delegate to subagents and plan work. Its organising idea is that every part of it is a plugin.

How do you run DeepSeek Harness?

Run npx @deepseek-ai/dsh web to start a local web interface on port 3080, or clone the repository and build it with pnpm. It needs Node 22.19 or newer and Git 2.26 or newer. Two setup steps are easy to miss: entering an API key under Settings then Models, and activating a workspace directory.

Is DeepSeek Harness free to use?

The harness is MIT-licensed and costs nothing. Model inference is billed separately by whichever provider you point it at. Licence cost is not the number that matters here; steps per turn, tool catalogue size and delegation depth are.

Should we adopt DeepSeek Harness?

Not as a standard yet. The project describes itself as a developer preview and warns of compatibility-breaking changes. Its value right now is as a reference implementation to evaluate your existing agent stack against, on model swappability, session recording, enforcement points and headless operation.