rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:linanatoly/dsh-chat-history-locator
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个为 DeepSeek Harness (DSH) Web 界面设计的插件:在聊天消息区左缘常驻一条竖向历史定位条,帮你快速回到聊天历史中的任意一条你发过的消息。
A plugin for the DeepSeek Harness (DSH) web UI: a persistent vertical marker rail on the left edge of the chat area, letting you jump back to any message you sent.
user / steering 类型)对应一个圆点。scale(1.5),任意位置大小一致)。requestAnimationFrame(空闲/后台页面会冻结 rAF);通过 ResizeObserver / MutationObserver / 原生 wheel(非 passive)跟踪变化;切换会话、加载更早、输入框变高都会自动重定位。有两种安装方式:
把插件作为一个 dsh.client 静态插件装进 DSH 的 web profile:
1. 把本仓库的 dsh-package/ 目录复制为:
<DSH_HOME>/profiles/web/node_modules/dsh-chat-history-locator/
(Windows 默认 DSH_HOME = %USERPROFILE%\.dsh)
2. 在 <DSH_HOME>/profiles/web/cordis.patch.yml 中追加:
- insert:
- id: chat-history-locator
name: 'dsh-chat-history-locator'
3. 重启 DeepSeek Harness 桌面端。定位条即对所有会话生效。
因为包和配置都位于 $DSH_HOME(用户数据目录),重新安装桌面端不会丢失插件。
在 DSH 会话内通过 cordis_define / cordis_run 工具加载(闭包符号 React / styles / host 仅在动态插件环境中存在):
1. 在 DSH 会话中让 Agent 执行:
cordis_define:
plugin: { kind: "new", idPrefix: "chloc" } (或任意 3–6 位小写字母前缀)
name: "Chat History Locator"
purpose: "聊天历史定位条"
code.client = plugin/client.js 的全部内容
2. cordis_run 激活返回的 pluginId / packageId,并在运行卡片上批准。
注意:动态插件只存在于当前进程,重启或重装后需要重新加载。
| 关注点 | 方案 |
|---|---|
| 数据来源 | Session 标准 kit 的 useSession:snapshot.nodes(legacy 兼容层)+ chat.nodes(把消息 seq 映射到 DOM 行的 data-chat-anchor-key) |
| 滚动容器 | 产品自带的 [data-conversation-scroll],跳转公式与官方 chatScroll 记忆逻辑同源,不与自动跟随底部冲突 |
| 测量时机 | useLayoutEffect 同步测量 + ResizeObserver(滚动区/输入区/消息流)+ MutationObserver(流元素挂载/卸载)+ scroll/resize 监听 |
| 滚轮浏览 | 原生 wheel 监听(passive: false + preventDefault),增量累积 60px/格 |
| 样式 | 插件自持 <style> 标签(ctx.effect 生命周期管理),CSS 变量驱动缩放(--dsh-loc-scale) |
dsh-package/ — 静态插件包(package.json + lib/index.js 空宿主半身 + lib/client.js 浏览器半身),持久安装用plugin/client.js — 动态插件源码(code.client 函数体),快速试用用CHANGELOG.md — 从 v1 到定稿的演进记录LICENSE — MITMIT © 2025
Built and polished through 11 iterations inside a DeepSeek Harness session — from a plain marker strip to a windowed, wheel-browsable, animated locator rail, then packaged as a persistent static plugin.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。