@2jumpsina/dsh-context-guard
Context Guard
DSH context-pressure guard: when a session's next request would carry a dangerously large prompt, tell the user at turn end to write the handoff and start a new session. Consumes the official token-meter contextPressure projection; injects no prompt, registers no model-facing tool, so its context ta
The plugin will be installed here. Keep web if you are unsure.
npx -y @deepseek-ai/dsh plugin --profile web add github:2JumpSinA/dsh-context-guard#214bc603290d950849ee55bc4478ab4561dcb5a4Description
DSH context-pressure guard: when a session's next request would carry a dangerously large prompt, tell the user at turn end to write the handoff and start a new session. Consumes the official token-meter contextPressure projection; injects no prompt, registers no model-facing tool, so its context tax is zero. v0.3: at 45% occupancy the host half auto-drafts a machine-facts handover block into the session working directory; v0.2 added the host state route and an opt-in (default off) WeChat push; v0.3.2 onwards ships bilingual (zh/en, auto-detected per half) runtime copy; v0.3.3 was a docs-only release that fixed the install instructions once the package was live on npm; v0.3.4 fixes cross-platform absolute-path detection in resolveHandoverPath (a Windows-style path was treated as relative on Linux) and moves publishing to CI with npm trusted publishing (OIDC).
Compatibility and provenance
Context Guard is published as @2jumpsina/dsh-context-guard and currently resolves to version 0.3.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