DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-session-icons

f

dsh-session-icons

Manifest valid★ 2

DSH (DeepSeek Harness) session title icon plugin for the Web interface: When the model generates a title for a new session, the host half initiates a secondary small request using the same route, asking the model to draw a 24×24 monochrome SVG metaphor icon based on the title; the browser half injects it to the left of each row's title in the left session list, following the theme color.

UI (client)hasBundlePatch

dsh-session-icons

npm Downloads License: MIT dsh-plugin Platform: DeepSeek Harness

DSH(DeepSeek Harness)Web 界面的会话标题图标插件:当模型为一次新会话生成标题时,宿主半用同一条路由发起一次辅助小请求,让模型按标题画一枚 24×24 单色 SVG 隐喻图标;浏览器半把它注入到左侧会话列表每行标题的左侧,跟随主题色。

图标带磁盘缓存($DSH_HOME/session-icons/cache.json):重启 dsh、刷新页面、重开浏览器都不丢;重启后看到列表里尚无图标的标题,浏览器半会主动上报,宿主半按最近一次标题调用的路由补画。

侧边栏会话标题图标效果

安装

前提:已安装 dsh 并使用 Web 界面(即 dsh web 的 web profile)。

在本机任意目录执行:

dsh plugin --profile web add dsh-session-icons

包从 npm registry 安装,自带预构建产物(lib/),无需本地构建、无需构建授权(allowBuilds)。本包声明了官方 dsh.bundle manifest(package.json 的 dsh.bundle.patch 指向根目录 cordis.patch.yml),dsh plugin add 会把它安装进 profile 并挂载到插件树。

也可以从 GitHub 源码安装(会在本地构建,若 dsh 请求构建授权,确认后继续):

dsh plugin --profile web add fengb3/dsh-session-icons

安装完成后重启 DSH 使其生效:

dsh web

之后每次新会话自动生成标题时,左侧列表该行的标题前就会多出一枚小图标;旧的、还没图标的历史标题会在启动后被自动补画。

更新 / 停用 / 卸载

# 更新到 npm 最新版本
dsh plugin --profile web update dsh-session-icons

# 卸载
dsh plugin --profile web remove dsh-session-icons

临时停用(保留安装,重启后不再加载):编辑 ~/.dsh/profiles/web/cordis.patch.yml,加上

- id: dsh-session-icons
  disabled: true

删除该行(或改回 disabled: false)并重启即恢复。

配置

默认配置开箱即用。要覆盖时,在 ~/.dsh/profiles/web/cordis.patch.yml 里给同 id 行写 config:

- id: dsh-session-icons
  config:
    maxCachedIcons: 500
    timeoutMs: 45000
键默认说明
maxCachedIcons500图标缓存上限(内存与磁盘同步裁剪)
timeoutMs45000单枚图标生成超时
iconProvider / iconModel'' / ''可选固定路由;须成对设置,留空 = 跟随最近一次标题调用的路由

工作原理

  • 宿主半 以 { global: true } 监听 llm/stream 瀑布(与官方 dsh-session-title 服务相同的注册方式,绕过 Service isolate 过滤;监听器保持同步返回,不破坏瀑布契约)。只匹配 purpose === 'session-title' 的辅助调用:转发流的同时镜像其文本,流正常结束后取规范化标题(与官方逐字节一致:控制符剥离、空白折叠、80 字节 UTF-8 截断),并记录该次调用的 provider/model 路由。
  • 图标生成 是一次独立的 ctx.llm.stream() 调用(单并发、每标题至多重试 2 次、45s 超时、maxTokens 2048),输出经消毒:只取 <svg>…</svg> 片段,拒绝 script / 事件属性 / href / text / 动画 / 外链 / 超 6KB。
  • 浏览器半 不占任何 slot:MutationObserver 盯侧边栏,用结构锚点([class*="sessionRow"] 行、[class*="title"] 子元素,不依赖 CSS-module 哈希前缀)按标题逐字匹配,在标题前插入 16px、currentColor 的图标;每 2 秒轮询一次图标表增量,缺失标题去重后上报宿主补画。

从源码开发

git clone https://github.com/fengb3/dsh-session-icons
cd dsh-session-icons
pnpm install
pnpm run dev:link   # 从 ~/.dsh/profiles/node_modules 链接 @deepseek-ai 类型包(不发布到 npm,仅供本地类型解析)
pnpm run build      # tsc(宿主半)+ tsdown(client bundle)
pnpm run test:client-bundle
pnpm run test       # 不变量测试:normalizeTitle 与官方包逐字节对拍(需先 dev:link)、双端消毒器同步等

把 profile 指向本地工作副本开发:编辑 ~/.dsh/profiles/web/package.json,dependencies 加

"dsh-session-icons": "link:C:/path/to/dsh-session-icons"

dsh.profile.bundles 已含 dsh-session-icons 即可(首次安装过 dsh plugin add 的 profile 无需改动),然后在 profile 目录 pnpm install 并重启 dsh web。

已知边界

  • 侧边栏没有逐行官方 slot,注入走结构 DOM 锚点 —— DSH 大改列表结构时需要更新选择器。
  • 同名标题共享同一枚图标(按标题文本索引)。
  • 图标调用没有日志事件(独立于标题管线,不写会话日志)。

License

MIT

Compatibility

DSH 0.1.5-rc.2: failedDSH 0.1.6-alpha.1: failedDSH 0.1.6-alpha.2: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-chattree

by RyanZeeee

A visual, non-linear conversation canvas for DeepSeek Harness (DSH) — every turn is a node, every question grows a branch. DSH 插件:把线性聊天记录变成一张可以看、可以点的对话地图,每轮问答是一个节点,每次提问都是一条新分支。

Sessions & MessagesManifest valid

★ 4

MIT

JavaScript

Sep 13, 2026

dsh plugin --profile web add dsh-chattree

by anneqaq

DSH 插件:把模型编写的 SVG/HTML 片段渲染成对话中的内联可视化卡片(图表、流程图、时间线、对比表格),沙箱隔离、无网络、无依赖

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-widget

by jh1016248

DSH(DeepSeek Harness)插件:会话标题栏一键导出当前会话 —— 「保存 MD」下载纯净 Markdown,「保存 HTML」下载带左侧目录、表格与代码块渲染的网页。自动过滤模型思考过程与工具调用记录,只保留用户与助手的正文,适合归档、分享与撰写报告。安装:dsh plugin --profile web add dsh-save-session

Development & InfrastructureManifest valid

★ 0

↓ 690/wk

MIT

JavaScript

Sep 11, 2026

dsh plugin --profile web add dsh-save-session

by CHIP-PHILO-GH

DeepSeek Harness「新建会话」命名插件:点新建会话先弹一个轻量对话框填会话名,留空则按第一条消息自动命名。Ask for a session name when starting a new conversation.

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 15, 2026

dsh plugin --profile web add dsh-session-namer

by lovezi0

DeepSeek Harness 的会话流「内联可视化」插件:模型产出 SVG / HTML 源码后,交给浏览器渲染成一张可交互的内联卡片,源码只进卡片、不回灌模型上下文。

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Oct 22, 2026

dsh plugin --profile web add dsh-visualizer-widget

by zzy2210

DeepSeek Harness 常驻插件:在会话标题栏显示主代理与每个子代理实际使用的模型和思考档位 | Persistent DSH web plugin: shows the model & reasoning effort actually used by every subagent, right in the conversation header

Manifest valid

★ 0

JavaScript

Oct 8, 2026

dsh plugin --profile web add y1n-agent-roster