dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
一个 DeepSeek Harness Web 插件:把工具卡片前面的简单图标换成 emoji,同时保留原工具卡片的全部内容。
| 工具 | Emoji |
|---|---|
think(推理行) | 🤔 |
read / web_fetch / grep / glob / web_search | 🧐 |
pwsh | 👨💻 |
edit / write / str_replace_editor | ☝️🤓 |
| 以上任一卡片出错(error 状态) | 😫 |
# 本地 checkout
dsh plugin --profile web add file:./dsh-tool-emoji
# 或 GitHub
dsh plugin --profile web add git+https://github.com/LWLAymh/dsh-tool-emoji.git
然后重启 Web profile:
dsh --profile web
插件不会热更新到已运行的 Web 进程。
卸载:
dsh plugin --profile web remove dsh-tool-emoji
tool.call.toolview,因此不会接管原始工具卡片。::before 显示 emoji;在 DSH 设置页打开 Tool emoji,可以不改代码地自定义每个图标:
localStorage,单张限 1MB,不接受 SVG)。设置会立即生效,刷新后仍然保留。
如果你同时安装了 dsh-edit-guardian,它会对 edit / str_replace_editor / pwsh 使用自定义工具行(.dshg_row),而不是官方 DisclosureRow。
为了让 emoji 也覆盖这些自定义行,需要:
data-tool 属性的 dsh-edit-guardian(本地开发版已支持);dsh-edit-guardian 的方式重新安装它,并重新安装本插件;如果 dsh-edit-guardian 没有向 .dshg_row 暴露 data-tool,edit / pwsh 的 emoji 不会生效。
修改 lib/client.js 里的 CSS 即可增删工具和 emoji。
例如给 bash 也加一个:
[data-variant="bash"] > span:first-child > span:first-child svg:not([data-state]) { display:none; }
[data-variant="bash"] > span:first-child::before { content:"💻"; font-size:14px; line-height:18px; }
data-tool="edit" / data-tool="str_replace_editor" / data-tool="pwsh"data-variant="think" / data-variant="search" / data-variant="read"[data-disclosure-row] > span:first-childMIT