DeepSHPlugins
dsh-premise-guard 项目预览
GITHUB / COMMUNITY PROJECT

dsh-premise-guard

记忆与知识TypeScriptMIT

压缩后前提漂移守卫:摘要丢失关键字面锚点时注入一次性提醒。

1 StarsICCuse 更新时间 2026-08-14
访问 GitHub 仓库
dsh-premise-guard 项目预览

项目介绍

中文

压缩后前提漂移守卫:摘要丢失关键字面锚点时注入一次性提醒。

English

Post-compaction premise-drift guard: injects a one-shot notice when a compaction summary drops a critical literal anchor.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
ICCuse
仓库
ICCuse/dsh-premise-guard
GitHub Stars
1
Forks
0
开发语言
TypeScript
许可证
MIT
最近推送
2026-08-14
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

50/ 100
维护活跃
81
文档与实用信息
74
生态关注度
9
安装便捷信号
100
项目声明信号
85

关注度尚低(1);标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:ICCuse/dsh-premise-guard

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

@deepseek-ai/dsh-premise-guard

中文 | English

Post-compaction premise-drift guard. After a compaction/summary event, it extracts distinctive literal anchors (file paths, quoted literals, key=value pairs, error codes) from the shadowed span's text, checks whether the committed summary still contains them, and — when a critical anchor vanished — injects a one-shot notice into the next step telling the model what it may have lost and how to recover it from the append-only log.

Why

Recall-oriented designs (recallable-compaction, session-query tools) make shadowed content reachable when suspected. Nothing says "you just dropped a key fact". This guard turns the compaction summary into a checked handoff: the model learns the moment a path, value, or error string it was relying on is no longer in the summarized context.

How it works

HookRole
session/event (compaction/summary)Re-derives the shadowed span's text from shadowedSeqs (the log keeps every byte), extracts anchors, and compares against event.data.summary.
agent/pre-stepInjects one notice (plugin source) naming up to maxAnchors vanished anchors and the shadowed seq range, once per alarm; a new user prompt skips delivery.

Anchor extraction is deterministic and pure — no LLM calls, no new storage.

Config

FieldDefaultMeaning
maxAnchors5Vanished anchors named in one notice.
minAnchorLength6Anchors shorter than this are never critical.
maxNoticeChars400Notice text cap.

All three must be integers >= 1; misconfiguration throws at plugin load.

Install

Not on npm yet - install from this repository:

npm install github:ICCuse/dsh-premise-guard
# or: pnpm add github:ICCuse/dsh-premise-guard

Then mount the bundle (declared in package.json 'dsh.bundle'):

- id: dsh-premise-guard
  name: 'dsh-premise-guard'

Or, once published, 'dsh plugin --profile web add dsh-premise-guard'.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目