DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-tool-highlight

d

dsh-tool-highlight

Manifest valid

Layered syntax highlighting for bash/pwsh command and read code output in the DSH web GUI (VS Code Dark+ palette: keywords/strings/numbers/functions/comments each get a color); colors only what it rec

UI (client)hasBundlePatch

dsh-tool-highlight

License: MIT npm version GitHub stars

DeepSeek Harness(DSH)web 插件:给 bash / pwsh 命令read 的代码输出分层语法染色(VS Code Dark+ 风格:关键字/字符串/数字/函数名/注释各一色)。认得出来才染,表格/日志保持原样。

纯前端渲染,不新增、不改写任何会话内容,不调用模型 —— 零 token 开销

效果

  • read 代码文件 → 按扩展名识别语言(.py .js .ts .json .ps1 .sh ...),PyCharm 式分词染色
  • bash / pwsh 输出 → 内容启发式识别:像 JSON 按键/字符串/数字分色;像代码按语法分色;表格/日志保持原样(硬染反而花眼)
  • 附带退出码状态条(绿=成功 / 红=非零退出或信号)
  • 默认折叠(可开关):read / bash / pwsh 卡片默认收起为一行标题(路径 + 状态条),点击标题行展开/折叠;运行中与出错时自动展开(看实时输出、不藏错误)。可在 设置 → 插件配置 → 工具卡片折叠 关闭此开关,恢复全部展开的旧行为。

效果预览图(左:代码染色 / 右:表格原样):

预览

配置

| 键 | 类型 | 默认 | 说明 | | --- | --- | --- | --- | | collapseByDefault | boolean | true | read / bash / pwsh 卡片默认折叠;设为 false 恢复全部展开。 |

入口:设置 → 插件配置 → 工具卡片折叠(开关即时生效,持久化到用户设置文档)。也可直接在 profile 的 cordis.yml / settings.yaml 写:

tool-highlight:
  collapseByDefault: true

安装

# 方式一:npm(推荐,即装即用)
dsh plugin --profile web add dsh-tool-highlight

# 方式二:GitHub 源
dsh plugin --profile web add github:vollegrewar/dsh-tool-highlight

# 方式三:本地 link(开发用)
dsh plugin --profile web add link:/path/to/dsh-tool-highlight

装完 重启 dsh web 并硬刷新(Ctrl+Shift+R)。

若用 GitHub 源安装遇到 pnpm 的 allowBuilds 提示,按提示把 dsh-tool-highlight 加进 profile 的 pnpm-workspace.yaml 白名单即可;本插件无构建脚本,npm 安装不会触发。

与 dsh-better-tool-ui 共存

本插件只接管 read / bash / pwsh 三个工具卡(priority -2), dsh-better-tool-ui 继续负责 write/edit 的 diff、彩色状态条等其余工具——各管各的,互不冲突。 不装 better-tool-ui 也能单独使用。

工作原理

  • 挂在 DSH 官方空 keyed 槽位 tool.call.toolview 上,按工具名注册渲染器
  • 语言识别:read 按文件扩展名;命令输出按内容启发式(JSON 可解析 → JSON;代码特征行 ≥2 → Code;否则纯文本)
  • 分词染色器为自研轻量正则(零运行时依赖),配色 VS Code Dark+,明暗主题跟随 DSH 主题 token

常见问题

会增加 token 消耗吗? 不会。纯前端渲染:不改写会话内容、不调用模型,读取已有文本重新上色而已——和把 Word 字变颜色同理。

为什么表格/日志不上色? 认不出的内容硬染反而花眼(没人会给打印小票上色)。这是"认得出来才染"的设计,不是缺功能。

和 dsh-better-tool-ui 冲突吗? 不冲突。本插件只接管 read / bash / pwsh(priority -2),better-tool-ui 继续管其余工具。

开发与贡献

License

MIT

Compatibility

DSH 0.1.5-rc.2: errorDSH 0.1.5-rc.1: errorDSH 0.1.5-alpha.2: errorDSH 0.1.5-alpha.1: errorDSH 0.1.3-alpha.2: errorDSH 0.1.2-rc.1: errorDSH 0.1.2-alpha.5: errorDSH 0.1.2-alpha.4: errorDSH 0.1.2-alpha.3: errorDSH 0.1.2-alpha.2: error

Versions

Latest versionPublishedSize
0.2.6
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2

Similar plugins

dsh-prompt-polish

by JoukoPuro

一个 DeepSeek Harness(DSH)插件: 在 Web 输入框的工具行中添加一个 ✨ 图标按钮。点击后选择打磨风格,已接入的大模型 会把你草稿中的提示词改写得更专业、更易被 AI 理解 。A DeepSeek Harness plugin: icon-only composer button that rewrites your prompt via the connected LLM

Manifest valid

4

87/wk

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add dsh-prompt-polish

Workspace-first enhanced sidebar for dsh Web that shadows the built-in workspace browser at low priority (one-click toggle back to the official one) and adds soft workspace archive/restore, per-worksp

UI & ExperienceManifest valid

0

dsh plugin --profile web add dsh-workspace-kit

by Max-Null

Conversation node appearance for DeepSeek Harness Web GUI: colorize nodes by type/tool (configurable palette) + thinking visibility toggle · 会话节点外观:按节点类型/工具名着色(可配置配色)+ 思考过程显示开关

UI & ExperienceManifest valid

3

178/wk

TypeScript

Sep 12, 2026

dsh plugin --profile web add @max-null/dsh-node-appearance

by yoli-mi

Configurable DSH web-surface plugin: wallpaper & frosted-glass themes, accent colors, custom keyboard shortcuts, app-usage panel, history strip, message Markdown — zero shell edits.

Terminal & ClientsManifest valid

33

30/wk

MIT

TypeScript

Aug 24, 2026

dsh plugin --profile web add @ha-na-bi/dsh-client-ui-custom

A developer toolkit for the DeepSeek Harness (DSH) web console: a real multi-tab PTY terminal docked under the composer plus an AI-output file browser sidebar with syntax highlighting, Markdown render

Development & InfrastructureManifest valid

0

138/wk

dsh plugin --profile web add dsh-devpanel

Immersive read-only reading panel for DeepSeek Harness. The model delivers pre-formatted Markdown via the `reading_pad_send` tool into a better-sidebar tab: three low-blue-light themes (Paper/Sepia/Ni

UI & ExperienceManifest valid

0

dsh plugin --profile web add dsh-reading-pad