doublehappy123/dsh-memory0

dsh-memory

Long-term memory plugin for DeepSeek Harness (dsh): auto-recall relevant memories before answering, auto-save key facts after answering, full CRUD/search tools, and a visual settings page for memory management.

AI 분석

核心用途是为模型赋予跨会话的长期记忆能力。适合需要模型记住用户偏好、历史设定或关键事实的个性化助手任务。提供 5 个自动调用的记忆管理工具。

패키지
dsh-memory
버전
1.1.0
라이선스
MIT
최근 업데이트
2026. 9. 2.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:doublehappy123/dsh-memory

Usage

Model tools

The plugin registers 5 tools that the model can call automatically:

ToolDescription
memory_saveSave a fact/preference to long-term memory
memory_recallSearch memory by keywords/tags, returns ranked results
memory_listList all memories (paginated, tag-filterable)
memory_updateUpdate an existing memory by ID
memory_deleteDelete a memory by ID

The system prompt instructs the model to:

  1. Call memory_recall before answering to retrieve relevant context
  2. Call memory_save after answering when new worth-remembering facts emerge

Visual settings page

After installation, open Settings长期记忆 (Long-term Memory) in the dsh web UI. You can:

  • Browse all memories as cards with tags, importance stars, and timestamps
  • Real-time search by content or tags (300ms debounce)
  • Add new memories with content, tags, category, and importance (1-5 stars)
  • Edit existing memories
  • Delete memories (with confirmation)
  • Paginate through large memory collections (20 per page)
  • Export all memories to a downloadable JSON file
  • Import memories from a JSON file (merge mode: dedupe by ID, update existing, add new)