DeepSeek Harness: What It Does and How to Start
Start DeepSeek’s coding agent in a terminal or desktop app. See which models it runs, what leaves your machine and how to switch off session-log uploads.
Published

DeepSeek Harness lets a DeepSeek model work directly in a project folder, from finding the code behind a feature to running its tests. DeepSeek AI released the open-source framework in developer preview in August 2026. Before opening a private repository, check the session-log setting. By default, Harness can send DeepSeek a record of what the agent read and did.
What DeepSeek Harness does in a repository
Ask where a project defines its navigation, and Harness can look for the answer in the project itself. DeepSeek’s demo shows the agent listing the workspace files, searching for NAVIGATION and reading the README. You can inspect which tools it called and what they returned. That matters when a plausible answer about your code turns out to describe a file the agent never opened.
The model decides what to try next. The harness is the workbench around it. It makes tools available, carries their results into the conversation and applies the permission rules when a tool needs approval. In DeepSeek’s implementation those pieces are plugins. A developer can use the supplied workbench to edit a file or run tests, or change the tools available for a particular workflow. That distinction also matters when choosing an open-source AI agent.
DeepSeek’s release-day README already documented the terminal-launched web interface on August 13. The August 17 release candidate followed. DeepSeek also distributes a native desktop app, verified against its downloads page on December 6, 2026. These dates describe the agent software. The DeepSeek V4 model guide covers the models behind it.
What leaves your machine by default?
When you use DeepSeek’s hosted API, it receives the input needed to answer, which can include file contents returned by a tool. Harness also enables a field called dsh_session_log by default. On eligible requests to DeepSeek’s domain or its subdomains, it attaches the next batch of session events the server hasn't yet acknowledged. Those records can contain messages, tool arguments, results and workspace paths. A read-only task can still put the contents of a file into a request.

To turn off the extra log in the web interface, open Settings → General → Data management and switch off Upload session log when using the official model API. To apply the same preference across profiles, add this entry to the home-level $DSH_HOME/cordis.patch.yml. It targets the session-log entry in DeepSeek’s base configuration.
- id: session-log-deepseek
config:
enabled: falseThe change applies to the next request. A request already prepared can still carry its log. Turning upload back on can send events recorded while it was off. Think of the switch as pausing delivery. The session keeps its place at the last accepted event. DeepSeek’s session-log reference

Two other controls matter for private work. Giving explicit feedback, such as a message rating, can separately release session history through that point. Set DSH_TELEMETRY_MODE=DISABLED in the launch environment to disable feedback-based session delivery. Desktop also reports selected app interactions by default under its own product analytics setting. Ordinary web clients skip those desktop events. If your repository has a rule against sending source code to hosted models, the workplace guide to DeepSeek data handling is a better starting point than either switch.
Start the DeepSeek Harness CLI or desktop app
For a first session, the browser route lets you choose the project folder and check the settings before you send a prompt. The command-line interface, or CLI, starts the local app. You can also use it to run a single task entirely from the terminal.
Open the workspace interface
Install Node.js, open a terminal in a disposable copy of a project, and run the command below. It opens the local web interface at
http://127.0.0.1:3080by default.Shellnpx @deepseek-ai/dsh webPrefer an app window? DeepSeek’s desktop downloads include Apple silicon Macs running macOS 13 or later and 64-bit Windows. Desktop offers Set up later if you want to open the workspace before entering an API key.
Choose the provider and the folder
For the API-key route, open Settings → Models, enter your DeepSeek API key and save. Check the log setting, then click Choose workspace, add the project directory and select it. Opening the browser alone leaves the workspace unselected.
Give the agent a question you can verify
The official quickstart suggests “Summarize this repository and identify its main packages.” Compare the package names with your project files. If the summary names a package that has no directory or manifest, ask which file supports the claim before letting the agent edit anything.
For a shell script, the headless CLI profile takes a task, prints the answer and exits. With model credentials available to that profile, DeepSeek’s example can be launched through npm.
npx @deepseek-ai/dsh --profile headless "run the tests"Which models does it run?
The web app defaults to deepseek-flash. On December 6, DeepSeek’s API model list maps that name to DeepSeek-V4.1-Flash-1017 and also offers deepseek-v4-pro. A signed-in DeepSeek account gets its model list from the account service. With your own provider credentials, you can also select providers including Anthropic and OpenAI or add a custom OpenAI-compatible endpoint. The model configuration guide describes each route.
Choose the model before comparing results on a task. Changing the picker sets the default for new sessions. A session that has already sent a request keeps its recorded model.
Harness is MIT-licensed. On the paid DeepSeek API, off-peak Flash costs $0.15 per million uncached input tokens and $0.60 per million output tokens. Official API rates · DeepSeek pricing guide
How does it compare with Claude Code and Codex?
All three can work on a repository. The choice turns on what you want to do after opening it.
Claude Code also has desktop and web interfaces. For a developer already editing in an IDE, an integrated agent may save more work than maintaining a custom set of plugins.
Codex’s review workflow fits a different moment, when the patch already exists and you want another read before committing. The Grok Build, Claude Code and Codex comparison covers that broader choice.
Who should try the preview?
Try Harness if you want to inspect which tools an agent uses or adapt them to a project of your own. Start with a disposable repository and a question whose answer you know. Before you let the agent change a file, look at its tool results and the approval it requests under your chosen policy.
If your team needs an audited execution environment, keep the preview away from production credentials. DeepSeek’s safety notice says the project has yet to undergo a security audit and recommends an isolated environment with limited privileges. If all you need is a model to answer a question about a pasted function, a coding agent with shell access adds little.
If you're choosing the agent your team will use every day, compare Codex alternatives by the work you need them to do.
- Published
- Category
- Build










