DeepSeek Harness 插件

dsh-session-theme

打开页面时左侧边栏直接显示每个会话的主题,无需点进会话。启动时预热会话投影缓存,让冷会话也能显示真实标题。

跳到安装方式

来源信息

GitHub 仓库
Xliecc/dsh-session-theme
最近更新
2026年8月21日
分类
界面增强
GitHub stars
0

安装

默认先复制一段 Prompt,让 Agent 读页面和仓库;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读页面和仓库。

请先不要安装。阅读这个 DeepSeek Harness 插件,说明它解决什么问题、会访问哪些文件、网络或密钥,以及如何安装和卸载。

插件页面:https://deepseekplugins.org/zh/plugins/Xliecc/dsh-session-theme
GitHub:https://github.com/Xliecc/dsh-session-theme
插件名:dsh-session-theme
作者:Xliecc
安装命令:dsh plugin --profile web add github:Xliecc/dsh-session-theme

确认前不要执行安装命令。

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-session-theme

> English | [简体中文](./README.zh-CN.md)

!npm version !npm downloads !license ![CI](https://github.com/Xliecc/dsh-session-theme/actions/workflows/ci.yml)

DSH web plugin: the left sidebar shows every session's theme right on page load — no need to click into a conversation first.

The problem

In the DSH sidebar, sessions you haven't opened yet show no theme — just the workspace folder name (or a placeholder id). The theme only appears after you click into the session.

Root cause: for "cold" sessions (never opened in this process), session.list only reads the projection cache's zero-I/O rows (cachedSnapshot). If a session's title projection was never checkpointed, its list row has no title, so the sidebar falls back to the folder name. Only opening the session (which triggers the full cold-read ladder) recovers the title.

How it works

At startup the plugin runs the projection cache's cold-read ladder (coldSnapshot) for every persisted session: it refolds the title projection from the stored log and durably writes it back to the cache. After that, every row returned by session.list carries a title projection → the sidebar natively shows each session's real theme, no click required.

  • Only "cold" sessions are processed (not opened in this process); sessions that are already loaded already carry live projections in their list rows.
  • Fail-soft per session: a corrupted log never affects other sessions and never blocks startup.
  • Idempotent write-back: the next boot hits the cache fast path instantly.

See [ARCHITECTURE.md](ARCHITECTURE.md) for the full design and data flow.

Verify it works

1. Install the plugin (any method below), then hard-refresh the browser (Ctrl/Cmd+Shift+R). 2. Open the DSH Web sidebar — every session row should show its conversation theme, not a folder name. 3. To confirm the hit, run: dsh plugin --profile web add dsh-session-theme and watch the server log for the line: dsh-session-theme: projection cache warmed (N sessions).

Install

Link install, zero external dependencies (host side uses only standard services):

dsh plugin --profile web add link:/path/to/dsh-session-theme

Or clone from GitHub:

git clone https://github.com/Xliecc/dsh-session-theme.git
dsh plugin --profile web add link:./dsh-session-theme

Or install from npm:

dsh plugin add dsh-session-theme

After installing, hard-refresh the browser (Ctrl/Cmd+Shift+R) so the client re-pulls session.list.

Files

  • lib/index.js — host side: warms the projection cache at startup (all behavior)
  • lib/client.js — browser-side stub (no-op, keeps the registered manifest consistent)

License

MIT