deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:CJL-1995/dsh-session-health
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness 插件:「会话健康度提醒」(Session Health Monitor)。
在右下角提供一个可拖动的悬浮按钮,点击后在按钮上方弹出当前会话的健康度报告,帮助你判断是否需要写 handoff、重开新会话。
![]() 健康(90%):只展示各项指标 |
![]() 亚健康(45%):额外出现「生成 handoff 并重开会话」按钮 |
点击按钮后,总结 prompt 会被送入当前会话,由 Agent 生成 handoff 文件并回报落盘路径:
健康度 = 100 − 上下文占用扣分(40%) − 压缩次数扣分(30%) − 缓存命中率扣分(30%)
本插件是一个 DSH bundle(dsh.bundle.patch + dsh.client),通过 dsh plugin 安装到 profile:
# 从 GitHub 安装(发布后)
dsh plugin --profile web add github:CJL-1995/dsh-session-health
# 或从本地目录安装
dsh plugin --profile web add file:/path/to/dsh-session-health
安装后重启对应的 web profile(重启 dsh web 进程),右下角即出现「会话健康度提醒」按钮。
index.js):通过 sessionProjections 注册 sessionHealth projection,把会话事件增量折叠成健康度报告(纯 fold,状态为 plain JSON),由框架自动同步给客户端。client.js,window.__ModuleLoader__ 加载):注册到 shell.overlay,从 useSessions().byId[current].projectionValues.sessionHealth 响应式读取报告并渲染。sessions.binding(id).session.prompt([{type:'text', text}], 'queue') 发送 handoff prompt。index.js — Host 半边(projection 单元)client.js — Client 半边(ModuleLoader bundle)cordis.patch.yml — bundle patch 层(插入插件行)package.json — bundle 元数据(dsh.bundle.patch / dsh.client)assets/ — 文档配图README.md — 本文档MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。