办公室工作区/会话仪表盘:悬浮 6 列精灵面板,可视化工作区、会话、token 用量与子代理。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-office
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Fayelin12/dsh-office
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
Office workspace & session dashboard plugin for DeepSeek Harness (DSH). 给 DeepSeek Harness (DSH) 的「办公室」工作区 / 会话 / 子代理可视化插件。
What is dsh-office? / 这是什么
dsh-office is a floating office panel for DeepSeek Harness. It turns your workspaces, sessions, token usage and subagents into a 6-column sprite office, so you can see what every agent is doing at a glance — without opening each session.
dsh-office 是 DeepSeek Harness 的一个悬浮「办公室」面板,把工作区、会话、 token 用量、子代理变成一屏 6 列精灵办公室,一眼看清每个 agent 在忙什么, 不用逐个点开会话。
- Workspace / 工作区:6 列布局,一眼总览。
- Session / 会话:活跃 / 待确认 / 已完成状态,彩色边框区分。
- Token / token 用量:单次输入 vs 累计,活跃会话实时、历史会话冷读。
- Subagent / 子代理:自动过滤子代理会话,父会话聚合显示「有子代理在跑」。
Features / 特性
- 🏢 6-column sprite office / 6 列精灵办公室
- 🔵 悬浮入口 + 一键开关 / floating FAB + toggle
- 🧠 MBTI 角色 + 个性化气泡 / MBTI characters + idle bubble texts
- 🔢 token 单次 vs 累计口径 / per-input vs cumulative token
- 🤖 子代理识别与过滤 / subagent detection & filtering
Install / 安装
从 npm 安装 / Install from npm
dsh plugin --profile web add dsh-office
本地开发安装 / Local (file:) install
pnpm add dsh-office@file:<path/to/dsh-office>
# 然后在 profile 的 bundles 里加 "dsh-office"
即:在
~/.dsh/profiles/web/package.json的dsh.profile.bundles数组中加入"dsh-office",然后重启dsh web。
数据目录:~/.dsh/office/(office-config.json、token-usage.json)。
Usage / 使用
- 右下角点 🏢 办公室 FAB。
- 打开 6 列面板,看到工作区 / 会话 / token / 子代理。
- 点会话卡片跳转;面板随侧边栏切换自动收起。
Why dsh-office? / 解决什么问题
- Before / 之前:工作区多、会话散、token 不可见、子代理混在主列表里。
- After / 之后:一屏总览所有 agent 状态与资源占用。
FAQ / 常见问题
Q: 它和 dsh-polling 有什么区别? A: dsh-polling 管定时任务;dsh-office 管可视化总览。两者可共存。
Q: token 的「单次输入」和「累计」是什么口径? A: 单次输入 = 最近一次请求的输入 token;累计 = 该会话历史输入 + 输出 + 缓存读写之和。活跃会话显示单次,空闲会话显示累计。
Q: 子代理会话为什么看不到? A: 子代理会话默认从列表 / 徽标 / 悬浮里过滤(避免噪声),但 token 仍计入父会话。
Ecosystem / 生态
- DeepSeek Harness — the harness this plugin runs on
- dsh-plugin topic — more DSH plugins
- awesome-deepseek-harness — curated DSH ecosystem
License
MIT
链接
同类插件
zhu1090093659/dsh-web-ui#packages/dsh-web-ui-all★ 2622
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
ccch1mneyyy/dsh-TUI★ 1231
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
omdsh-dev/DSH-better-sidebar★ 1198
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
omdsh-dev/dsh-at-file★ 214
Codex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
huiliyi37/dsh-tianshu-tui★ 159
DeepSeek Harness 的终端 UI(TUI)。
Nagi-ovo/dsh-visualize★ 114
对话内生成式 UI:模型把交互式 HTML 卡片直接画进会话流,带流式预览与沙箱渲染。