DSH Plugins Marketplace

DSH Plugins

Plugins

/

Memory & Context

/

dsh-premise-guard

d

dsh-premise-guard

Manifest valid

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

hasBundlePatch

@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'.

Comments

Loading…

Similar plugins

dsh-compaction-guard

by zhengqiuyang

Compaction integrity for DeepSeek Harness — constraints from the compacted range are verified against the summary; what the agent was told to remember and silently forgot is reported loudly

Security & AuditManifest valid

★ 0

MIT

JavaScript

Oct 19, 2026

dsh plugin --profile web add dsh-compaction-guard

by kkwings

该仓库暂未提供项目说明。

Memory & ContextSessions & MessagesManifest valid

★ 1

MIT

JavaScript

Oct 12, 2026

dsh plugin --profile web add dsh-super-memory

by DeLightor

Dependency-topology guard: pre-install conflict prediction and post-install detection of duplicate @deepseek-ai/dsh-* copies, version drift, and vendored core services that cause Symbol-key crashes li

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Aug 16, 2026

dsh plugin --profile web add dsh-depguard

by huohua-dev

A lightweight compaction policy plugin for DeepSeek Harness: capped output reservation, useful-range selection, and no-progress retry guards.

Manifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-compaction-policy

Minimal-anchored agent preset: request #1 keeps the real bash + str_replace_editor pair with auto-injected context stripped, then promotion unlocks the full Standard catalog and posts a one-shot backg

Development & InfrastructureManifest valid

★ 0

dsh plugin --profile web add dsh-preset-anchored-standard

Commitment write-gate: operator-authored rules enforced before a tool call runs — a deterministic guard tier plus an LLM-judge tier, fail-closed by default, every block written to a contradictions log

Security & AuditDevelopment & InfrastructureManifest valid

★ 0

↓ 54/wk

dsh plugin --profile web add dsh-write-gate