iawww/dsh-projects-memory: A Do-Not-Disturb Project Memory Plugin for DeepSeek Harness

Introduction

When developing agents in DeepSeek Harness (DSH), a common pain point is: when switching between multiple sessions, a new session cannot automatically inherit the context, decisions, and progress from previous ones. Manually copying and pasting is both cumbersome and prone to omissions. The iawww/dsh-projects-memory plugin provides DSH with a “zero-friction” project memory capability: at the start of a new session, it automatically injects the accumulated project summary, without requiring you to explicitly prompt the model to “remember” anything.

What Is This

iawww/dsh-projects-memory is a DeepSeek Harness Host plugin, maintained by IAWWW and categorized under “Memory.” It provides persistent project memory for a workspace: saving checkpoints at key moments and automatically loading the accumulated project summary when a new session starts or a session is compacted. It supports a local mode and an optional OpenRouter summarization mode.

Core Features

After installation, the following behaviors change:

  • The workspace’s accumulated project summary is automatically loaded when a new session starts.
  • Summaries are updated at “handoff points” rather than after every message: at the start of a new session, when DSH compacts a session, or when the user clicks “Save checkpoint.”
  • Each save appends to the existing summary rather than overwriting it.
  • A summary status chip is displayed in the chat header, and a memory capsule appears in the bottom-right corner.
  • A “Projects” entry appears in the left sidebar, listing workspaces along with their sessions, summaries, and the model used for memory.

Installation & Activation

The plugin source repository requires no build step; it is pure JavaScript. Install it with the following command:

dsh plugin --profile desktop add github:IAWWW/dsh-projects-memory

If you’re using the Web/CLI profile:

dsh plugin --profile web add github:IAWWW/dsh-projects-memory

Local checkout installation:

dsh plugin --profile desktop add /absolute/path/to/dsh-projects-memory

After installation, you must fully quit and restart DSH (closing the window may not terminate background processes; if needed, you can stop the process on the DSH port). Host plugins are loaded at startup.

The plugin depends on DeepSeek Harness 0.2.2-rc.5 (declared in engines.dsh), Node 22+, and the Web UI (Desktop or dsh web).

Typical Usage

  1. Open a session in a workspace and have a conversation.
  2. At any point, click “Save checkpoint”: use the chip in the chat header, the capsule in the bottom-right corner, or the button in “Projects → Chats.”
  3. In the same workspace, open “Projects → New chat” (or “New chat” in the sidebar). The system automatically reads the checkpoint and injects the accumulated summary into the first message of the new session.
  4. To import existing work, use “Projects → Project memory → Import recent chats,” which reads the most recently completed conversation turns from the last 5 sessions.

The default workspace (default-workspace) has memory disabled in its initial state, as it typically collects unrelated sessions. You can enable or disable memory per workspace in “Projects → Project memory → Memory settings.”

Local Mode vs. OpenRouter Mode

  • Local mode (default): No additional model calls are made. The summary is assembled from the most recent completed conversation fragments, previous notes, and DSH’s compaction summary (if available). All content remains on your local machine.
  • OpenRouter mode (optional): Can be enabled per workspace. It uses a dedicated model to maintain a structured cumulative document (## Goal, ## What we did, ## Current status, ## Decisions, ## Next steps) and marks superseded lines as (superseded). The default model is google/gemini-2.5-flash-lite. Only the selected fragments and the previous summary are sent, consuming the user’s OpenRouter credits.

Steps to enable OpenRouter:

  1. Store OPENROUTER_API_KEY under refs: in the DSH credentials file (typically $DSH_HOME/.credentials.yaml or ~/.dsh/.credentials.yaml).
  2. Enable OpenRouter for the workspace in “Projects → Project memory.”

Data Storage Location

Data is stored in the ~/.dsh/projects-memory/ directory, shared across all DSH Home configurations:

~/.dsh/projects-memory/
├── <sha256(workspaceId)>.json      # Summary and save metadata
└── <sha256("mode:"+workspaceId)>.json  # Workspace memory settings

Write operations are atomic (write to a temp file, then rename). File permissions are 0600, and directory permissions are 0700.

Stored data includes: summary text, save timestamp, trigger reason, source, memory model settings, and checkpoint fingerprints for deduplication. Not stored: conversation logs, tool outputs, reasoning traces, attachments, or credentials. Memory is saved only on the local machine and is not synced across devices.

Permissions & Risks

This plugin runs as trusted Host code under the user’s account permissions:

  • Reads DSH session logs (only completed user/assistant text) to generate checkpoints.
  • Writes only to its own directory ~/.dsh/projects-memory/.
  • Network behavior: only when OpenRouter is enabled and a checkpoint is being generated, a single HTTPS request is made to https://openrouter.ai/api/v1/chat/completions. No telemetry or other endpoints are contacted.
  • The OpenRouter key is resolved from DSH credentials at request time and is never written to storage files.
  • Common credential patterns are scrubbed before storage and transmission as a best-effort measure to avoid exposing sensitive information. Do not enable OpenRouter summarization for content you intend to send to that provider yourself.

Compatibility

Surface Status
DSH 0.2.2-rc.5, Web UI, Desktop profile, Linux ARM64 Installed and tested; unit and Host integration tests pass
DSH 0.2.2-rc.5, dsh web profile Same path, profile-independent installation
macOS / Windows Not yet tested by the maintainer
Earlier DSH versions Not supported (the plugin declares its version requirement in engines.dsh)

DeepSeek Harness is in developer preview; future versions may change the Host API.

Limitations

  • Memory is only captured at checkpoints; work done without creating a checkpoint will not be included in the summary.
  • The import feature reads the most recently completed turn from each session; it is not a full history import.
  • Local mode is fragment-based; OpenRouter mode provides a structured document.
  • Records are stored per workspace and per machine; cross-device sync and multi-user sharing are not supported.
  • No git commit/push trigger exists at this time.

Summary

iawww/dsh-projects-memory provides DeepSeek Harness users with an automated, zero-friction project memory capability, ideal for developers who need to maintain context continuity across multiple sessions. After installation, simply restart DSH to get started. Both local and OpenRouter modes are supported, and all data is stored locally. For more details, visit the GitHub repository: https://github.com/IAWWW/dsh-projects-memory

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye