lssyd20070106/dsh-ui-preset-enhance 预览 preview

lssyd20070106/dsh-ui-preset-enhance

第三方DSH WebUI增强插件:自定义背景、主题颜色、提示词预设、令牌/上下文可见性及手动压缩。

Project Overview项目介绍

This is a third-party UI enhancement plugin built exclusively for the DeepSeek Harness (DSH) WebUI. It adds four core sets of features to the base DSH experience: custom interface styling, reusable prompt presets, real-time token and context usage tracking, and manual context compaction. For users that already have Node.js and pnpm installed on their machine, the plugin can be added with a single one-line npx command. For Windows users that are not comfortable working with command line tools, a double-clickable installation script is provided to handle the entire setup process automatically.

The plugin is designed for all casual and power users of the DSH Web client. After installation completes, you only need to fully close and restart DSH Web, then hard-refresh your browser with Ctrl+F5 to activate the plugin. You can then access all features from the dedicated "UI Enhancement" page added to your DSH settings. From this page, you can customize your background, adjust transparency and blur effects, tweak theme colors, save custom prompt presets, check current session token usage, and run manual context compaction whenever you need it.

The project is released under the permissive open-source MIT license. All of your personal configurations, including custom backgrounds, theme settings, and saved prompt presets, are stored locally in your browser’s localStorage and never sent to external servers. The current version is v0.1.0 Preview, tested for compatibility with DSH 0.1.0-rc.6, and includes automated smoke tests to confirm the plugin loads correctly. Development of the plugin requires Node.js 20 or newer, but regular users do not need any extra dependencies beyond what is required for a base DSH install.

这是一款专门为 DeepSeek Harness(DSH)WebUI 开发的第三方界面增强原生插件,核心提供四项功能:界面个性化定制、常用 Prompt 复用保存、当前会话 Token 与 Context 状态查看,以及手动执行 Context 压缩。已预先构建好可运行产物,普通用户无需自行编译,有 Node.js 和 pnpm 环境可通过一行 npx 命令安装,不熟悉命令行的 Windows 用户也可双击安装脚本完成部署。

面向所有使用 DSH Web 客户端的普通用户和开发者,用户安装完成后只需重启 DSH Web 并刷新浏览器,即可在设置的「界面增强」页面使用所有功能。你可以自定义界面背景、调整透明度和模糊效果、修改主题色阶,也能保存自定义 Prompt 预设,快速查看当前会话的 Token 使用情况,随时手动压缩对话 Context。

项目遵循 MIT 开源协议,所有用户配置都保存在浏览器本地存储,不会上传到第三方服务器。当前为 v0.1.0 预览版,兼容 DSH 0.1.0-rc.6 版本,内置自动化测试检查兼容性,但仍需要用户反馈不同环境的运行问题。开发需要 Node.js 20 以上版本,普通用户仅需满足基础安装环境要求即可。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:lssyd20070106/dsh-ui-preset-enhance

把 lssyd20070106/dsh-ui-preset-enhance 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-ui-preset-enhance

简体中文 · English · 小白安装手册

一个给 DeepSeek Harness(DSH)WebUI 用的第三方界面增强插件。

它主要解决 4 件事:界面个性化、常用 Prompt 复用、Token / Context 查看、手动 Compact。

当前版本:v0.1.0 Preview
第三方项目,不是 DeepSeek 官方组件。项目按当前公开的 DSH 0.1.0-rc.6 客户端接口进行了源码兼容检查,并附带构建、运行入口和 DSH 安装 Smoke Test。正式发布初期仍建议保留 Preview 标记,方便收集不同环境的兼容反馈。

效果预览

DSH WebUI background preview

DSH appearance settings prototype

上面两张图来自项目早期视觉原型。正式插件使用独立的 “设置 → 界面增强” 页面提供同方向的壁纸、模糊、透明度和强调色功能,具体控件位置可能与原型图略有不同。

最简单的安装方法

电脑已经有 Node.js 和 pnpm 时,只需要这一行:

npx --yes @deepseek-ai/dsh plugin --profile web add github:lssyd20070106/dsh-ui-preset-enhance

安装完成后:

  1. 完全关闭并重新启动 DSH Web;
  2. 浏览器按 Ctrl + F5;
  3. 打开 设置 → 界面增强。

不会命令行?

下载本仓库 ZIP,先解压,然后双击:

INSTALL-WINDOWS.cmd

它会检查 Node.js、pnpm、插件文件和 DSH 安装结果。遇到问题直接看:

《小白安装手册》INSTALL-GUIDE.md

功能

功能 简单说明
🖼️ 自定义背景 本地上传、网络图片或 5 个渐变预设
🌫️ 透明与模糊 调整 DSH 界面层透明度和壁纸模糊
🎨 主题颜色 主色、辅助色与强调色阶
📑 Prompt 预设 7 个内置模板 + 自定义保存 / 删除 / 快速载入
📊 Token / Context 查看当前 Session 的 Context 压力、窗口和 Token 组成
🧹 手动 Compact 通过当前 Session 的 DSH 命令接口执行 /compact

安全与边界

这个项目定位是 Web 客户端增强:

  • 不注册新的后端 Tool;
  • 不修改 Agent-Loop 核心;
  • 不上传你保存的 Prompt 到本项目自己的服务器;
  • 壁纸、主题和用户 Prompt 预设主要保存在浏览器 localStorage;
  • 自定义壁纸 URL 只接受 http://、https:// 和图片 data: URL,拒绝任意脚本 / CSS URL。

如果你使用网络图片作为壁纸,浏览器仍会正常访问那个图片服务器,因此对方服务器可以收到普通网络请求信息。

我们检查了什么

仓库内置两层 Smoke Test:

scripts/smoke.mjs
scripts/runtime-smoke.mjs

它们会检查:

  • package.json / cordis.patch.yml / ./client 导出是否一致;
  • window.__ModuleLoader__.load(...) 包装和插件 ID;
  • Settings 与 Sidebar Slot 是否能注册;
  • 当前 Session 的 Token Projection 是否能读到;
  • /compact 是否走 Session command();
  • 已保存壁纸、主题 Token 是否能在插件启动时恢复;
  • 构建产物是否含本机绝对路径。

GitHub Actions 还会在干净环境中:

  1. TypeScript 检查;
  2. 重建 dsh/client.js / dsh/index.js;
  3. JavaScript Syntax Check;
  4. npm pack --dry-run;
  5. 用 @deepseek-ai/dsh@0.1.0-rc.6 创建干净 Web Profile,并实际执行一次 dsh plugin add file:... 安装检查。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-file-claim 下一个 Next dsh-conversation-anchors →