Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

DeepSeek Harness Introduction

DeepSeek Harness Introduction

AI models can already independently complete complex coding tasks, and the real challenge is no longer making the models smarter, buthow to organize their capabilities stably, reliably, and observably into a truly usable Agent。

DeepSeek open-sourced DeepSeek Harness(dsh)— an Agent framework where everything is a plugin, providing the answer to this question:Agent = Model + Harness. The model is the soul of the Agent, while the Harness gives the Agent the ability to understand the environment, use tools, and keep working in real scenarios.


What is DeepSeek Harness?

DeepSeek Harness(dsh)developed by DeepSeek (DeepSeek AI), theopen-source Agent Harness (intelligent agent framework), using the MIT license, written in TypeScript, currently in the preview stage (the official notice says there will be compatibility-breaking changes in the future).

DeepSeek Harness does not optimize the model itself, but optimizes the environment in which the model runs,Everything is a Plugin。

Models, tools, skills, sessions, sandbox, storage, loop (agent loop), scheduling, UI, etc.All Agent capabilities are provided by plugins, collaborating with each other through the Cordis kernel's Service and Event — developers can select, replace, and extend any capability at the configuration layer without changing any source code.

The underlying layer is driven by the open-source plugin system Cordis driven, whose design idea corresponds to the paper "A Programming Paradigm for Spatiotemporal Composability". There is no privileged kernel in the runtime that needs patching: every capability registration is a reversible side effect that is automatically undone when the plugin is unloaded, so the way to extend dsh is to mount new plugins alongside other plugins.

"Everything is a Plugin." — DeepSeek Harness official slogan

The model is the soul of the Agent, and the Harness gives the Agent the ability to understand the environment, use tools, and keep working in real scenarios. — DeepSeek Harness official website


Why is a Harness needed?

The industry's conclusion is becoming increasingly consistent: **the bottleneck is not in model intelligence, but in infrastructure.** In the OpenAI team's 1-million-line code experiment, all output over 5 months was completed by Agents, with engineers writing not a single line of code.

LangChain only optimized the external harnessing environment (document structure, validation loops, tracing systems), and the coding Agent's score on Terminal Bench 2.0 soared from 52.8% to 66.5%, with the global ranking jumping from 30th to 5th —without changing a single parameter of the underlying model.

DeepSeek Harness is exactly the productization of this consensus: it does not pursue a stronger model, but makes theconstraints, feedback, tools, memory, and observabilityrequired for model operation all into composable plugin infrastructure, so that every team can harness AI in its own way.


Three leaps in the AI engineering paradigm

To understand why the Harness matters, we need to first see clearly how we got here step by step:

Prompt Engineering Prompt engineering Optimization target: input phrasing Solves: single-turn conversation quality 2023 ~ 2024 Context Engineering Context engineering Optimization target: information input Solves: knowledge boundary and hallucination 2025 Harness Engineering Master the engineering Optimization target: runtime environment Solves: agent reliability and sustainability 2026 ~ Not enough Not enough yet
Paradigm Core question Optimization target Interactive mode
Prompt engineering How to speak clearly Prompt wording, format, examples One question, one answer
Context engineering How to feed information to AI Documents, code snippets, conversation history Information injection → generation
Master the engineering How to make the Agent work reliably Constraints, feedback loops, control systems Humans steer, the Agent executes

DeepSeek Harness is thecomplete productizationof the harness engineering philosophy: an open-source implementation that fully realizes constraints, feedback, observability, and replaceability, making harness engineering no longer stay at the methodology level but become out-of-the-box infrastructure.


Core architecture: Everything is a Plugin

The architecture of DeepSeek Harness can be explained with one diagram:The Cordis kernel is at the center, with all capabilities surrounded as plugins, collaborating through services and events.

The key mechanism for implementing this architecture in the runtime is Profile + Bundle: the running dsh is a plugin tree composed of layers stacked in order at startup — first apply each bundle in the order listed by the profile, then the profile's cordis.patch.yml, home-level patch, and finally any --patch overlay. A single command can show the complete configuration tree actually started on the machine:

dsh --profile web --dump-config   # 打印出的任何条目,都可以由你自己的 patch 替换


Four running modes

DeepSeek Harness provides four operating modes out of the box, covering the full spectrum from a full coding Agent to minimal benchmarking:

Mode Locate Capability composition
Standard Mode Fully functional coding Agent File editing, Shell, file and web retrieval, Skills, plans, goals, subagent, and workflows
PTC mode Code composition tool calls Has all the capabilities of the standard mode and presents tools through the Code Mode SDK — allowing the model to compose multiple steps of operations with one TypeScript program
Minimal mode Minimal benchmarking Only retains persistent bash and str_replace_editor two tools, for model evaluation in a minimal environment
Creation mode Custom Agent preset Has all the capabilities of the standard mode, and provides runtime checks, plugin experiments, and preset creation guidance — compose your own new mode

Core Features

Feature 1: Every run is traceable

Everything the model sees is written into theappend-only designsession log: system prompts, chain of thought, tool calls and results, sub-Agent scheduling, every context injection, all persisted. In the Trajectory viewcan be viewed by source; resume, fork, retrieval, and replay share the same event stream — every step of the Agent is traceable and reproducible.

Feature 2: Multiple forms of usage, run anywhere

Web UI(default http://127.0.0.1:3080) provides a complete graphical interface;headless mode runs a task once, prints the final answer, and exits, suitable for scripts and CI; there is also the CLI, the desktop version, and the official Python SDK(pip install deepseek-harness-sdk, which comes with its own runtime and needs no system Node.js) and the TypeScript SDK, to embed the Agent into any workflow.

Feature 3: Open and controllable, no privileged kernel

MIT open source, no privileged kernel that needs patching: all capability registrations are reversible side effects, undone when the plugin is unloaded. Through Profile, Bundle, and patch layered configuration,--dump-config the entire configuration tree can be reviewed at any time —what your Agent looks like is up to you.

Feature 4: Model agnostic, plug and play

Just fill in the DeepSeek API key to use it; other providers and custom OpenAI-compatible endpoints are also supported, and model routing requires no server restart. The event-driven extension point system (three-level events for session / Agent / capability) allows developers to mount policies and adapters, switching models, tools, and storage at any time.


Quick Start

After installing Node.js (24.9 or higher), start the Web UI with one command:

npx @deepseek-ai/dsh web

You can also install from source:

git clone https://github.com/deepseek-ai/deepseek-harness.git

cd deepseek-harness

pnpm install

pnpm run build

pnpm dsh web

Using the Web UI takes only three steps:

Step Operation Description
1 Configure the model Open Settings → Model, fill in the DeepSeek API key and save, model routing is available immediately with no restart
2 Select a workspace Add the project directory where dsh was started and select it (the session input box is unavailable before selection)
3 Run a task Send something like "Summarize this repository" — the agent reads and writes files, runs commands, and delegates to subagents; operations beyond the permission policy will first ask for your approval

The relationship between the Harness and related tools

DeepSeek Harness is not yet another "library for writing a few agents", buta complete layer above SDKs and frameworks that solves "how the Agent runs reliably". The positioning differences from currently popular tools:

Projects Locate Relationship with DeepSeek Harness
Claude Code Closed-source commercial coding assistant Functionally comparable, but dsh is fully open source, self-hostable, and has replaceable capabilities
Hermes Agent Self-evolving personal Agent (Nous Research) Focuses on cross-session memory and skill accumulation; dsh focuses on plugin-based composition and full-process observability, the two are complementary in philosophy
OpenClaw Local-first messaging Agent Focuses on multi-channel access and digital sovereignty; dsh provides multiple forms: Web UI / desktop version / headless / SDK
LangGraph / AutoGen / CrewAI Agent building framework (programming library) Frameworks solve "how to build"; dsh is a complete Harness — "how to run stably + how to replace capabilities"