DeepSeek Harness, the open-source coding agent developers run with the dsh command, attaches a copy of your whole session to every request it sends to DeepSeek’s official API. Your messages, the commands it ran and the files it read travel with each request by default, in a field called dsh_session_log. The model never sees that field, but DeepSeek’s servers receive it.
Researchers tested the behaviour in November 2026. On Harness version 0.2.1-rc.5, six out of six requests carried a copy of the session log with the default settings. With the upload switched off, none of five requests carried it.
The upload can be switched off, from the settings screen or with a short configuration change. But the obvious off switch does not do the job: turning off telemetry leaves the session-log upload running, and switching it back on later sends everything that happened while it was off.
Key takeaways
- DeepSeek Harness attaches a copy of your session log to every request sent to DeepSeek’s official API by default, as a field called
dsh_session_log, in chunks of up to 8 megabytes per request.- The log can expose your working directory, system prompts, messages, tool arguments and results, and failed attempts, according to DeepSeek’s own wire documentation.
- The model never sees the log field, but the API endpoint that receives the request does. The upload was switched on by default in September 2026.
- Turn it off in Settings, then General, by switching off “Upload Session Log when using the official model API”, or set the session-log plugin to
enabled: false.- Telemetry settings do not stop this upload, and re-enabling it sends the backlog recorded while it was off, so start a fresh session instead.
| Detail | What is known |
|---|---|
| Upload | Session log attached to requests to the official DeepSeek API as dsh_session_log, up to 8 MB per request |
| Default | On by default since 14 September 2026; off by default before that date |
| Off switch | Settings, General, “Upload Session Log when using the official model API”, or set the session-log plugin to enabled: false |
| What does not stop it | Telemetry settings, including DSH_TELEMETRY_MODE=DISABLED, which control a different upload |
What DeepSeek Harness is and what it sends
DeepSeek Harness is DeepSeek’s own agent harness for coding work. Developers install it, point it at a model, and let it run commands, read and edit files, and work through tasks in a terminal or desktop window. It is open-source software under the MIT licence, and its own readme warns that it is a developer preview.
With DeepSeek’s official API, your prompts, code and tool results are sent to DeepSeek as part of the model request: the model needs your prompt to answer it. What is less expected is the extra field attached alongside it. By default, Harness also attaches the session log, in chunks of up to 8 megabytes per request, as a field called dsh_session_log. The model never sees that field, but the request destination receives it.
What the session log actually contains

A session log is not a short summary. Harness keeps each session as an append-only log of prompts, model output, tool calls and results, including file contents and command output, stored on your disk as compressed files with no retention period set.
DeepSeek’s own wire documentation says the field may expose the working directory, system prompts, messages, tool arguments and results, failed attempts, feedback, and plugin events. In plain terms, that is close to everything the agent did, including the attempts that failed and the files it opened. A single session can include file paths that reveal a client’s name, fragments of source code, and configuration values passed as tool arguments. The upload is documented in the project’s own repository, but the default still sends more than most users would choose to send.
How the default was found and tested
The upload came to wider attention in November 2026, when independent researchers tested Harness version 0.2.1-rc.5 and published what they found. The test pointed the harness at a local recorder instead of DeepSeek’s servers, and counted which requests carried the session-log field. With the default settings, all six requests in a bug-fix session carried a copy of the log; with the upload off, none of five did.
A code-level check of DeepSeek’s own repository agreed: the session-log plugin defaults to enabled, and the published npm package version 0.2.2-rc.1 ships the same default. The upload was off by default until 14 September 2026, when a commit switched it on.
How to turn the session-log upload off
The simplest way to stop the upload is in the app itself. Open the settings screen, stay on the General tab, and scroll to the bottom. Switch off the option labelled “Upload Session Log when using the official model API”. That setting controls the session-log plugin, and it is the switch the documentation points to.
There is also a configuration route, the only option if you work in the command-line interface, since it has no settings screen. In your profile’s patch file, add an entry for the session-log plugin with its enabled flag set to false. The patch file lives under your harness home directory, in the profiles folder for the profile you use, and a home-level patch file outranks the profile’s own file and the settings form.
After making the change, run the harness with the dump-config flag and confirm that the session-log plugin shows enabled as false. Older guides point at a settings file that current builds import once and then rename, so editing that file has no effect. Two warnings apply once the upload is off. First, do not switch it back on for an old session: re-enabling sends the backlog of events recorded while the upload was disabled. Start a new session instead.
The other uploads the off switch does not stop
Switching off the session-log upload stops one of four uploads that are on by default. The plugin list is a second one: the names and versions of every active plugin, including private ones, are sent with requests through the same adapter. There is no screen switch for it, so set the plugin-package-inventory plugin to disabled in the same profile patch file.
Desktop analytics is a third upload. It sends a device identifier, your DeepSeek account identifier, and facts about your operating system and hardware. Like the plugin list, it has no screen switch. If you only switch off the session log, these two uploads keep running.
Feedback telemetry is the fourth, and it is the one most people confuse with the session log. By default the telemetry mode is feedback-only, so ordinary activity authorises no telemetry capture. But the moment you submit feedback, rate a message, or edit a note, the harness authorises export of the session-log prefix to its telemetry collector, whatever model the session uses, and without built-in redaction. Setting the telemetry mode to disabled stops the feedback upload, but neither setting touches the session-log upload: the harness’s own reference says telemetry settings do not enable or disable the DeepSeek contribution. A user who carefully disables telemetry has stopped one upload out of four.
What this means for you and how to decide
Whether this matters depends on what your sessions contain. If you use Harness for personal learning, with no client code, no credentials and no private material in the working directory, the session log is mostly a copy of work you would not mind sharing. If you use it at work or on client projects, the default is a poor fit, because the log can carry file paths, code fragments and tool output that you never chose to share.
Where your model runs matters too. The upload applies when you use the official DeepSeek API. If you point Harness at a local model, the request never leaves your machine, and the session-log field goes nowhere, but the default is still on, and the feedback telemetry path still exists whatever model you use. AI agents have already been caught leaking confidential data while trying to get tasks done, so check what any agent sends besides the prompt. If you already use Harness, switch off the session-log upload, disable the plugin list and desktop analytics in your profile patch, set telemetry to disabled, verify with the dump-config command, and start a fresh session. Treat any session created before the change as already shared.
Checklist: lock down DeepSeek Harness in a few minutes
- Switch off “Upload Session Log when using the official model API” under Settings, then General.
- Set the session-log plugin to
enabled: falsein your profile patch file if you use the command-line interface. - Disable the plugin-package-inventory plugin too, so your active plugin list stops being sent.
- Set the telemetry mode to disabled to stop feedback uploads.
- Verify with the dump-config command that the session-log plugin shows enabled as false.
- Start a fresh session after making the changes, and never switch the upload back on for an old session.
Frequently asked questions
Does DeepSeek Harness really upload my session log by default?
Yes. When you use the official DeepSeek API, Harness attaches a copy of the session log to requests as the dsh_session_log field, in chunks of up to 8 megabytes. Independent tests in November 2026 found six out of six requests carried the log with default settings. The upload was switched on by default on 14 September 2026.
What exactly is in the session log?
DeepSeek’s wire documentation says the log may expose the working directory, system prompts, messages, tool arguments and results, failed attempts, feedback, and plugin events. In practice that is close to everything the agent did, including files it read and commands it ran.
Does turning off telemetry stop the upload?
No. Telemetry and the session-log upload are controlled by different plugins. Setting the telemetry mode to disabled stops the feedback telemetry upload only: the harness’s own reference states that telemetry settings do not enable or disable the DeepSeek contribution.
How do I turn the session-log upload off?
In the web or desktop app, go to Settings, then General, and switch off “Upload Session Log when using the official model API”. From the command line, set the session-log plugin to enabled: false in your profile patch file, then run the harness with the dump-config flag and confirm the plugin shows enabled as false.
What happens if I turn the upload back on later?
Re-enabling resumes the unaccepted suffix of the log, including events recorded while the upload was disabled, according to the package documentation. That means work you did while it was off gets sent once you switch it back on. If you need the upload on again, start a new session rather than resuming an old one.
Is using a local model instead a complete fix?
Pointing Harness at a local model means requests never leave your machine, so the session-log field goes nowhere. But the default is still on, and it applies again the moment you switch back to the official DeepSeek API, so switching the upload off properly is the safer fix. Kimi K2 is one alternative worth comparing, and our comparison of AI coding assistants covers the wider field before you subscribe.
Bottom line
DeepSeek Harness is a capable coding agent, and the session-log upload is documented rather than hidden, but the default is the wrong way round. A tool that can read your files and run your commands should not send a copy of everything it did to a remote server unless you ask it to. The fix takes a few minutes: check the configuration dump, confirm the plugin is off, and start fresh.
The wider point is about defaults. Harness has four uploads switched on out of the box, and the most obvious off switch stops only one of them. Assume the defaults send more than the prompt, check what leaves the machine, and switch off what is not needed before the first real session.

