Scan your whole stack
Are you using @haichongck/dsh-ollama-memory?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.0
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
中文 · English
给 DeepSeek Harness(dsh)加跨会话长期记忆的插件,全程本地、不联网:
两层结构
| 层 | 载体 | 特点 |
|---|---|---|
| 核心记忆 | ~/.dsh/ollama-memory/memory.md |
称呼、偏好等必须每轮在场的事实,自动注入系统提示;有字节上限,超限拒写并告警 |
| 向量库 | ~/.dsh/ollama-memory/memory.db(SQLite) |
项目约定、决定、踩坑、进度;用本机 Ollama 嵌入模型向量化,按需语义检索 |
检索排序 = 余弦相似度 × 时间衰减(半衰期可配)× 类别权重(约束/决定权重更高)。
记忆治理
note / constraint / decision / artifact / progressmemory_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
http://127.0.0.1:11434)qwen3-embedding:0.6b:ollama pull qwen3-embedding:0.6bnode: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.
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.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.