dshbase

插件目录 / Knowledge / Deepseek-Harness-Lifelong-Agent

Deepseek-Harness-Lifelong-Agent

已验证 · 实测可装 haoyuan-sjtu

✓ 持续维护 2 位贡献者

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
—语言
2026-08-15最近推送
跨平台平台

功能简介

A governed long-term memory core for AI agents, with technical-preview adapter contracts for DeepSeek Harness integration.

✅
我们的评价
可用 — 实测通过,早期项目

A governed long-term memory core for AI agents, with technical-preview adapter contracts for DeepSeek Harness integration. 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

DSH Governed Memory

中文

dsh-governed-memory is an opt-in, standalone DeepSeek Harness bundle. It contributes one Cordis host plugin through its own cordis.patch.yml; it is not a fork of Harness and ships no Harness source.

Install

Install the repository into a DSH profile, then restart that profile:

dsh plugin --profile web add https://github.com/haoyuan-sjtu/Deepseek-Harness-Lifelong-Agent.git

The installed package declares dsh.bundle.patch, so DSH adds its patch layer to the selected profile automatically. The same package can be installed in the headless profile by replacing web with headless.

Behavior

The bundle mounts one agent/pre-step waterfall listener. It calls next() first, then reads the registry and appends one plugin-sourced user message only when the registry selects one or more records. The DSH agent loop records the admitted message as an ordinary user/message event, including its source and rendered snapshot.

Records are stored in an atomic JSON registry. The plugin never registers a model-callable capture or promotion tool:

  • capture() always writes quarantine.
  • promote() requires a trusted host caller, explicit approval, and verified A/B evidence.
  • retrieval admits only promoted records that are in scope, allowed by privacy, not expired or review-due, non-conflicting, relevant, and within the token budget.
  • revoke() makes later retrieval deny the record.

The technical preview supports only local and project scopes. It rejects user and team configuration until the host provides identity, membership, and shared-storage authorization.

Configuration

The package's patch inserts this row. A profile or home cordis.patch.yml can replace the complete config object.

- id: governed-memory
  name: dsh-governed-memory
  config:
    registryPath: !!js process.env.DSH_GOVERNED_MEMORY_REGISTRY
    scope: project
    allowedPrivacy: [public, internal]
    tokenBudget: 512
    queryTags: []

registryPath defaults to $DSH_HOME/governed-memory.json when the environment variable is absent. The registry is written with mode 0600 and an atomic rename. Put it on local storage; this release does not provide backup deletion, multi-process locking, or shared-team access semantics.

Trusted host operations

At boot the plugin exposes its registry as ctx.governedMemory for another trusted host plugin in the same DSH process. It has no browser UI, HTTP endpoint, CLI command, or model tool; promotion therefore cannot be forged by a model request.

await ctx.governedMemory.capture(candidate, 'admin-ui')
await ctx.governedMemory.promote(candidate.id, true, 'admin-ui')
await ctx.governedMemory.revoke(candidate.id, 'admin-ui')

Every candidate needs id, text, scope, privacy, canonicalKey, tags, evidence, ISO-8601 createdAt / reviewBy / expiresAt, confidence between zero and one, and a positive maxTokens. Evidence entries require uri, locator, level (A, B, or C), and verified.

Verify a checkout

npm run check
npm pack --dry-run

The tests exercise waterfall delegation, persistent capture/promotion, model-message injection, disposal, and default denial for unsafe records.

Technical-preview limits

This is a local, single-process plugin. It has not completed a clean-profile installation test on every DSH release, a representative C0–C3 evaluation suite, backup deletion verification, or shared authorization. Do not store credentials, raw private transcripts, or material that cannot safely enter a model prompt.

License

MIT. See LICENSE.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 Deepseek-Harness-Lifelong-Agent」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:haoyuan-sjtu/Deepseek-Harness-Lifelong-Agent

Headless(CLI)profile:

dsh plugin --profile headless add github:haoyuan-sjtu/Deepseek-Harness-Lifelong-Agent

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Knowledge 里更多

浏览全部 7819 个插件 →