Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@haichongck/dsh-ollama-memory

Latest version: v1.2.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: haichongck
0 Stars
0 Forks
3 Versions
331 Downloads
JavaScript Repo language

Scan summary

@haichongck/dsh-ollama-memory was last scanned on 27 Nov 2026 at version 1.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 1.2.0.
  • Downloads: 331 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.2.0 LATEST 27 Nov 2026 No rules fired
1.1.0 19 Nov 2026 No rules fired
0.0.0-stage 19 Nov 2026 Not shown

No rules fired in 1.2.0

Findings

Findings for v1.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

dsh-ollama-memory

中文 · English

中文

给 DeepSeek Harness(dsh)加跨会话长期记忆的插件,全程本地、不联网:

两层结构

层 载体 特点
核心记忆 ~/.dsh/ollama-memory/memory.md 称呼、偏好等必须每轮在场的事实,自动注入系统提示;有字节上限,超限拒写并告警
向量库 ~/.dsh/ollama-memory/memory.db(SQLite) 项目约定、决定、踩坑、进度;用本机 Ollama 嵌入模型向量化,按需语义检索

检索排序 = 余弦相似度 × 时间衰减(半衰期可配)× 类别权重(约束/决定权重更高)。

记忆治理

  • 结构化类别:note / constraint / decision / artifact / progress
  • 存入去重:与既有最高余弦 ≥ 阈值(默认 0.95)视为同一件事,不重复存
  • 作废取代:memory_supersede 用新条目取代旧条目,旧条目退出检索但可查
  • 容量治理:活跃条目超上限自动归档最旧的
  • 产物过时检测:记忆内容里的文件路径被改动/删除时,检索结果标注 stale

指令文件体积哨兵(v1.2)

盯住三份「每轮都注入」的指令文件,超预算只告警、不擅自改写(压缩需要语义判断,得由模型来做):

文件 默认上限
~/.dsh/AGENTS.md(全局) 4096 B
<工作区>/AGENTS.md 1024 B
核心记忆 memory.md 1024 B

平时系统提示里什么都不多出来(前缀稳定、不破坏缓存);一旦超限,每轮都会出现告警段,提示先蒸馏再写回。另有 memory_budget 工具可随时查字节数/余量,以及一个每 15 分钟复查的离线哨兵(状态变化时记一条日志)。

工具面:memory_save / memory_search / memory_list / memory_supersede / memory_delete / memory_core_get / memory_core_set / memory_budget

依赖
  • Ollama(本机服务,默认 http://127.0.0.1:11434)
  • 一个已拉取的嵌入模型,默认 qwen3-embedding:0.6b:ollama pull qwen3-embedding:0.6b
  • Node ≥ 22.5(内置 node:sqlite)
安装

dsh 0.2.1+:插件 → 发现里添加市场索引源后搜索 dsh-ollama-memory 安装;或手动:

dsh plugin --profile <p> add npm:dsh-ollama-memory
配置(安装后在插件卡片上直接改)
字段 默认 说明
ollamaUrl http://127.0.0.1:11434 Ollama 地址
embedModel qwen3-embedding:0.6b 嵌入模型(需已 pull)
dbPath / corePath ~/.dsh/ollama-memory/… 向量库 / 核心记忆路径
topN 5 检索默认条数
coreMaxBytes 1024 核心记忆字节上限
maxMemories 2000 活跃条目上限(超出归档最旧)
dedupThreshold 0.95 存入去重余弦阈值
coreWarnRatio 0.8 核心记忆水位告警线
timeDecayDays 180 检索时间衰减半衰期(天)
globalAgentsPath / globalAgentsMaxBytes ~/.dsh/AGENTS.md / 4096 全局指令文件路径与字节上限
workspaceAgentsPath / workspaceAgentsMaxBytes 留空则自动枚举工作区 / 1024 工作区指令文件路径与字节上限

Ollama 不可用时所有工具返回 {ok:false, error} 并说明原因,不影响会话本身。

MIT License.

English

Two-layer long-term memory for DeepSeek Harness, fully local: a small core memory file (always injected into the system prompt, byte-capped) plus a SQLite vector store embedded by a local Ollama model. Retrieval ranks by cosine × time-decay × kind-weight (constraint/decision weighted higher). Includes save-time dedup, supersede semantics (new entry retires the old one), capacity governance (archive oldest over limit), stale-file detection in memory contents, and an instruction-file budget sentinel that watches global/workspace AGENTS.md and the core memory against configurable byte caps and raises a per-turn warning only when one is exceeded. Requires Ollama with an embedding model (default qwen3-embedding:0.6b) and Node ≥ 22.5. All settings are editable on the plugin card after install. MIT licensed.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @haichongck/dsh-ollama-memory

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229