realpkuasule/dsh-session-handoff

realpkuasule★ 0JavaScript最后同步: 2026-08-17

在 GitHub 打开

dsh-session-handoff

README 摘要

dsh-session-handoff DSH 宿主插件(薄适配层) :观测 → 阈值触发 → append-only 建议注入 → approval 门 → 调用 harness-automation CLI。 设计依据: docs/designs/session-handoff.md (v0.3,§5/§8/§9-P2);宿主能力查证: docs/spike-findings.md 。 P1 实况校准: docs/designs/p1-delivered.md 。验收记录: docs/acceptance-p2.md 。 English 中文 仓库: github.com/realpkuasule/dsh-session-handoff (镜像: github.com/xiaozhiaixue/dsh-session-handoff )。 本仓库带 dsh-plugin topic,供 DeepSeek Harness 插件生态发现。 边界(违反即返工) - 只做 观测、判定、触发 。交接执行一律 spawn 全局 harness-automation session handoff ,解析其 JSON 输出( ok 字段), 绝不复制任何交接逻辑 。 - 注入只允许 append-only ( agent.inject() → next-step inbox → 历史尾部追加,前缀不变)、 确定性模板渲染 (无时间戳/随机数)、 状态不变时零追加 (指纹去重,见下文)。 - approval 只在 open turn 内 请求;无后台定时器;不单方面终止会话。 - 阈值 只读 策略文件(项目 .harness/session-workflow.yaml → 包内默认),插件绝不改写;CLI 缺口只记录、不兜底。 装配(web profile) 标准方式(dsh plugin / bundle 机制) :本包声明了 dsh.bundle.patch ( cordis.patch.yml ,按包名挂载 dsh-session-handoff 行)与插件清单 dsh.plugin.json 。安装即挂载: 本机当前即此形态: /.dsh/profiles/web/package.json 的 link: 依赖 + dsh.profile.bundles 条目 ( pnpm install 后由本包 cordis.patch.yml 提供挂载行)。 校验: dsh --profile web --dump-config (确认 dsh-session-handoff 行出现在组成树中);重启 web 生效 ( python3 /DSH/dsh-sidechat/restart-dsh-web.py [delay-s] ,detached 安全重启)。 装配证据…

在 GitHub 查看完整 README →
工具/开发dsh-pluginagent

分类