返回目录
模型与 MCP 插件

dsh-talk-mode

zhyunran/dsh-talk-mode

Adds a tool-free Talk agent preset to DeepSeek Harness, keeping prompts small on limited plans.

Stars
0
Forks
0
Issues
0
更新
8 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:zhyunran/dsh-talk-mode

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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 prefix in cordis.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.

  1. In the browser where DeepSeek is signed in: open https://chat.deepseek.com → F12 → Console → paste the snippet deepseek_import returns for action: "guide" → Enter. It prints progress, ends with DONE, and downloads deepseek-chat-export.json.
  2. Ask the agent to import, or call the tool with action: "run". It finds the newest export and writes one Markdown file per conversation plus index.md / index.json into exports/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:

  1. cordis.patch.yml inserts one @deepseek-ai/dsh-agent-preset entry with id: talk. The preset registry feeds the shipped New Session preset control (conversation.hero.agentPreset), so the option appears automatically.

  2. lib/index.js mounts inside that preset's scope and calls

    ctx.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

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。