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 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案