doublehappy123/dsh-memory ↗★ 0
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.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:doublehappy123/dsh-memory说明文档
阅读完整 README ↗Usage
Model tools
The plugin registers 5 tools that the model can call automatically:
| Tool | Description |
|---|---|
memory_save | Save a fact/preference to long-term memory |
memory_recall | Search memory by keywords/tags, returns ranked results |
memory_list | List all memories (paginated, tag-filterable) |
memory_update | Update an existing memory by ID |
memory_delete | Delete a memory by ID |
The system prompt instructs the model to:
- Call
memory_recallbefore answering to retrieve relevant context - Call
memory_saveafter 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)