DeepSeek Harness 插件

agent-memory-system

DeepSeek Harness community Bundle for local, evidence-backed Agent Memory(英文原文)

跳到安装方式

来源信息

GitHub 仓库
rrrrrredy/agent-memory-system
最近更新
2026年8月18日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
包路径
integrations/deepseek-harness
目录证据
上游声明已找到 dsh.bundle
证据路径
integrations/deepseek-harness/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/rrrrrredy/agent-memory-system/tree/HEAD/integrations/deepseek-harness
插件名:agent-memory-system
作者:rrrrrredy

检查来源文件

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

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

@rrrrrredy/dsh-agent-memory

Community DeepSeek Harness Bundle for Agent Memory System. It can preserve Harness sessions as a crash-safe local append-only event spool and can inject only verified, active, promoted memory before an agent step.

This is a community plugin, not an official DeepSeek plugin.

Compatibility

  • DeepSeek Harness / @deepseek-ai/dsh: 0.1.0-rc.6
  • Agent Memory CLI: >=0.3.1 <1 for deepseek-harness import and injection support
  • Node.js: 22.19.x or 24+

Capture and retrieval are independent, explicit opt-ins. The default Bundle row is inert until at least captureDir or both retrieval roots are configured.

Install

Install the Agent Memory CLI when retrieval or import is required:

go install github.com/rrrrrredy/agent-memory-system/cmd/agentmem@v0.3.1

Install the public Bundle into the Harness profile you use:

dsh plugin --profile headless add @rrrrrredy/dsh-agent-memory@0.1.0
dsh --profile headless --dump-config

For the browser surface, replace headless with web. For a local release candidate, replace the npm specifier with the absolute path to the packed .tgz.

Configure

Update the agent-memory row in that profile's cordis.patch.yml. All storage paths must be absolute.

- id: agent-memory
  config:
    binary: agentmem
    captureDir: /absolute/local/path/outside-any-git-worktree/dsh-capture
    evidenceRoot: /absolute/local/path/agent-memory-evidence
    portableRepo: /absolute/path/to/portable-memory-repository
    scopeRepository: account/example
    scopeProject: example
    scopeTask: agent-work
    limit: 5
    tokenBudget: 600
    byteBudget: 3072
    timeoutMs: 3000
    stdoutMaxBytes: 131072
    stderrMaxBytes: 131072
    segmentMaxBytes: 33554432
  • Set only captureDir for capture without retrieval.
  • Set evidenceRoot and portableRepo together for retrieval without capture.
  • Set all three paths to compose both capabilities.
  • Trusted repository, project, and task scopes come only from this local configuration. Model text cannot select them.

On Windows, use fully qualified absolute paths and escape backslashes when the YAML parser requires it. The capture directory is rejected if it is inside a Git worktree, including through a linked path.

Use

Run Harness normally:

dsh --profile headless "Continue this repository task using only relevant verified memory."

At the first accepted step of each turn, the Bundle sends only user-originated text to:

agentmem inject deepseek-harness --root <evidenceRoot> --repo <portableRepo> ...

A successful bounded response becomes a formal user/message whose source is plugin: agent-memory and form is recall, so it remains visible and replayable in the Harness event log. Missing CLI, timeout, output overflow, nonzero exit, damaged JSON, failed verification, or an empty result all continue without memory. The Bundle never falls back to stale, partial, unverified, or cached context.

Import the local capture spool into the Agent Memory evidence ledger explicitly:

agentmem import deepseek-harness-events \
  --root <local-evidence-directory> \
  --path <captureDir>

Live session/event records are retained exactly as delivered by Harness. On startup, a raw-artifact-capable persistence backend is also read through listSnapshots and readRaw; its full session artifact is preserved verbatim. Unknown events, unsupported raw artifacts, malformed artifact rows, recovery problems, and read failures remain explicit gaps rather than disappearing.

Privacy and security boundary

  • Capture files are local-only raw evidence and may contain prompts, model output, locally exposed reasoning, tool calls, tool results, paths, and secrets produced during the session.
  • Raw Harness events, reasoning, tool output, and session artifacts must never be committed to Git, packed into npm, or attached to a GitHub Release.
  • The Bundle adds no telemetry, hosted service, remote storage, or model tool. Harness still sends ordinary conversation content to the model provider configured for the profile.
  • Retrieval returns only memory that Agent Memory validates as active and promoted from a complete portable repository. Capture does not automatically promote anything.
  • raw_exposed means the text existed in the local Harness artifact. It does not claim access to provider-hidden reasoning.
  • Local files are not an OS security boundary. A process with the same user privileges can alter local configuration or evidence.

Uninstall

dsh plugin --profile headless remove @rrrrrredy/dsh-agent-memory
dsh --profile headless --dump-config

After removal, the Bundle row and package reference are absent, no event or pre-step listener remains, and later sessions do not add capture records or memory recall messages. Existing local capture and evidence files are deliberately retained; remove them separately only under your own retention policy.

Reproduce the tests

From this directory:

pnpm install --frozen-lockfile
pnpm verify
AGENTMEM_BINARY=/absolute/path/to/agentmem pnpm test:integration
pnpm pack --pack-destination .pack

pnpm verify covers config boundaries, canonical-source hashing, Git-worktree rejection, durable raw event capture, raw-artifact backfill and restart deduplication, explicit gaps, argv-only subprocess execution, timeouts, output bounds, malformed responses, trusted prompt selection, formal recall messages, real Cordis/SessionStore/JSONL Persistence composition, and clean disposal.

pnpm test:integration writes a real Bundle spool into an explicit scratch root, imports it with the compiled Agent Memory CLI, and requires a clean agentmem doctor result. Set AGENT_MEMORY_DSH_TEST_TMP to keep all scratch work on a chosen volume.

The [0.1.0 public release evidence](release-evidence/0.1.0.md) records the separate isolated-profile public install/remove test and real DeepSeek model smoke. Raw session and memory evidence are excluded from the package and release assets.