When developing agents in DSH, conversation turns are often lost once the session ends. Instead of relying on cloud-based memory services, it is better to save conversations as local files. dsh-save-chat is designed for this purpose; it saves conversations as Markdown and provides a retrieval interface.
Plugin Introduction¶
dsh-save-chat is a DeepSeek Harness plugin maintained by xypang33-sketch. It solves the issue of “conversation retention” in agent development by saving conversation turns as local Markdown files. It provides a two-tier storage structure: collections organized by session (project-level) and a personal knowledge base across projects. All data consists of local plain Markdown files with no database dependency and zero dependencies.
Core Features¶
- Save Conversation Turns: Saves the content of both questions and complete answers.
- Dual-layer Storage Structure: Supports session-based collections (Project-local) and a cross-project personal knowledge base.
- Model Retrieval Capability: The model can invoke
search_knowledgeandread_knowledgefor on-demand retrieval. - Zero Dependency & Pure Files: Relies only on Markdown files, no database, and generates no telemetry data.
- UI Interaction: Provides a heart button for saving, a sidebar panel for browsing, and a context menu for management.
- Image Retention: Images in conversations are retained alongside the Markdown files.
- Local Full-text Search: Uses the BM25 algorithm for local full-text search.
Installation and Activation¶
Before installation, please confirm the currently running DSH process (Profile). The installation command is as follows:
dsh plugin --profile web add dsh-save-chat
If using the desktop client, replace --profile web with --profile desktop. A DSH restart is required for the changes to take effect.
Usage Steps¶
- Add Plugin: Find the plugin option in DSH settings and add
dsh-save-chat. - Save Conversation: Click the heart icon in the action bar of the conversation reply row to save the entire turn.
- Browse Content: Browse saved favorites in the sidebar panel.
- Add to Knowledge Base: Select “Add to Knowledge Base” in the sidebar or context menu to promote it to persistent content retrievable by the model.
- Reference and Retrieval: The context menu supports copying references (
@/path/file.md). Paste the reference into a new conversation, or simply ask the model “What conclusion did we reach last time?”, and the model will invoke retrieval tools to return the result.
Use Cases and Notes¶
This plugin is suitable for developers who need to persist conversation records locally, utilize local files for knowledge management, and wish to reduce reliance on cloud services.
- File Locations: Knowledge base files are stored in
~/.dsh/knowledge/<YYYY-MM>.md. Session collection files are located at<session workspace>/.dsh-favorites/<session title>.md. - Local Storage: Strictly local storage; no telemetry or server requests are sent.
- On-demand Retrieval: Knowledge base content is retrieved only when the model requires it and is not automatically injected, saving Tokens.
- Model Invocation Costs: Saving conversations or summarizing images will incur minor model invocations.
- Configuration Requirement: A DSH restart is required for it to take effect.
Summary¶
dsh-save-chat provides a lightweight, local-first approach to managing DSH conversations. Through pure Markdown files and retrieval tools, it transforms conversations into searchable knowledge assets, making it suitable for building personal knowledge bases or project archives.