- ホーム
- プラグイン
- セッションとメッセージ
- ctx-handoff-sentinel (dsh-plugin)
ctx-handoff-sentinel (dsh-plugin)
arid-g1ft/ctx-handoff-sentinel/dsh-plugin
Context handoff sentinel for DeepSeek Harness: three behavioral recall tests (constraints / changed files / next step) run after every compaction or on /guard check, cross-checked against the session log, returning a green/yellow/red verdict plus an optional handoff document.
インストール
dsh plugin --profile web add github:arid-g1ft/ctx-handoff-sentinelこのプラグインはリポジトリの dsh-plugin サブディレクトリにあります。
README
Context handoff sentinel
Decide whether a conversation can still prove itself — from behavior, not from turn count.
What it is · 是什么
Two forms of the same check:
| DeepSeek Harness plugin | 原生插件:哨兵条、/guard check、fork 子代理后台自检(压缩 / 上下文压力 / 步数触发),判红时主动问是否写交接单 |
| Portable Agent Skill | Claude Code / Codex 通用 SKILL.md + 两个零依赖 Python 脚本,用 git 工作区做证据核对 |
Both ask the same three questions and grade the answer the same way:
A. Can it recite the immovable constraints? B. Can it list the changed files with reasons? C. Can it give the next step and a runnable verify command?
The model's own verdict is the baseline. Evidence only overrides it on hard contradictions — a few omitted scratch files never turn a healthy conversation yellow.
Get it · 获取
Clone + one-command installer (macOS / Linux / Windows):
git clone https://github.com/Arid-G1FT/ctx-handoff-sentinel.git
cd ctx-handoff-sentinel
# macOS / Linux
./install.sh --both # or --claude / --codex; --force to overwrite
# Windows (double-click install.cmd also works)
install.cmd -Force
No git? Download the ZIP: GitHub → Code → Download ZIP → extract → run
install.sh / install.cmd from the extracted folder.
No installer needed: the skill is just files. Copy skill/ into
~/.claude/skills/ctx-guard (Claude Code) or ~/.codex/skills/ctx-guard
(Codex). No Node, no npm — Python 3.9+ is optional (only for the verdict
script; the skill falls back to applying the policy by hand).
DeepSeek Harness plugin:
dsh plugin --profile desktop add link:"$PWD/dsh-plugin"
Requires restarting the app afterwards.
Read more · 详细文档
- English README — full install, usage, verdict policy, tests
- 中文 README — 完整安装、用法、判定规则、测试
- Keeping up with DSH releases — 升级维护清单
- Publishing to the DSH plugin market — 上架插件市场的步骤
- Verdict policy — 判定阈值与取向
Layout · 目录
dsh-plugin/ DeepSeek Harness plugin (host + client + tests)
skill/ Portable Agent Skill (Claude Code / Codex)
docs/upgrading-dsh.md Maintenance contract for DSH releases
License
MIT