dsh-prolong-memory avatar

dsh-prolong-memory

PRO-LONG-style programmatic memory plugin for DeepSeek Harness (DSH): appends every durable session event to a per-workspace log.txt the agent retrieves with grep/python. Built-in write probe, /prolong status command, permission-deny counter, and a reproducible compaction A/B experiment.

Plugin界面美化开发知识管理存储记忆文件
验证
L2 · 结构化
安全
中风险
健康
活跃
信任

功能介绍AI

Appends session events to a per-workspace log.txt and retrieves them with grep/python for persistent memory.

  • Appends every durable session event to log.txt
  • Retrieves history via grep or python
  • Includes write probe and /prolong status command

由 AI 基于 README 自动生成,仅供参考。

安装

dsh plugin --profile web add github:ycr40/dsh-prolong-memory

Install method: GitHub · 尚未在容器中测试 (L3+)

兼容性

DSH VersionStatus
not statedDeclared — not tested

要求

  • • Node.js: not stated
  • • DSH: declared "not stated"
  • • External credentials: none detected

安全报告

自动静态扫描,非人工审核。

DSH.SO AUDIT需注意40d808
自动审查 · 每日更新
需注意

非阻断类别中的严重发现(动态执行、shell 执行、安装脚本、混淆)。在 CLI/终端插件中常见,但值得审查。

2 严重·1 警告·3 提示·15 扫描文件数
code-exec ×1shell ×1
插件版本0.1.0dsh 清单
扫描版本40d8085b08d02026-08-20
当前版本40d8085b08d0

扫描结果仅对「扫描版本」有效。扫描后 7 天内的新提交不会触发 outdated,评级仍然有效;超过 7 天未重新扫描才显示 outdated。

免责声明:这是自动化静态分析,不构成安全保证。安装前请自行审查。

第二意见扫描(vet · 并行评估期)
vet:干净

vet 判定:vet:干净 · score 100

  • R3 · info [certain] — 只读 process 成员(能力触达面):process.execPath
  • R3 · info [certain] — 裸 process 引用(可能为 typeof 探测)
  • R3 · info [certain] (downgraded) — 直接访问 process.exit(Node 能力逃逸通道)
  • R6 · info [heuristic] — 字符串特征:child_process 引用
  • R9 · info [heuristic] — 无出口常驻循环(含 await,可能是合法服务循环;交由 LLM 审计复核上下文)

vet 仅作参考,不改变 dsh 的四档等级。

风险:中风险2 critical · 1 warning · 3 info

• 静态启发式扫描:已完成(15 个文件)

• 依赖漏洞:需深度审计(L3+)

• 权限沙箱:需运行时测试(L4+)

高危发现 · 3 / 3

  • critical使用 child_process 子进程模块(Node.js)experiments/compaction-ab/probe-command.mjs:2
    import { spawn, execSync } from 'node:child_process'
  • critical执行 shell 命令(exec / execSync)experiments/compaction-ab/probe-command.mjs:14
    const kill = () => { try { execSync(`taskkill /pid ${child.pid} /T /F`, { stdio: 'ignore' }) } catch {} }
  • warning向裸 IP 地址发起 HTTP 请求experiments/compaction-ab/probe-command.mjs:11
    const base = `http://127.0.0.1:${port}`

静态启发式扫描,可能误报——使用前请自行审查源码。

活跃度

最近提交 2026-08-20 · 活跃度:活跃

• 仓库创建: 2026-08-20

• 星标: ★ 2 · 复刻: 0

• 健康度: 活跃 — 近 30 天有提交

来源

GitHub: github.com/ycr40/dsh-prolong-memory

这页有帮助吗?