DeepSeek Harness 插件

Rabbit-bot-No-002/dsh-chat-avatar

Star 数 ★ 1 下载量(近 30 天) 164 分类 UI 增强 收录于 2026-09-11 npm dsh-chat-avatar

在每轮 AI 回复左侧与你的每条输入右侧各显示一个头像,可上传自己的图片并设置尺寸与圆形/方形头像框。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-chat-avatar

# Release 预构建包

dsh plugin --profile web add "https://github.com/Rabbit-bot-No-002/dsh-chat-avatar/releases/latest/download/dsh-chat-avatar.tgz"

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:Rabbit-bot-No-002/dsh-chat-avatar

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWEDERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yamlallowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

DeepSeek Harnessdsh)的 Web 界面加头像:每轮 AI 回复左侧一个、你的每条输入右侧一个,两侧各自可自定义。

An avatar plugin for the DeepSeek Harness Web UI: one avatar on the left of each turn's final AI reply, one on the right of each of your messages.

圆形头像框

方形头像框

功能 / Features

  • AI 头像 —— 每轮最终 AI 回复左侧,贴该条消息第一行的左上角。一轮只有一个:轮次开始时挂在第一条助手步骤上,出现更靠后的步骤就移过去,整轮结束停在最终回答上。
  • 用户头像 —— 每条输入(含运行期追问)右侧,贴第一行右上角。
  • 两侧各自可配:显示 / 隐藏、上传图片(PNG / JPG / WebP / GIF,动态图会动,≤ 20MB)、尺寸 16–128 px、头像框形状(圆形 / 方形,默认圆形)。
  • 没上传就不显示:不会出现空头像框,也没有内置默认图。
  • 设置入口:设置 → 左侧边栏 →「头像」
  • 不依赖任何 @deepseek-ai/* 包(客户端只用 slots,宿主只用 webServer),没有 peer 版本耦合问题。

安装 / Install

# 从 npm 安装(推荐:包已预构建,免 allowBuilds 授权)
dsh plugin --profile web add dsh-chat-avatar

# 从 GitHub 安装(源码安装,会本地跑一次构建)
dsh plugin --profile web add github:Rabbit-bot-No-002/dsh-chat-avatar

# 从本地目录
dsh plugin --profile web add link:/path/to/dsh-chat-avatar

npm 包页面:https://www.npmjs.com/package/dsh-chat-avatar

装好后刷新页面;如果是从 GitHub 源码安装且 pnpm 拦了构建脚本,按提示把该包加入 profile 的 allowBuilds 再重跑安装。

License

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。