跳到主要内容
Plugin

dsh-memory-guard

zeroed-07/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 包安装 · 安装无需配置

README 解析
shell
dsh plugin --profile desktop add dsh-memory-guard
shell
dsh plugin --profile web add dsh-memory-guard
shell
dsh plugin --profile desktop remove dsh-memory-guard

安全能力

静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」

  • 写入文件
  • 读取文件
  • 读取环境变量

未发现已知红线(明文传输、安装期执行代码、凭据外传等)。

能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。

为什么是这个分数

近 8 天内有提交;README 给出了可直接复制的安装命令;装完即可用,无需额外配置;近月 npm 下载 1066 次,star 不多但真在被使用。

维护活跃
86
实用度
66
生态热度
61
上手便捷
100
信号质量
100
数据置信度
85%
评分怎么算