返回目录

stratagate-agentmemory

编辑精选维护状态: 活跃

diqierjia/stratagate-agentmemory

Local-first cross-session memory for DeepSeek Harness (DSH): automatic capture, Event/Element cards, evidence-gated recall, source tracing. 本地跨会话长期记忆。

前往 GitHub
$ dsh plugin --profile web add stratagate-dsh

32

星标

4

Fork

TypeScript

语言

MIT

许可证

2026-08-10

创建于

2026-09-04

最近推送

MIT 许可、本地优先的 DeepSeek Harness 长期记忆:自动捕获、证据门控回忆、来源追溯,以及 BM25 + 结构化混合检索,全部存于本地 SQLite,无需独立记忆服务。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-06

许可证

MIT

01它能帮你完成什么?

  • Capture and search long-term memory across DeepSeek Harness sessions

    Searchable local memory of completed main-agent turns plus a Memory UI under DSH Settings → StrataGate-AgentMemory

    DeepSeek Harness (dsh) users running long-lived agents who need persistent, source-traced cross-session memory

02如何接入 DeepSeek Harness?

前置条件

  • DeepSeek Harness (dsh) must already be installed

安装步骤

  1. 01

    $ dsh plugin --profile web add stratagate-dsh

  2. 02

    Restart that profile, then keep using DSH normally.

验证接入成功

  • StrataGate exposes its Memory UI under DSH Settings → StrataGate-AgentMemory

03DSH 适配与能力边界

DSH 适配原生运行时

Installed as a native DeepSeek Harness (dsh) plugin — `dsh plugin --profile <name> add stratagate-dsh`

  • Automatic local-first capture

    completed main-agent conversations and tool resultslocal SQLite database (no separate memory server)

  • Layered / compact memory

    recent and older historydetailed recent history plus a compact index that expands on demand

  • Event cards with source & time

    lasting memory recordsrecords origin and separates when something was mentioned from when it happened

  • Hybrid BM25 + structured search

    memory graph / eventscompact facts via searchEvents() / searchGraphNodes() with reciprocal-rank fusion

  • Evidence-gated recall

    retrieved contexta sufficiency check (evidence refs) before the agent relies on memory

  • External memory import

    structured memory exported by another AItraceable Events while the imported source text remains preserved

04适合谁?何时不该用?

适合

  • DeepSeek Harness (dsh) users running long-lived agents who need persistent, source-traced cross-session memory

不适合

  • The current version still has 31 majority-wrong questions on its evaluation set, so recalled answers are not guaranteed correct — verify important recalls against the cited source.

05兼容性、维护与安全提示

  • The current version still has 31 majority-wrong questions on its evaluation set, so recalled answers are not guaranteed correct — verify important recalls against the cited source.
  • StrataGate supplies state, constraints and validation, but the integrating application still controls model calls, tool iteration and the maximum retrieval budget.
作者未说明作者未说明stratagate-dsh-v0.2.49

readme_verified

06常见问题

如何在 DeepSeek Harness 中安装 StrataGate AgentMemory?

如果已安装 DeepSeek Harness,用 `dsh plugin --profile web add stratagate-dsh` 添加到你的 profile,再重启该 profile。随后 StrataGate 会捕获已完成的主代理轮次,并在 DSH 设置 → StrataGate-AgentMemory 中显示记忆 UI。

我的记忆存储在哪里?

默认数据库位于 `DSH_HOME/stratagate/memory.db` 的本地 SQLite 文件。无需独立记忆服务,且移除插件不会删除数据库。

如何避免根据薄弱证据作答?

在检索与作答之间插入固定协议,依据证据引用判断充分性;若证据不完整,会改换策略、扩展事件或查看来源后再作答。

能导入其他 AI 的记忆吗?

可以。其他 AI 导出的结构化记忆可转为可追溯的 Event,同时保留导入来源原文,从而保留出处。

召回结果可信吗?

不保证。当前版本在其评测集上仍有 31 道多数答错的题目,重要回忆请对照所引来源核实后再采用。

08数据与来源

  • 作者声明github.comc1bd0dbf1149…

    ## Quick start: DeepSeek Harness If DeepSeek Harness is already installed, add StrataGate to the profile you use: ```b…

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-06。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。