DeepSeek Harness Tutorial

DeepSeek Harness is an open-source project developed by DeepSeek (DeepSeek AI) Agent Harness (agent framework), licensed under MIT, with code written in TypeScript.
DeepSeek Harness adoptsEverything is a Pluginopen architecture: all Agent capabilities—models, tools, skills, sessions, sandbox, storage, loops, scheduling, UI—are composed from plugins and can be freely replaced and flexibly recombined—customize your own Agent at the configuration layer without changing source code。
DeepSeek AI's official philosophy:Agent = Model + Harness. Official slogan:Everything is a Plugin. (Everything is a Plugin)
Who should read this tutorial?
This tutorial is aimed at the following types of readers:
-
Developers / Engineers: you want a local AI coding assistant with fully controllable capability boundaries and every component replaceable and recombinable—not a black box locked into fixed features by a vendor.
-
AI / ML practitioners: interested in Agent architecture—powered underneath by the Cordis plugin system, event-driven design backed by papers, and PTC mode lets the model compose multi-step tool calls with TypeScript programs.
-
Productivity enthusiasts: want to embed the Agent into your own workflow via the Web UI GUI, headless CLI or Python SDK.
-
Researcher: need an observable Agent—every run is written to an append-only session log, where you can view system prompts, chain of thought, tool calls and sub-Agent dispatch in the Trajectory view.
-
Users who value open-source controllability: MIT open-source license, free composition at the configuration layer, inspectable local config and plugin implementations; model requests and log contribution behavior depend on the chosen provider and profile.
Prerequisites before reading
This tutorialdoes not require an AI research background or deep machine learning knowledge. You need:
| Capability | Required level | Description |
|---|---|---|
| Basic command line operations | Web / development path requires | Desktop getting started doesn't require the command line; needed when using npm, source or SDK |
| Node.js basics | Required for npm / source path | Install and start dsh via npx / pnpm, requires Node.js 24.9 or later |
| Basic API concepts | Just need to understand | Know what an API Key is and how to apply for a DeepSeek API Key |
| Plugin / config file concepts | Just need to understand | Used in advanced chapters (plugin development, configuration-layer composition) |
| Git basics | Optional | Used when installing from source and contributing |
Operating system requirements: runs on Linux, macOS or Windows after installing Node.js; desktop builds provide installers for Windows 64-bit and macOS Apple Silicon.
Core Features
DeepSeek Harness features:
-
Everything is a Plugin — The Cordis core only handles plugin loading, unloading and dependency management; all capabilities (models, tools, skills, sessions, sandbox, storage, loops, scheduling, UI) are provided by plugins and collaborate through services and events, freely composed at the configuration layer
-
Traceable execution — Everything the model sees (system prompts, chain of thought, tool calls and results, sub-Agent dispatch, context injection) is written to an append-only session log; the Trajectory view shows it by source, and resume, fork, search and replay share the same event stream
-
Multiple run modes — Standard mode (full-featured coding Agent), PTC mode (model composes multiple tool-call turns with a TypeScript program), Minimal mode (minimal tool set for model benchmarking), Creative mode (runtime inspection + plugin experimentation + custom preset authoring)
-
Multiple usage forms — Web UI (default http://127.0.0.1:3080), desktop, headless (one-shot run, print final answer and exit), CLI, Python SDK, TypeScript SDK
-
Rich tools and extensions — file editing, Shell, file and web search, Skills, plans, goals, subagents, workflows; event-driven extension points (three levels: session / Agent / capability events), any capability can be replaced via patch
-
Open and controllable — MIT open-source; layered configuration with Profile + bundles,
dsh --profile web --dump-configinspect the full config tree actually launched; no privileged core, all registrations are reversible -
Model agnostic — just fill in a DeepSeek API key to use; supports other providers and custom OpenAI-compatible endpoints, model routing without restart
-
Research ready — fully observable event stream and config tree, open design for Agent architecture research (underlying Cordis backed by academic papers)
Related Resources
Official Resources
| Resource | link |
|---|---|
| Official Website | deepseek.com/harness |
| GitHub repository | github.com/deepseek-ai/deepseek-harness |
| Official Docs · Quick Start | deepseek-harness.github.io/deepseek-harness/guide/quickstart |
| npm packages | @deepseek-ai/dsh(npx @deepseek-ai/dsh web one-click launch) |
| Plugin Community | GitHub topics: dsh-plugin |
| Community Support | GitHub Discussions |