dsh-talk-mode
English · 中文
One plugin for DeepSeek Harness with two independent halves:
- Talk — an agent preset that sends no tools at all: no shell, no filesystem, no web search, no subagents, no skills, no
AGENTS.md, no runtime-context block. Pick it on the New Session screen and you get pure conversation; work sessions are untouched. - Import — a guided importer that turns a DeepSeek web account's conversations into Markdown inside your workspace.
They stay deliberately separate: the importer is a setup tool that work sessions see, and Talk denies every global tool — including that importer — so a chat never carries either.
Why
A DSH profile is a stack of bundles, and every bundle's tool schema is sent with every request. Measured on a real desktop profile with 20 bundles and the shipped cordis preset:
| tools callable by the agent | 86 |
| tool-schema payload per request | ~116 KB (≈30k tokens) |
| conversation tokens | 0, before the first message |
On a limited plan that tax is paid on every single turn. It eats the context window and it eats the output budget, so replies get truncated, you regenerate, and the "please try again later" wall arrives sooner than it should.
A Talk session pays none of it.
What a Talk request contains
- one short system prompt (the
prefixincordis.patch.yml, editable) - no tool schemas
- no
AGENTS.md/ workspace instructions - no skill catalog
- no runtime-context block (cwd, platform, env vars)
Install
The package is a DSH bundle (dsh.bundle.patch), so it installs like any other plugin.
# from this folder (or an extracted tarball)
dsh plugin --profile desktop add C:/path/to/dsh-talk-mode
dsh plugin add installs it into the profile; add dsh-talk-mode to dsh.profile.bundles in that profile's package.json if your profile manager does not do it for you. The GUI's Settings → Plugins page and the plugin_manager tool do both steps.
Then restart DSH.
Use
New Session → the preset control on the hero screen → Talk.
Switch back to your normal preset for engineering work; nothing about Work changes.
Import your DeepSeek chats
Two steps, and the DeepSeek token never leaves your browser.
- In the browser where DeepSeek is signed in: open https://chat.deepseek.com →
F12→ Console → paste the snippetdeepseek_importreturns foraction: "guide"→ Enter. It prints progress, ends withDONE, and downloadsdeepseek-chat-export.json. - Ask the agent to import, or call the tool with
action: "run". It finds the newest export and writes one Markdown file per conversation plusindex.md/index.jsonintoexports/deepseek-chat/.
Why the two-step dance: DSH cannot read another app's private storage, and DeepSeek's web client authenticates with a 64-character bearer token that lives only in the page's own memory. Running the snippet inside the page is the one place that token is both available and safe.
Then chat about the archive in a Talk session — that is what it is for.
How it works
Two halves, no client-side code:
cordis.patch.ymlinserts one@deepseek-ai/dsh-agent-presetentry withid: talk. The preset registry feeds the shipped New Session preset control (conversation.hero.agentPreset), so the option appears automatically.lib/index.jsmounts inside that preset's scope and callsctx.tools.restrict({ deny: <every globally visible tool name> })tools.restrict()is scope-local: it intersects with other restrictions and never modifies the global view, so every other preset keeps its full tool set.That safety is enforced by the harness, not promised by this plugin:
restrict()refuses to run on a context-global scope ("a context-global restriction would mask every agent"). A misconfiguration can therefore only fail to shrink Talk — it cannot narrow a Work session.
order: 0 puts Talk first in the picker.
Caveats
- Tools registered after a Talk session mounts (an MCP server that connects later, for example) are not covered. Start a new Talk session after such a change.
- System-prompt sections contributed by root-level plugins are not removed by this plugin — only the tool catalog, instructions, skills and runtime block are.
- The harness always has some system prompt. "No system context" here means no tool schemas, no
AGENTS.md, no skills, no runtime block.
Customise
Edit cordis.patch.yml after installing (the copy inside the profile's node_modules/dsh-talk-mode/):
config:
name: Talk # label in the picker
description: ... # subtext in the picker
order: 0 # position
plugins:
- id: persona
config:
prefix: |- # ← your chat persona
...
Restart DSH to reload the bundle.
Uninstall
Remove dsh-talk-mode from dsh.profile.bundles, then restart. Nothing else is written.
License
MIT
No comments yet. Be the first to write one.