ai-ml

DeepSeek Harness: Free Agent Loop, Costlier Tokens 2026

August 19, 2026

DeepSeek Harness: Free Agent Loop, Costlier Tokens 2026

DeepSeek open-sourced its agent harness, dsh, under the MIT license on August 13, 2026, and shipped the GA build of V4-Pro the same day. The harness is free and model-agnostic. The tokens it burns got more expensive three days later.

TL;DR

The runtime is now free software. The loop that runs on it is not.

Two releases on August 13 and a price change on August 16 only make sense read together:

  • DeepSeek Harness (dsh) went open source under MIT, as a developer preview built on an architecture where the model adapter, tool registry, session log and the agent loop itself are all replaceable plugins.12
  • The repository passed 161,000 stars and 16,900 forks by August 19, six days after release — up from more than 33,000 in its first few hours.13
  • DeepSeek-V4-Pro-0813 went GA with native OpenAI Responses API support, one-click Codex setup, and three reasoning-effort levels.4
  • New API pricing took effect at 16:00 UTC on August 16, splitting rates into peak and off-peak bands. For V4-Pro, a cached input token now costs $0.022 per million off-peak and $0.044 at peak.5
  • The headline agent benchmarks are provider-reported. DeepSeek claims 87.9 on Terminal-Bench 2.1; the aggregator BenchLM carries that exact figure but files it as a "provider run." Artificial Analysis, which runs its own evaluations, scores the model 53 on its Intelligence Index — level with GLM-5.2 and seven points behind Kimi K3.678
  • No weights have been published for the 0813 build. The deepseek-ai/DeepSeek-V4-Pro repository's last weight upload was April 23, 2026, with no commit of any kind after June 22, 2026.9 BenchLM states it plainly: "DeepSeek has not published weights for the 0813 hosted checkpoint."6

What You'll Learn

  • What an agent harness is, and what "everything is a plugin" actually buys you
  • The four presets dsh ships with, including the one that collapses five tool round trips into one call
  • Which models and subagents the harness can drive, including Claude Code and Codex
  • Exactly what the new peak/off-peak pricing costs, and why cached reads are the number agent builders should watch
  • Which V4-Pro benchmark figures have been independently checked and which have not
  • Where DeepSeek sits in a harness field that Chinese and US labs have both been filling since 2025

What an Agent Harness Is

An agent harness is the scaffolding around a model: the loop that reads files, calls tools, runs shell commands, and feeds each result back so the model can decide its next step. The model does the thinking. The harness does the driving, the logging, and the constraining.

That separation is the whole point. Because the harness and the model are independent, an open harness lets you swap models without rewriting your workflow — which is precisely what DeepSeek shipped.

Everything Is a Plugin

DeepSeek's stated design principle is that nothing in the system is privileged. Its architecture document is explicit: "Every part of the product is a plugin, including the model adapter, the tool registry, the session log, and the agent loop itself, so every part is replaceable from configuration."2

The same document adds that there is "no privileged core to patch" — you extend dsh by mounting a plugin beside the others, and registrations unwind when their plugin unloads.2

The architecture sits on top of Cordis, described by its authors as a meta-framework for spatiotemporal composability. Its design paper is a preprint dated August 13, 2026 — the same day the harness shipped — and is explicitly labelled as under active revision.10

Underneath it, dsh keeps an append-only session log under a rule the docs state as "Model-visible means logged": anything that reaches a model request must be reconstructable from the log, enforced by a runtime invariant.2 Fork, resume, transcripts, telemetry and persistence all derive from that single stream.

That rule turns conversation history from an implementation detail into a contract, and it maps directly onto the tracing problem that makes agent runs hard to debug.

Sandboxing is a swappable backend in the same tree.2 The New Stack's walkthrough describes the local implementation as per-platform: Linux Landlock via a Node addon DeepSeek wrote, macOS Seatbelt, or a Windows ACL restricted-token runner.3

The Four Presets

The New Stack's review of the release describes four presets, and the third one is the interesting one.3

PresetWhat it gives you
StandardFull coding agent — filesystem tools, shell access, web search, subagents, plan mode
MinimalTwo tools only: bash and str_replace_editor
CodeGenerates a TypeScript SDK and lets the model write a program against it
CreatorStandard, plus runtime inspection, plugin experiments and preset-authoring guidance

Code mode changes how tools reach the model. Instead of exposing each tool as an individual function call, it hands the model an SDK and lets it write a program — so a sequence that would otherwise take five round trips runs as a single call.3

Hold onto that detail. It becomes the cheapest thing in this release once the new pricing is in front of you.

It Will Happily Drive Someone Else's Model

Nothing in the harness ties it to DeepSeek's models. The provider catalog covers Anthropic, OpenAI, AWS Bedrock, Microsoft Azure, Google's Gemini Enterprise Agent Platform and DeepSeek's own endpoint, plus custom OpenAI-compatible gateways.3

More pointed: dsh ships subagent providers that delegate work directly to Anthropic's Claude Code and OpenAI's Codex, resolving each binary from the host PATH so you supply the install and the login. Both are off by default.3

There are also bridges that run your existing hooks.json from either product against the harness's own interception points — which the README frames as a compatibility path rather than the better design.3

The harness includes an MCP client, Agent Client Protocol support, and reads both AGENTS.md and CLAUDE.md.3 If you have been following the push to standardize agent plugins and skills, this is that convergence showing up in shipped code.

One caveat on the "open source" framing. The project's own contributing guide states: "We are sorry that we cannot accept external pull requests at the moment," pointing contributors to GitHub Discussions and to building plugins instead.1 The code is MIT. The development process is not.

The Price Change Lands on the Loop

DeepSeek's new rates took effect at 16:00 UTC on August 16 and introduced peak and off-peak bands. Off-peak is exactly half of peak. Peak hours run 01:00–04:00 and 06:00–10:00 UTC, tracking the Chinese workday.5

Here is the official table, per million tokens:5

RateV4-Flash off-peakV4-Flash peakV4-Pro off-peakV4-Pro peak
Input (cache hit)$0.007$0.014$0.022$0.044
Input (cache miss)$0.22$0.44$0.66$1.32
Output$0.66$1.32$1.98$3.96

Both models keep a 1M-token context window and 384K max output. Concurrency limits differ sharply: 2,500 for V4-Flash against 500 for V4-Pro.5

Two sources independently record the previous list price as $0.435 per million input, $0.87 per million output, and $0.003625 per million cached input: The Decoder's launch coverage and BenchLM's model profile, the latter dated August 17.116

Work the ratios against DeepSeek's published rates and the shape of the increase is clear. Off-peak input rises about 52%. Off-peak output more than doubles. Cached input rises just over sixfold off-peak — and about twelvefold at peak.

One caveat worth stating: the reseller OrcaRouter lists a different pre-change cache rate of $0.060, so that single figure is not unanimous.12 The two sources that agree on $0.003625 also agree with each other on input and output, which is why we use them.

Why cached reads are the number to watch

What is confirmed, straight from DeepSeek's own pricing page, is the ratio: a V4-Pro cache hit costs $0.022 against $0.66 for a cache miss. That is one-thirtieth.5 Artificial Analysis, working from the same published rates, records it as a 97% cache discount.8

Agent loops live in that ratio. Every step re-sends the conversation prefix — the system prompt, the file contents already read, the tool results already returned. Those tokens are cached reads, and a long-horizon agent accumulates them faster than it generates output.

Work an example on the published numbers. An agent that re-sends a 200,000-token prefix across 50 steps moves 10 million cached input tokens in one session. At the off-peak V4-Pro cache rate that is $0.22; at peak, $0.44. If those same tokens missed cache, it would be $6.60 and $13.20.

Two levers fall out of that arithmetic, and both are free. Schedule long agent runs outside 01:00–04:00 and 06:00–10:00 UTC to halve the bill. And cut the number of round trips.

Which is where Code mode stops being a curiosity. Collapsing five tool calls into one program removes four re-sends of the whole prefix. The feature that looks like a developer-experience nicety is a direct answer to the pricing change that landed three days after it.

If you are instrumenting this properly, it belongs alongside per-session spend caps for agents rather than in a monthly invoice review.

The Benchmarks Are DeepSeek's Own

The agentic gains from preview to 0813 are large, and every one of them comes from DeepSeek. The rows below are the ones two separate aggregators both carry, each tracing the figure back to DeepSeek's own announcement and technical report.126

BenchmarkV4 PreviewV4-Pro-0813
Terminal-Bench 2.172.187.9
DeepSWE12.862.7
CyberGym52.783.3
DSBench-Hard31.167.2
AutomationBench12.831.8
Humanity's Last Exam (with tools)48.260.0
Humanity's Last Exam (no tools)37.742.7

DeepSeek published more figures than these; we list the ones we could corroborate in two places. All are provider-reported.126

The label matters more than any single number. BenchLM carries DeepSeek's 87.9 under the name "Terminal-Bench 2.1 (provider run)" with an evidence status of "Provider exact." It reserves a separate status, "Benchmark exact," for rows an outside evaluator produced — the Vals AI Vibe Code Bench score of 49.93, for instance.6

The independent picture is cooler, and it comes from evaluators who ran the model themselves. Artificial Analysis scores it 53 on its Intelligence Index. As the South China Morning Post reported the day of release, that puts it level with Zhipu AI's GLM-5.2, four points behind GPT-5.6 Terra and seven behind Moonshot's Kimi K3.78

On the Vals Index it ranked 12th, trailing the previous-generation GPT-5.5. Vals AI named two specific weak spots: completing tasks within a sandboxed terminal environment, and generating complex financial models in Excel spreadsheets.7

There is one more datapoint, and it needs its provenance stated exactly. OrcaRouter's model page lists two Terminal-Bench 2.1 entries for this model — DeepSeek's 87.9, and a second reading of 78.7 filed under the raw benchmark slug. The page credits its benchmark data to Artificial Analysis and DeepSeek's API docs, and Terminal-Bench v2.1 is indeed one of the nine evaluations Artificial Analysis runs itself.128 We could not confirm the 78.7 on a second site, so treat it as suggestive rather than settled.

This is the harness confound in its purest form. Agentic scores are a property of the model and the scaffolding it runs inside.

The harness repo's own BENCHMARK.md documents running benchmarks through the jsonrpc-agent minimal variant, and The Decoder reports DeepSeek uses that stripped-down minimal setup for its own benchmark runs.1113 Open-sourcing the harness makes that scaffolding inspectable, which is a real contribution. It does not make the numbers reproduced.

The weights question, where sources disagree

The 0813 build's weights have not been published. Our own check of the deepseek-ai/DeepSeek-V4-Pro repository on August 19, 2026 found the last weight upload dated April 23, 2026, and no commit of any kind after June 22.9 BenchLM says the same in one line — "DeepSeek has not published weights for the 0813 hosted checkpoint" — and lists the model's self-host status as "Weights are not published."6 The Decoder reported it on release day too.11

Artificial Analysis disagrees, labelling the model "open weights" under an MIT license and linking to Hugging Face for the download.8 That link points at the same repository we inspected — the one still carrying the April build. The most likely reading is that the open-weights label attaches to the V4-Pro family rather than the August checkpoint being served by the API.

Either way, if you plan to self-host the model behind those 87.9s, check what you are actually downloading. That is a different posture from DeepSeek's open-weight V4 release in April, where the weights and the announcement arrived together.

DeepSeek Is Not First Here

The harness field was already crowded. Among Chinese labs alone, Alibaba's Qwen Code and ByteDance's Trae Agent both launched in mid-2025, Moonshot's Kimi CLI followed that October, and ZCode from Zhipu AI — now trading as Z.ai — arrived in July 2026.314

What makes the timing land is the direction of travel elsewhere. Google announced in May 2026 that Gemini CLI would stop serving Google AI Pro, Ultra and free Code Assist users on June 18, pushing them to Antigravity CLI — whose public repository, when The Register checked it in May, held only a changelog, a readme and a GIF.15 The Gemini CLI repository itself stays up under Apache 2.0, with Google continuing to maintain it for enterprise customers who still have access.15

So the honest framing is not that DeepSeek invented open agent tooling. It is that DeepSeek opened a harness roughly two months after a major US lab replaced its open CLI with a closed-source successor, and developers noticed at a scale — 33,000 stars in hours, past 161,000 in six days — that is hard to read as anything other than appetite for a runtime nobody can take away.13

What This Means If You Build Agents

Four practical reads.

The harness is worth evaluating on its merits, not its origin. It drives Anthropic, OpenAI, Bedrock, Azure and Google endpoints, and its append-only session log gives you a reconstructable record of everything the model saw. Nothing forces you to point it at DeepSeek.

Treat the developer-preview warning literally. The README warns of compatibility-breaking changes; the contributing guide says external pull requests are not being accepted.1 That is fine for evaluation and risky for a production dependency this quarter.

Model your token bill on cached reads, not output. The 30× gap between a cache miss and a cache hit, and the 2× gap between peak and off-peak, are the two levers that actually move an agent's cost — and both are published.5

Do not spend production budget on DeepSWE 62.7 yet. A jump from 12.8 to 62.7 in one release is a provider claim, filed by aggregators as exactly that. The measured picture — Artificial Analysis 53, Vals 12th — is the one you can act on today.678

Bottom Line

DeepSeek gave away the part that used to be a moat and started charging more for the part that was already commoditized.

The harness is a serious piece of engineering with an unusually clean plugin story, a strong session-log guarantee, and no lock-in to its author's models. It deserves the attention it got.

The model that shipped alongside it is a mid-pack frontier model on measured indices with a vendor scorecard that outruns its independent record, running on tokens that repriced upward three days after it shipped. Both statements are true. Read the release as two announcements, not one.

Sources

Footnotes

  1. DeepSeek AI. "DeepSeek Harness: Everything is a Plugin." GitHub repository README, CONTRIBUTING.md and repository statistics. Accessed August 19, 2026. https://github.com/deepseek-ai/deepseek-harness 2 3 4 5 6 7

  2. DeepSeek AI. "DeepSeek Harness Architecture." Project documentation, docs/architecture.md. Accessed August 19, 2026. https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/architecture.md 2 3 4 5

  3. Frederic Lardinois. "DeepSeek open sources an agent harness where everything is a plugin." The New Stack, August 13, 2026. https://thenewstack.io/deepseek-harness-open-source-plugins/ 2 3 4 5 6 7 8 9 10 11 12

  4. DeepSeek. "DeepSeek-V4-Pro GA Release." DeepSeek API Docs, August 13, 2026. https://api-docs.deepseek.com/news/news260813 2

  5. DeepSeek. "Models & Pricing." DeepSeek API Docs. Accessed August 19, 2026. https://api-docs.deepseek.com/quick_start/pricing 2 3 4 5 6 7

  6. BenchLM. "DeepSeek V4 Pro 0813 Benchmarks & Pricing." Model profile, data as of August 17, 2026. Accessed August 19, 2026. https://benchlm.ai/models/deepseek-v4-pro-0813 2 3 4 5 6 7 8 9 10 11

  7. Xinmei Shen. "DeepSeek's updated V4 Pro AI model struggles on benchmarks, shines in cybersecurity." South China Morning Post, August 13, 2026. https://www.scmp.com/tech/big-tech/article/3363895/deepseeks-updated-v4-pro-ai-model-struggles-benchmarks-shines-cybersecurity 2 3 4 5

  8. Artificial Analysis. "DeepSeek V4 Pro 0813 (Reasoning, Max Effort) — Intelligence, Performance & Price Analysis." Accessed August 19, 2026. https://artificialanalysis.ai/models/deepseek-v4-pro 2 3 4 5 6 7 8

  9. Hugging Face. "Commits · deepseek-ai/DeepSeek-V4-Pro." Accessed August 19, 2026. https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro/commits/main 2 3

  10. Cordis. "A Programming Paradigm for Spatiotemporal Composability." Preprint, draft of August 13, 2026. Accessed August 19, 2026. https://github.com/cordiverse/paper

  11. Jonathan Kemper. "Deepseek ships improved V4 Pro, open-sources its agent software, and raises API prices." The Decoder, August 13, 2026. https://the-decoder.com/deepseek-launches-an-improved-v4-pro-model-raises-api-prices-and-makes-its-agent-software-open-source/ 2 3 4

  12. Elias Hawthorne. "DeepSeek V4 Pro Benchmarks: The Full 0813 Scorecard, Every Independent Check, and What Nobody Has Verified Yet." OrcaRouter, August 16, 2026. https://www.orcarouter.ai/blog/deepseek-v4-pro-benchmark 2 3 4

  13. DeepSeek Harness. "Use the Web UI" and "Running benchmarks." Project documentation. Accessed August 19, 2026. https://deepseek-harness.github.io/deepseek-harness/en/guide/quickstart 2

  14. "Z.ai launches ZCode to challenge Cursor, Claude Code and GitHub Copilot in AI coding." VentureBeat, July 2026. https://venturebeat.com/technology/z-ai-launches-zcode-to-challenge-cursor-claude-code-and-github-copilot-in-ai-coding

  15. Brandon Vigliarolo. "Bye-bye, Gemini CLI; Google's gone and swapped you for a closed-source AI." The Register, May 20, 2026. https://www.theregister.com/ai-ml/2026/05/20/bye-bye-gemini-cli-google-nudges-devs-toward-antigravity/5243605 2

Frequently Asked Questions

DeepSeek Harness ( dsh ) is an open-source agent harness released by DeepSeek AI under the MIT license on August 13, 2026. It is a runtime that connects a language model to a filesystem, shell, editor, web and other agents, with an architecture in which every component — including the agent loop — is a replaceable plugin. 1 3