DeepSeek Harness 插件

dsh-plugin-auto-blame

Auto-blame: when a turn closes, asks an LLM for three cynical follow-up prompts and shows them as click-to-send bubbles above the composer. Host-gated master toggle in the settings page.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
HuanLinOTO/dsh-plugin-auto-blame
最近更新
2026年8月15日
分类
趣味扩展
GitHub stars
10
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

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

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

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/HuanLinOTO/dsh-plugin-auto-blame
插件名:dsh-plugin-auto-blame
作者:HuanLinOTO

检查来源文件

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

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

![dshfind](https://dshfind.com/zh/plugins/huanlinoto/dsh-plugin-auto-blame?ref=badge)

> 📌 本插件已收录于 dshfind 插件超市,点击上方徽章直达主页。

dsh-auto-blame

![npm version](https://www.npmjs.com/package/@huanlin/dsh-plugin-auto-blame)

![preview](docs/preview.webp)

当模型完成当前轮次对话后,将最后 3 条消息发送给 LLM,生成 3 条批判性跟进请求,显示在输入框上方作为可选项,点击直接发送。生成期间"领导视野"标签带 DeepSeek 蓝色流光扫过(同 Deep diving... 特效),建议到达后气泡依次淡入。

工作原理

[host] agent/turn-stopping 触发
  → fire-and-forget 调 ctx.llm.stream() 生成 3 条毒舌跟进
  → session.append('auto-blame/suggestions', { turn, suggestions })
  → projection unit 折叠该事件 → session/projection 推送帧
  ↓
[client] useProjection('autoBlame') 收到值
  → conversation.composer.dock 渲染 3 个气泡
  → 点击 → inputActions.setDraft(text) + submit()
  • fire-and-forget:LLM 调用不阻塞 turn 关闭,建议晚几百 ms 出现
  • 非 surface 事件auto-blame/suggestions 不进入 model-visible 历史,不干扰 agent loop
  • 失败静默:LLM 失败 / 解析失败 → 不 append 事件,不显示气泡
  • 点击发送:走 InputBar 同一路径(inputActions.setDraft + submit
  • 下一轮清空:新 turn 开始时 projection 归零,旧气泡立即消失

开发

pnpm run typecheck    # tsc --noEmit
pnpm test             # vitest run(28 个单测)
pnpm run build        # tsc + tsdown → lib/index.js, lib/invariant.js, lib/client.js
pnpm run bundle:client # 只构建 client bundle

依赖链接(sibling dsh checkout)

本插件依赖 @deepseek-ai/dsh-* workspace 包。开发时需要手动 Junction 链接到 sibling dsh checkout:

$dest = 'node_modules\@deepseek-ai'
New-Item -ItemType Directory -Path $dest -Force
# 参考 dsh-spur 的 node_modules 结构创建 Junction

或从 dsh-spur 复制 node_modules(含 typescript / tsdown / vitest / @types/* / cordis / @deepseek-ai/dsh-client-*),再补建 dsh-agent / dsh-llm / dsh-session / dsh-session-projection 的 Junction。

运行

# 从 npm 安装(推荐)
dsh plugin --profile web add @huanlin/dsh-plugin-auto-blame

# 本地开发(热更新)
dsh plugin --profile web add "link:D:/Projects/deepseek-harness/dsh-auto-blame"

安装后重启 dsh web + 浏览器硬刷新(Ctrl+Shift+R)。

检查

  • [x] 零源码 patch
  • [x] package.json 声明 dsh.bundle.patch
  • [x] cordis.patch.yml insert 行 id/name/config 齐全
  • [x] fileslib/ + cordis.patch.yml
  • [x] peerDependencies 含 cordis + @deepseek-ai/*
  • [x] typecheck / test / build script 齐全
  • [x] 预构建策略(lib/ 入库,无 prepare 脚本)
  • [x] 不导出 default
  • [x] 测试分层(Unit)