dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness 一键 Concise 输出风格开关:结果先行、少废话,工作深浅不变。每轮最终回答开头自动附「摘要」精华卡(划选即复制),按会话独立生效,headless/CLI 同样生效,支持 /concise 命令、style.md 自定义风格与本地 API。摘要卡内的链接与文件路径渲染为可点击 chip:网页跳转、本地文件用系统默认应用打开(v0.9+)。每步生成前自动重申摘要契约(v0.11.2+),实测根治审查报告/表格型回复的漏卡。
Based on Claude Code's built-in Concise output style (unchanged upstream since 2.1.258) plus this plugin's own extension, for DeepSeek Harness (dsh): a composer toggle in the zone left of the model picker — hugging the prompt-enhancer button — that makes every reply lead with results and skip the filler — while the depth of investigation, verification, and double-checking stays exactly the same. With Concise on, every final reply opens with an engineering-blueprint digest card (intermediate tool-step narration is exempt) — faint grid, corner measurement ticks, monospace 1.18em — and selecting text inside the card copies it on mouse-up.
dsh plugin add hoyyang/dsh-concise
Zero config — no API keys, no accounts, no settings. Refresh the web UI after install and the toggle appears left of the model picker, hugging the prompt-enhancer button when it is present. Requires dsh web 0.1.0-rc.8+ (verified on 0.1.0-rc.8).
Asked "introduce JavaScript closures with one use case" in two sessions, differing only by the Concise toggle:
With Concise on you get:
In one line: the answer didn't get smaller — the filler is gone.
✦ 标准/轻量, dsh-improve-prompt) in the composer tool row — the ● Concise toggle sits immediately LEFT of it (switch side hugging the pill), with the prompt-enhancer itself left of the model picker (without improve-prompt installed, Concise hugs the model picker's left side)The toggle is per-session: turning it on here doesn't touch your other sessions (new sessions start off; set defaultEnabled: true to change that).
/concise command in the slash menu and CLI sessions: /concise, /concise on|off, /concise status (parity with Claude Code's /output-style)/concise command)~/.dsh/dsh-concise/style.md overrides the built-in style text, effective on the next assembly (parity with /output-style:new)defaultEnabled)/concise, API, or other-tab changes are reflected without reloadprefers-reduced-motion)aria-pressed toggle semantics, zh/en localized tooltipdiv.dip-root), whose own spot stays left of the model selection buttons; without improve-prompt it anchors left of the model button (the official right-slot actually renders left of the model button, which this plugin treats as its placement zone)Example (real output, toggle on, asked "explain HTTP 302 in one sentence"):
HTTP 302 is a redirect status code indicating the requested resource has temporarily moved to the URL in the Location header; the client should re-issue the request there while the original URL remains valid (unlike 301, search engines do not transfer ranking).
Scriptable local API:
curl http://127.0.0.1:3080/dsh-concise/api/state # → {"enabled":false}
curl -X POST http://127.0.0.1:3080/dsh-concise/api/toggle # → {"enabled":true}
curl -X POST -H 'content-type: application/json' -d '{"enabled":true}' \
http://127.0.0.1:3080/dsh-concise/api/set # → {"enabled":true}
Slash command (also works in CLI sessions):
/concise # toggle
/concise on|off # explicit set
/concise status # state + style source (built-in / custom)
Custom style: put your own text in ~/.dsh/dsh-concise/style.md to fully replace the built-in style text — saved edits apply from the next model assembly; delete the file to restore the built-in.
| Layer | Mechanism |
|---|---|
| Prompt injection | systemPrompt.section({ name: 'dsh-concise:style', order: 40 }) with a function-valued text; disabled renders as an empty string and is dropped |
| Host command | commands.register({ name: 'concise' }) — /concise [on|off|status], listed in the slash menu automatically |
| Custom style | $DSH_HOME/dsh-concise/style.md overrides the built-in text when non-empty; mtime-cached per assembly |
| Toggle API | webServer.register prefix route /dsh-concise/api: GET /state, POST /toggle, POST /set (loopback only) |
| UI placement | client module anchors in the conversation.input.right slot and portals the button left of the prompt-enhancer entry (or left of the model seat when absent), kept in place by a MutationObserver |
| Per-session state | $DSH_HOME/dsh-concise/state.json: default + per-session overrides (500-entry LRU), atomic tmp+rename write |
| State sync | per-session dsh-concise:change DOM event on toggle + 15 s light polling (visible tab) + focus/visibility refetch |
| Digest rendering | the style text asks for a > **摘要:** blockquote on final replies (intermediate steps exempt, plus a tail reminder section); the client watches the message DOM (subtree + rAF batching) and upgrades blockquotes prefixed 摘要: or the legacy 说人话: to an engineering-blueprint card (faint grid via ::before brightening on hover, corner brackets ::after drawing in on mount, monospace 1.18em, selection-copy interaction, concept assets/style-digest-v07e.png); original: a warm-paper amber card (gradient border + gradient label + corner glow, theme-independent); removed cleanly on uninstall |
Daily Q&A and study notes · code-review verdicts · bug triage reports · weekly updates · architecture decisions · ops runbooks · long multi-turn sessions · team-wide style consistency · per-stage style switching in automation pipelines.