DeepSeek Harness 插件

menotbobbybrown/dsh-plugin-memory

Star 数 ★ 0 分类 记忆 收录于 2026-09-24

DeepSeek Harness 的长期持久记忆:以 JSON 保存事实/偏好/实体/规则/经历等分类条目,注册为 memory_remember 与 memory_recall 两个 agent 工具;召回按关键词重叠、重要度与访问频次排序。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:menotbobbybrown/dsh-plugin-memory

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

Persistent Knowledge Graph & Long-Term Memory Plugin for DeepSeek Harness (dsh)

dsh-plugin-memory gives DeepSeek Harness agents persistent long-term memory, episodic recall, and user preference tracking across multiple conversation sessions and workspace lifecycles.


Features

  • 🧠 Long-Term Fact & Preference Storage: Remember user coding preferences, architectural decisions, and project conventions.
  • 🔍 Semantic & Keyword Recall: Ranked relevance matching retrieves the right context for the prompt.
  • 💻 CLI Management (dsh-memory): List, search, add, and forget memories directly from your terminal.
  • 🧩 Cordis Native: Automatically exposes memory_remember and memory_recall tools to the agent.

Installation

# Add from GitHub
dsh plugin --profile web add "github:menotbobbybrown/dsh-plugin-memory"

CLI Usage

# List all remembered items
npx dsh-memory list

# Remember a new preference or fact
npx dsh-memory add "User prefers TypeScript and strict ESLint rules" --type preference --tags coding,style

# Search and recall
npx dsh-memory search "coding style"

# Delete a memory
npx dsh-memory forget <id>

Programmatic Usage (Cordis API)

import { Context } from 'cordis';
import * as MemoryPlugin from 'dsh-plugin-memory';

const ctx = new Context();
ctx.plugin(MemoryPlugin);

// Save to memory
ctx.memory.remember('Target database is PostgreSQL 16');

// Recall from memory
const results = ctx.memory.recall('database version');

License

MIT © DeepSeek Harness Community


🤝 Contributing

Contributions are warmly welcome! Whether you are reporting an issue, proposing an adapter, optimizing performance, or fixing a bug, please check out our Contributing Guide.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: add some AmazingFeature')
  4. Push to the Branch (git push origin feat/AmazingFeature)
  5. Open a Pull Request

📄 License & Community

Distributed under the MIT License. See LICENSE for more information.

Built with 💙 for the DeepSeek Harness community.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。