dsh-trans-md
Manifest validKeeps DSH chat replies short: final replies over 15 lines are written to a Markdown file in the workspace, leaving a digest and file path in chat.
dsh-trans-md
Long replies become Markdown files — for DeepSeek Harness (dsh).
Very long assistant replies can be truncated mid-stream by the transport. dsh-trans-md moves the bulk of long replies into a workspace Markdown file and keeps the chat reply short. It also saves tokens: content written to a file as a tool argument is paid for once, while a long chat reply stays in context and is re-sent on every later request.
Install
dsh plugin --profile web add github:<owner>/dsh-trans-md
Restart dsh (or reload the profile), then the rule is active for new turns.
What it does
The plugin contributes one system-prompt section (order 40) stating a single rule:
- If a user-facing final reply would exceed 15 lines, write the full content to
docs/<prefix>-<topic>.mdin the current workspace instead of sending it in chat. - The chat reply becomes a short digest (at most 10 lines) plus the file path.
- Replies under 15 lines are sent normally in chat.
- Writing the file and also pasting its body into chat is explicitly disallowed.
- Investigation depth is unchanged — only the delivery location changes.
It registers no tools, no UI, and makes no network requests. The docs/ directory is created on first use.
Configuration
All fields are optional; the defaults are shown.
| Key | Default | Meaning |
|---|---|---|
enabled | true | Turn the rule off without uninstalling. |
maxLines | 15 | Line threshold above which a reply goes to a file. |
docsDir | "docs" | Workspace-relative directory for the files. |
filePrefix | "notes" | Prefix for generated filenames. |
ruleFile | — | Path to a Markdown file that replaces the built-in rule text entirely. |
workspaceRoot | — | Optional absolute base path; when omitted the process working directory is used. |
Set them through the profile patch:
- id: dsh-trans-md
name: dsh-trans-md
config:
maxLines: 20
docsDir: notes
Custom rule text
Point ruleFile at any Markdown file to replace the built-in instruction. A non-empty file wins entirely; an empty or unreadable file silently falls back to the built-in text, so a bad path never breaks prompt assembly. Content is capped at 4000 characters.
Scope and limits
- This is a prompt-level instruction, not a hard interception. It makes the behaviour the strongly preferred default; it cannot guarantee it in every turn. A hard guarantee would require an output hooks layer, which this plugin deliberately does not add.
- The rule applies to the final user-facing reply. Intermediate narration between tool calls is exempt.
- Styles apply to the main conversation only.
Requirements
- DeepSeek Harness with a
systemPromptservice available. If that service is absent the plugin mounts and contributes nothing rather than failing profile load. - No runtime dependencies.
License
MIT
Comments
Loading…
From the same category
by awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 25.3k
CC0-1.0
Python
Nov 21, 2026
by woniuniuniu
DeepSeek Harness 自媒体工作台插件:一句话记灵感,一键生成脚本、封面、配图和分镜
★ 1.6k
↓ 6.4k/wk
MIT
JavaScript
Nov 18, 2026
dsh plugin --profile web add dsh-media-deskby 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
★ 1.4k
CC0-1.0
Python
Nov 6, 2026
by keli-wen
Hire Google's Antigravity CLI (agy) as a fast Gemini staffer for Claude Code, OpenAI Codex, and DeepSeek Harness.
★ 906
MIT
JavaScript
Nov 19, 2026
dsh plugin --profile agent add agy-staffby SAOS-3624
Scene-aware storyboard for DeepSeek Harness: 9-16 numbered cells with timestamps + transcript + an audio envelope, packed into ONE image (384 tokens). Two tools: video_storyboard and video_zoom.
★ 585
↓ 17k/wk
MIT
JavaScript
Nov 21, 2026
dsh plugin --profile web add dsh-video-storyboardby omdsh-dev
DSH(DeepSeek Harness)插件:把 ego-lite 浏览器(给 AI Agent 用的 Chromium)接入 HARNESS——13 个结构化 ego_* 工具(文本语义快照、语义定位点击、表单填充、截图、CDP 控制、任务空间隔离),内置 ego 运行时,Linux + Chrome 开箱即用,无需克隆官方仓库或手动构建。
★ 562
↓ 12.8k/wk
NOASSERTION
TypeScript
Nov 21, 2026
dsh plugin --profile web add dsh-ego-browser