Skip to content

Releases

v0.1.0 — 首个公开版本 / First public release

Choose a tag to compare

@Ferien-sein Ferien-sein released this 07 Oct 12:20

大管家 · dsh-dajiangjun v0.1.0

DeepSeek Harness 的会话接力插件 —— 当前会话写完一份七段交接档后调用 steward_relay,插件校验档 → 过闸门 → 建一个新会话 → 命名 【续】<主线名> → 投递接手指令 → 让新会话自己开工。

非官方项目:兼容 / 构建于 DeepSeek Harness 之上,与 DeepSeek 无隶属、背书或合作关系。「DeepSeek Harness」是 DeepSeek 的注册商标。


这个版本包含什么

工具 steward_relay({ docPath, mainline?, dryRun? }) —— dryRun 缺省 true,只预览、零真副作用
出厂状态 enabled: false、notify.enabled: false。装完什么都不做,真要用必须显式开两次
安全路径 权限两段断言 · 单飞锁原子创建 · 状态原子写 · 失败熔断 · 主动提醒带打扰预算
测试 64 / 64 全绿(node --test)
适用范围 仅 web / desktop 宿主;headless profile 缺 sessionController,插件会静默停在 pending

👉 完整说明见 README.md | README.en.md


纯由 AI 开发

这个插件的每一行都是 AI 写的——代码、测试、设计稿、评审、修复,全部由 AI 智能体产出;人类只给了一个初始指令和少量事实性澄清。

指标 数值
开发窗口 2026-10-06 → 2026-10-07(约 2 天)
提交数 56
参与会话 1 个主控会话 + 38 个子智能体
实现 / 测试 641 行 / 654 行
设计稿 + 计划 + 台账 2,721 行
施工记录(SDD) 21 个文件,约 240 KB → docs/sdd/

成本与 Token(v1 开发期):1,900 次模型调用 / 378,912,206 Token / ¥3.0220(CNY)

角色 会话数 调用 合计 Token 费用
主控(顶层会话) 20 613 176,602,843 ¥1.2241
子智能体 38 1,287 202,309,363 ¥1.7979
合计 58 1,900 378,912,206 ¥3.0220

38 个子智能体的逐条账目见 README §3.2。Token 的 98.2% 是缓存读——长会话每回合重读上下文,命中缓存后单价远低于新输入。


想法与思路来源

👉 kira905/ops-handoff-design

《长期运行的编码 Agent · 一份运维设计记录》(作者 kira905,CC BY-NC-SA 4.0)。本项目的机制直接由它的文档 09(会话接力)为主,02 §5.2/§5.6(审计介质与原子写契约)、03 R4/R9(四级熔断、自主动作分档)、07 R2/R3(锁后交付、放行=改表)为辅。

本项目是这些方法论的独立实现:已做逐字重叠检测,48 字以上的连续重合为 0。著作权与许可归原作者;要复用的是方法论本身请遵守上游许可。


怎么装

git clone https://github.com/Ferien-sein/dsh-dajiangjun
dsh plugin --profile <profile> add '<clone 下来的目录>'

已知限制(照实登记)

  • 只支持 web / desktop 宿主(headless 下静默失效)
  • v1 只做了「手动发起」:上下文软限触发的是提醒,不是自动接力
  • 端到端只在隔离 profile 实测过,那部分 Token 没进成本账本
  • 成本账本的逐会话明细不完整(README §3.4 已登记)
  • 未验证项与 22 条遗留见 裁决台账

License

MIT © 2026 Ferien-sein


English

dsh-dajiangjun v0.1.0

A session-relay plugin for DeepSeek Harness. The agent in the current session writes a seven-section handoff document and calls steward_relay; the plugin validates it, runs the gates, creates a new session, renames it 【续】<mainline>, delivers a takeover instruction — and the new session starts working on its own.

Not official. Built on DeepSeek Harness; not affiliated with, endorsed by, or sponsored by DeepSeek.

Highlights

  • One tool, steward_relay({ docPath, mainline?, dryRun? }) — dryRun defaults to true: preview only, zero real side effects.
  • Ships off: enabled: false, notify.enabled: false. Installing it does nothing until you opt in twice.
  • Safety paths: two-stage permission assertion, single-flight lock, atomic state writes, consecutive-failure breaker, interruption budget for proactive notices.
  • 64 / 64 tests green (node --test).
  • web / desktop hosts only — under a headless profile the plugin sits silently in pending.

Developed 100% by AI. Code, tests, design docs, reviews and fixes were all produced by AI agents; a human supplied one initial instruction and a few factual clarifications. 56 commits over ~2 days, 1 lead session + 38 subagents, 641 lines of implementation and 654 lines of tests. The full build record (21 files, ~240 KB) is published under docs/sdd/.

Cost and tokens for v1 development: 1,900 model calls / 378,912,206 tokens / CNY 3.0220 — of which 98.2% of tokens are cache reads. A per-subagent breakdown is in README §3.2.

Idea and line of thought come from kira905/ops-handoff-design (CC BY-NC-SA 4.0). This project is an independent implementation: a verbatim-overlap check found zero consecutive overlap of 48 characters or more. If you want to reuse the methodology itself, follow the upstream licence.

Known limitations: web/desktop only; v1 is manual-initiation (the context soft limit triggers a notice, not an automatic relay); end-to-end was only exercised in an isolated profile whose tokens are not in the ledger.

Licence: MIT.