DeepSeek Harness 插件

dsh-llmwiki

Local Markdown wiki as long-term memory for DeepSeek Harness — ported from llmwiki(英文原文)

跳到安装方式

来源信息

GitHub 仓库
chancelu/dsh-llmwiki
最近更新
2026年8月15日
分类
文档与渲染
GitHub stars
2
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/chancelu/dsh-llmwiki
插件名:dsh-llmwiki
作者:chancelu

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-llmwiki

> Context Window = RAM, Local Wiki = Disk — long-term memory for DeepSeek Harness, powered by your local Markdown vault.

TypeScript port of llmwiki (Python: llmwiki-harness on PyPI), packaged as a native dsh plugin.

What it does

Mechanismdsh extension point
Inject relevant wiki knowledge into the same turn's model requestsession/event (agent/inbox/spliced, pre-assembly live event) → ctx.systemPrompt.context()
Teach the model about memoryctx.systemPrompt.section()
memory_search — model recalls prior sessions / curated notesctx.tools.register()
memory_save — model persists durable insightsctx.tools.register()
Auto-capture every turn to chronicle/daily/YYYY-MM-DD.mdsession/event (turn/end)

Retrieval: keyword + wikilink graph + temporal strategies fused with RRF (Reciprocal Rank Fusion), assembled under a token budget, with an LRU + TTL cache. Zero runtime dependencies beyond Node.js.

Vault layout (created automatically)

my-vault/
├── raw/               # Layer 1: session dumps
├── chronicle/daily/   # Layer 2: auto-captured daily logs
├── entities/          # Layer 3: compiled knowledge
├── concepts/
├── comparisons/
├── projects/
└── queries/

Open it with Obsidian, curate Layer-3 notes with [[wikilinks]] — the graph strategy follows them.

Install

Requires Node.js ≥ 22 (same as dsh itself) and a working dsh CLI (npm install -g @deepseek-ai/dsh) with pnpm on PATH.

# from npm
dsh plugin --profile web add dsh-llmwiki

# or from a tarball
dsh plugin --profile web add ./dsh-llmwiki-0.1.1.tgz

# verify the layer, then boot
dsh --profile web --dump-config   # shows a "# == dsh-llmwiki" layer
dsh web                           # logs: [dsh-llmwiki] memory plugin loaded, vault: ...

The package declares dsh.bundle, so dsh plugin add activates it automatically — no manual patching needed.

Configure

The plugin works zero-config (vault defaults to ~/llmwiki-vault). To override, add a row to your profile's cordis.patch.yml (or a --patch overlay) — note the override restates the row by id without insert:

- id: llmwiki
  config:
    vaultPath: /path/to/your/vault   # Obsidian vault welcome
    tokenBudget: 2000
    strategies: [keyword, graph, temporal]
    daysBack: 7
    topK: 5
    autoInject: true
    autoCapture: true

A patch replaces the row's entire config, so restate every key you want to keep.

Config

KeyDefaultMeaning
vaultPath~/llmwiki-vaultMarkdown vault path; structure created if missing
tokenBudget2000Max tokens of injected wiki context
strategies[keyword, graph, temporal]Enabled recall strategies
daysBack7Temporal look-back window
topK5Results per retrieval
priorityrelevanceAssembly priority: relevance / recency / diversity / structured
cacheTtl300Cache TTL seconds
autoInjecttrueInject wiki context on each user message
autoCapturetrueAppend each turn to the daily chronicle

How the pieces map from the Python original

Python (llmwiki)TypeScript (dsh-llmwiki)
core/retriever.pysrc/retriever.ts
core/assembler.pysrc/assembler.ts
core/cache.pysrc/cache.ts
vault/capture.pysrc/capture.ts
search/python_engine.pymerged into retriever.ts (keeps the package zero-dep)
OpenClawMemoryHook adapterthe dsh plugin itself (src/index.ts)

Not yet ported: ripgrep / SQLite FTS engines (the pure-JS engine keeps installs dependency-free — contributions welcome), the LLM-driven curate pipeline (run the Python CLI alongside for now).

License

MIT