rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jiangdongceng/dsh-context-handoff
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
把老对话的设定、规则、背景和当前状态整理成 AI 摘要,在新对话中载入这些背景。
不复制旧对话正文,不自动继续旧任务。新对话只“知道设定”,然后等你下一条指令。
DSH 的上下文窗口会被长对话慢慢吃满。/compact 是在原会话里重写历史,fork 是复制整段历史。这个插件走第三条路:
适合:角色/世界观设定、长期项目背景、固定工作规则、跨会话的产品或技术上下文。
/compact |
fork | 本插件 | |
|---|---|---|---|
| 旧会话 | 原地压缩 | 保留 | 原样保留 |
| 新会话内容 | 同一会话 | 整段历史 | 一份 AI 生成的背景摘要 |
| 是否自动继续任务 | 是 | 是 | 否,等用户下一条指令 |
这是一个普通 DSH Bundle,纯 ESM,无构建步骤。
克隆仓库:
git clone https://github.com/jiangdongceng/dsh-context-handoff.git
在 DSH 中打开 Settings → Plugins → Add plugin,选择克隆下来的目录。
启用 @local/dsh-context-handoff。
也可以把目录链接到当前 profile 的 node_modules,再按 DSH 的本地 bundle 方式加入 profile。
旧对话保持不变。
## Premise and purpose
## Established facts and setting
## Rules, constraints, and preferences
## People, characters, and terminology
## Files, tools, and technical setup
## Decisions already made
## Current state
## Open questions
没有 Next steps。模型写了也会被移除。
<DSH_HOME>/context-handoff;如果 D:\dsh\context-handoff 已存在,会优先使用它。dataDir 或环境变量 DSH_CONTEXT_HANDOFF_DIR 指定其他绝对路径。briefs.json;每次写入前会把上一版留成 briefs.json.bak。插件不写入 DSH 核心包。0.2.2-rc.3 的 Desktop / Web 界面验证 Bundle 加载、Host 路由和 Slot 注册。Config schema;dataDir 通过 bundle 配置传入。node test/handoff.test.mjs
测试覆盖摘要分段、输出续写、空文本拆分、设定摘要清洗、存储 CRUD、Host 服务和认证路由处理。
这些项目提供了“先总结、再开新会话”的思路;本插件是为 DSH 0.2.2 重新实现的、以设定交接为目标的版本,没有直接复制代码:
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。