rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:mar1259/dsh-plugin-codex-annotate
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness 的 Web UI 加一个 Codex 风格的「划词追问」:选中助手回复里的任意文字,右键选择 在此回答,写下你的问题或补充;可以连续攒下多条注释,最后一次性发出。发出的消息自带精确出处(消息 id、轮次、段号、小节、字符区间或代码行号)和原文,并在气泡里折叠成一条 📎 N 条注释 的附件条。
面向 DSH 0.2.1-rc.2 的 Web 客户端构建,依赖若干尚未承诺稳定的 DOM / React 内部细节(见兼容性)。
📎 N 条注释,点开可逐条删除或清空,最后一次性发送。📎 N 条注释 ▾,点击展开原文,展开后仍可正常划选复制。client.js 就是浏览器直接加载的模块要求 DSH 已安装且 dsh 在 PATH 中。从 GitHub 直接安装:
dsh plugin --profile desktop add github:mar1259/dsh-plugin-codex-annotate
desktop 是桌面版的 profile 名;Web 版通常用 web,换成你实际启动的 profile 即可。
固定到某个 commit,避免仓库后续改动影响现有环境:
dsh plugin --profile desktop add github:mar1259/dsh-plugin-codex-annotate#<commit-sha>
本地 clone 安装:
git clone https://github.com/mar1259/dsh-plugin-codex-annotate.git
dsh plugin --profile desktop add ./dsh-plugin-codex-annotate
卸载:
dsh plugin --profile desktop remove dsh-plugin-codex-annotate
本仓库是纯 JS,没有 prepare / build 脚本,git 安装不需要 pnpm 的 allowBuilds 许可。
安装或更新客户端 bundle 后,刷新页面(或重启 DSH)才会加载新的 JS 代际。
❝ 在此回答。📎 N 条注释 胶囊。📎 N 条注释 ▾,点击展开。段落选区:
> **回复引用** · 助手消息 #4f2a1c · 第 3 轮 · 第 2 段「方案 A」· 字符 12–58
> 「建议把鉴权放到网关层,避免每个服务重复实现。」
那网关自己挂了怎么办?
代码选区:
> **回复引用** · 助手消息 #4f2a1c · 第 3 轮 · 代码块 ts · 第 12–18 行
> ```
> for (const x of xs) { ... }
> ```
多条注释会按顺序拼接在同一个消息里,每条一个引用块 + 一段回复。
| 部件 | 挂载点 | 作用 |
|---|---|---|
| 右键菜单 + 引用编辑器 + 注释列表 | shell.overlay |
全帧浮层:拦截助手选区上的 contextmenu,渲染菜单/编辑器/列表 |
| 待发送胶囊 | conversation.input.left |
输入框工具行左侧,显示 📎 N 条注释 |
| 发送桥 | conversation.input.overlay |
从会话作用域拿到 inputActions,把文本写入输入框并提交 |
| 气泡折叠 | 注入 CSS + DOM 标记 | 给用户气泡内的引用 <blockquote> 打标记,折叠成附件条 |
sessionId / messageId / 轮次,读不到时退回 data-chat-flow-kind 属性。insertText(追加到草稿末尾)或 setDraft,随后 submit(),因此排队、steer、附件等行为与手动发送一致。<blockquote> 折叠只是视觉呈现。__reactFiber$*、data-chat-flow-kind / data-chat-turn、用户消息里 <blockquote> 的渲染方式。升级 DSH 后可能需要适配。插件不做任何网络请求,不收集遥测,也不读写工作区文件。引用的原文与你的回复会作为普通消息文本,经 DSH 原有的发送链路交给模型。
仓库即包目录,没有构建产物:
client.js # 浏览器半边:菜单、编辑器、注释列表、气泡折叠
index.js # Host 半边:空 apply,仅用于打包
cordis.patch.yml # Bundle 补丁:插入一行 codex-annotate
package.json # dsh.bundle / dsh.client 清单
locale/{zh,en}.json# 插件管理器显示的标题与描述
icon.svg # 插件图标
语法自检:
node --check client.js
node --check index.js
提交记录中使用 Co-authored-by: DeepSeek Harness Agent <agent@dsh.invalid> 标注 AI 协作;这是保留域名的占位邮箱,不对应任何公开账号。
MIT © 2026 mar1259
Codex-style selection annotations for the DeepSeek Harness Web UI. Select text in an assistant reply, right-click, choose Reply here, write your note, and confirm — accumulate several notes as a 📎 N notes chip inside the composer tool row, then send them all at once. The outgoing message quotes the exact location (message id, turn, block, section, character range or code lines) and is folded into an expandable attachment row inside the chat bubble.
Install:
dsh plugin --profile desktop add github:mar1259/dsh-plugin-codex-annotate
Tested against DSH 0.2.1-rc.2. The plugin relies on client internals (__reactFiber$, data-chat-flow-kind, rendered blockquotes), so DSH upgrades may require adaptation. No network access, no telemetry. MIT licensed.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。