dsh-maintainer-doc-guard
Maintainer Doc Guard
Keeps a long agent turn answerable to the user's actual request: a standing maintainer-document reminder, two pre-execute gates (read a same-basename precedent before editing infrastructure; say what a side-effecting step is for), an objective anchor that quotes the user's latest instruction plus an
The plugin will be installed here. Keep web if you are unsure.
npx -y @deepseek-ai/dsh plugin --profile web add github:huxin7735-collab/dsh-maintainer-doc-guard#e60847c502de480ffcb0890b1294dcd7e0b43985Description
Keeps a long agent turn answerable to the user's actual request: a standing maintainer-document reminder, two pre-execute gates (read a same-basename precedent before editing infrastructure; say what a side-effecting step is for), an objective anchor that quotes the user's latest instruction plus an explicit precedence rule, and a nudge stage that corrects before it blocks. Details: (1) A standing system-prompt section that tells the model to read the workspace maintainer documents (plan.md / conventions.md / stack.md / state.md / maintainer/README.md) before every operation, so small-model context compaction cannot erase long-term project memory. (2) A `tools/pre-execute` precedent gate that denies a write/edit inside a guarded infrastructure area until a working same-basename precedent has been read. (3) A `tools/pre-execute` intent gate that polices the turn's side-effecting calls when the model never said what the step is for. (4) An OBJECTIVE ANCHOR: the user's latest instruction, quoted verbatim in a second prompt section with an explicit precedence rule (user's latest instruction > your own last stated plan > a lead you found yourself), so a long turn cannot silently redefine its own task. (5) A NUDGE stage that corrects before it blocks — the first unexplained action only injects a reminder the model reads at its next step, a drift reminder fires once per long turn, and only a repeated offence is denied. Plus a right-sidebar tab that views and edits those documents, and ten runtime knobs exposed in the harness settings page (设置 → 插件 → 插件配置).
Compatibility and provenance
Maintainer Doc Guard is published as dsh-maintainer-doc-guard and currently resolves to version 0.5.4. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.
- DSH compatibility
- *
- Runtime surfaces
- web
- Release source
- github
- Registry updated