返回目录
模型与 MCP 插件

ctx-handoff-sentinel

Arid-G1FT/ctx-handoff-sentinel

Behavioral context self-check before a handoff: DeepSeek Harness plugin + portable Agent Skill for Claude Code / Codex.

Stars
1
Forks
0
Issues
0
更新
14 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:Arid-G1FT/ctx-handoff-sentinel

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

Context handoff sentinel

Decide whether a conversation can still prove itself — from behavior, not from turn count.

English · 中文

已在 DSH 插件市场上架 · 市场页面 · 分类 session


安装(DSH 插件市场) · Install from the market

插件已上架 awesome-dsh-plugin(DSH 市场的数据源):

# 把 desktop 换成你自己的 profile 名
dsh plugin --profile desktop add github:Arid-G1FT/ctx-handoff-sentinel#path:/dsh-plugin

或者打开 DSH → 插件 → 发现,搜索 ctx-handoff-sentinel / 「交接哨兵」一键安装。装完完全重启 DSH。


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 · 详细文档

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

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。