DeepSeek Harness 插件

perseus-vault-dsh

Perseus Vault memory plugin for DeepSeek Harness: automatic pre-step recall injection from a governed memory vault(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Perseus-Computing-LLC/perseus-vault-dsh
最近更新
2026年8月16日
分类
记忆
GitHub stars
0
载体类型
plugin
包路径
packages/perseus-vault
目录证据
上游声明已找到 dsh.bundle
证据路径
packages/perseus-vault/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/Perseus-Computing-LLC/perseus-vault-dsh/tree/HEAD/packages/perseus-vault
插件名:perseus-vault-dsh
作者:Perseus-Computing-LLC

检查来源文件

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

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

@perseus-computing/dsh

Perseus Vault memory plugin for DeepSeek Harness: automatic, push-based memory injection.

The harness's MCP row is pull-based — the agent must remember to call mcp__perseus_vault__recall. This plugin closes that gap: on every step that carries a user message it runs perseus-vault prepare (local SQLite queries, zero LLM calls) and injects the resulting <memory-prep> block into the agent's system prompt as the perseus-vault-memory section.

Requirements

  • Node.js ≥ 22.18
  • perseus-vault binary on PATH (pinned: 2.23.0)
  • DeepSeek Harness ≥ 0.1.0-rc.5 (developer preview — the seams used here are agent/created, agent/pre-step, and systemPrompt.section)

Install

Recommended — as a dsh bundle (installs the package AND wires it into the profile; the web UI shows its settings card under Settings → Plugins):

dsh plugin add -w @perseus-computing/dsh

(-w is required: a dsh profile is a pnpm workspace root.)

Plain npm install (add the row below to a Cordis overlay yourself):

npm install @perseus-computing/dsh

From the repository while it is unpublished:

npm install "github:Perseus-Computing-LLC/perseus-vault-dsh#workspace=packages/perseus-vault"

Or build locally:

git clone https://github.com/Perseus-Computing-LLC/perseus-vault-dsh.git
cd perseus-vault-dsh/packages/perseus-vault
npm install
npm run build

Usage

Mount it in a Cordis overlay:

- insert:
    - id: perseus-vault-memory
      name: '@perseus-vault/dsh'        # or an absolute path to the built module
      config:
        command: perseus-vault          # executable name or path
        db: ''                          # optional SQLite path; default = vault default
        workspace: ''                   # optional workspace_hash filter
        recallWhenLimit: 10
        contextLimit: 10
        timeoutMs: 3000
        order: 60
dsh web --patch ./my-overlay.cordis.yml

Combine with the MCP row (examples/dsh-mcp/perseus-vault.cordis.yml) so the agent also has explicit remember / recall / capture tools.

Config

KeyDefaultMeaning
enabledtrueMaster switch
commandperseus-vaultPath/name of the vault executable
db''--db passed to prepare; empty = vault default location
workspace''--workspace filter; empty = no filtering
recallWhenLimit10Max entities from recall_when trigger matches
contextLimit10Max entities from the always-on/context pull
maxContextCharsunset--max-context-chars budget override
timeoutMs3000Kill the prepare child after this long
order60System-prompt section order (persona is 0; tool guidance 100–199)
sectionNameperseus-vault-memorySection name (must be unique per layer)

Behavior and failure modes

  • Fresh block per user turn. agent/pre-step fires with the messages entering the step; only user-role text triggers a new prepare run. Tool-result steps reuse the cached block, so follow-up steps inside a turn stay consistent.
  • Graceful degradation. Missing binary, prepare timeout, or spawn failure → the section renders empty and the agent loop is never blocked or broken. The first failure logs one warning.
  • No network, no LLM. Injection runs entirely through the local perseus-vault prepare CLI — deterministic, free, and fast enough to run per turn.
  • Capture is pull-based (by design). End-of-turn capture into the vault is available through the mcp__perseus_vault__capture tool from the MCP row. A agent/turn-stopping auto-capture hook is planned for v2 once the harness API stabilizes.

License

MIT