GIGHT111/dsh-workspace-inspector
GIGHT111★ 0TypeScript最后同步: 2026-08-14
DeepSeek Harness (dsh) Web 右侧面板插件:Token 用量与占比、全部历史消息目录(可折叠/点击跳转)、上下文压力、工作区文件树(点击系统默认打开)。跨平台(macOS / Windows / Linux)。
README 摘要
dsh-workspace-inspector DeepSeek Harness (DSH) Web 客户端插件:在 右侧详情列 显示当前会话的 Token 用量 、 消息目录(全部历史) 与 工作区文件树 。跨平台(macOS / Windows / Linux)。 English : A right-side panel plugin for the DeepSeek Harness web UI. It shows token usage with per-part breakdown , a collapsible full-history message outline (click to jump to the message), context pressure , and a workspace file tree (click a file to open it with your system default app). Cross-platform: macOS / Windows / Linux. Install (GitHub, recommended — no build needed): Requirements: dsh installed and pnpm on PATH . After restarting, the panel opens on the right side; close it with ✕ and reopen it with the 📊 Overview button in the session header. 功能 - Token 用量(本会话累计) :输入(未缓存)、缓存读取、输出及 各自占比 (不含缓存写入),总计 = 输入+缓存读取+输出 —— 来自 tokenUsage 会话投影。 - 消息目录(全部历史) :host 重放会话 完整持久化日志 重建目录(客户端事件窗口只有最近约 50 条消息,看不到全部历史)。每条用户消息可折叠展开看该轮回复摘要与工具调用次数;点击条目滚动对话到对应消息行并高亮(若目标消息不在当前已加载窗口,会提示先加载更早历史)。摘要为启发式文本提炼,非 LLM 生成。 - 上下文压力 :下一次请求的预计 token 数、上下文窗口容量与占用百分比 —— 来自 contextPressure 投影。 - 工作区文件树 :以当前会话工作区为根,目录懒加载、可展开/折叠,文件显示大小; 点击文件行用系统默认应用打开 (插件自有 host 路由,与官方 openPath 同机制);隐藏文件开关与刷新。 - 关闭/重开 :✕ 一次关闭右侧列(无悬浮模式);会话头部右侧出现「📊 概览」按钮,点击重新打开右侧列,恢复原生拖拽分栏调整大小。 架构 双面(dual-face)插件…
在 GitHub 查看完整 README →