dsh-memory-guard
面向 DeepSeek Harness 的本地内存守护插件:监控 host 堆与会话日志体积、拦截超大工具参数,并提供默认 dry-run 的会话瘦身命令。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 否
- 近月下载
- 1,066
- 最近推送
- 8 天前更新
项目说明
From README
dsh-memory-guard Host memory and session-log guard for DeepSeek Harness ( dsh ).It exists because a single DSH session log can grow far past the size the Host can parse at once.A real case: a 7,913-line session reached 954 MB decompressed / 177 MB on disk , of which 98.
5% was duplicated PTC dispatch payloads, and opening it exhausted the Host heap.This plugin watches for that before it happens, blocks the worst single calls, and can shrink existing logs offline.What it does - Heap monitoring — samples process.memoryUsage() and v8.
getHeapStatistics() every 3 s (used / limit / ratio / RSS).- Session-log accounting — scans $DSH HOME/sessions every 15 s, reports total bytes, file count, and the largest sessions.
- Runtime guard — synchronously rejects any tool call whose arguments are estimated above maxToolArgBytes (default 2 MiB ), with a message telling the model to chunk the write o
Original description
Local-only memory guard for DeepSeek Harness: heap and session-log monitoring, oversized tool-argument interception, dry-run session vacuum.
安装方式
npm 包安装 · 安装无需配置
dsh plugin --profile desktop add dsh-memory-guarddsh plugin --profile web add dsh-memory-guarddsh plugin --profile desktop remove dsh-memory-guard安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 写入文件
- 读取文件
- 读取环境变量
未发现已知红线(明文传输、安装期执行代码、凭据外传等)。
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 8 天内有提交;README 给出了可直接复制的安装命令;装完即可用,无需额外配置;近月 npm 下载 1066 次,star 不多但真在被使用。
- 维护活跃
- 86
- 实用度
- 66
- 生态热度
- 61
- 上手便捷
- 100
- 信号质量
- 100
- 数据置信度
- 85%
相关插件
EverOS
EverMind-AI/EverOS
One portable memory layer for every AI agent: local-first, Markdown-native, user-owned, and self-evolving across apps, tools, and workflows.
OpenViking
volcengine/OpenViking
面向 DeepSeek Harness 的 OpenViking 记忆与上下文插件:pre-step 自动召回与画像注入、会话捕获、`viking://` URI 防护,以及对接 OpenViking 服务端的 recall/write 记忆工具。
MemOS
MemTensor/MemOS
DeepSeek Harness 本地记忆插件:分层 L1/L2/L3 记忆,自动沉淀与手动 memos_* 检索工具并存,内置记忆浏览器。