dsh-plugin-memory
Agent 与会话 活跃维护

dsh-plugin-memory

menotbobbybrown/dsh-plugin-memory

它是dsh的扩展插件,内置持久化知识图谱存储能力,可跨会话留存智能体交互的长期记忆,自动关联上下文信息,无需复杂配置即可接入dsh生态,方便快速回溯历史交互数据。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
28 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:menotbobbybrown/dsh-plugin-memory
git clone https://github.com/menotbobbybrown/dsh-plugin-memory.git
git clone git@github.com:menotbobbybrown/dsh-plugin-memory.git
README.md main

dsh-plugin-memory

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

License: MIT
DeepSeek Harness

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