dsh-open-guard: DeepSeek Harness Session Loading Memory Admission Control
2026-11-17
DeepSeek Harness plugin
DeepSeek
DSH
dsh-open-guard
model inference
Memory Admission Control
dsh-open-guard is a DeepSeek Harness host plugin maintained by deepseekmaid. It estimates heap consumption for cold session loading at the `sessionQuery.observeSession` entry point, and enforces admission control—allow, queue, or reject—based on current usage and reserved headroom, preventing V8 heap exhaustion caused by concurrent loading of multiple sessions. It supports GitHub installation for both the desktop client and dsh web, offers configurable parameters such as `limitMB`, `reserveMB`, and `maxWaitMs`, and emits decision logs to `open-guard.jsonl`. It is designed for self-hosted deployments that frequently open large historical sessions, and does not cover renderer-process memory or the full-database search index path.
Read More