Injects the contents of a .keep-reminder file from the session working directory as a system-reminder, with three modes: once per session, first step of every turn, or every request.
Install
# from npm (prebuilt)
dsh plugin --profile web add keep-reminder
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:imlishiyuan/keep-reminder
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | 简体中文
Inject a user-defined .keep-reminder file into the model context as a <system-reminder> user message.
Quick Start
- Install the plugin (choose one):
# A. Official command (backs onto pnpm; install pnpm first)
npm i -g pnpm
dsh plugin --profile web add keep-reminder
# B. Install with npm directly into the profile directory
cd ~/.dsh/profiles/web # Windows: C:\Users\<you>\.dsh\profiles\web
npm install keep-reminder --save
- Mount it in the profile
cordis.patch.yml. To load a plugin you must insert it, not target an id. A bare- id: keep-reminderlist entry is a patch over an already-loaded entry — it warnsentry "keep-reminder" not foundand does nothing. Use theinsert:form:
- insert:
- id: keep-reminder
name: 'keep-reminder'
config:
mode: turn # session | turn | request
file: '.keep-reminder' # optional
- Create a
.keep-reminderfile in the session workspace root (see.keep-reminder.example) with the content to remember. - Restart
dsh weband start a new session.
What is the "session workspace root"?
It is the session's working directory (cwd); the plugin looks for .keep-reminder only there and does not search upward.
- Web GUI: the folder you pick when creating the session. If you pick
D:\ui-workspace\my-project, put it atD:\ui-workspace\my-project\.keep-reminder. - CLI / headless: the current directory where you run
dsh(process.cwd()).
Configuration
| Key | Default | Description |
|---|---|---|
mode |
turn |
Injection frequency: session / turn / request |
file |
.keep-reminder |
File path; relative to the session working directory, or absolute |
Three modes
| mode | When injected |
|---|---|
session |
Once per session (first step of the first turn) |
turn |
Once per turn (first step) |
request |
Every model request |
Comparison
AGENTS.md, direct user prompts, and this plugin all convey information to the model, but with different purposes:
| Dimension | AGENTS.md | User prompt | keep-reminder |
|---|---|---|---|
| Channel | <system-reminder> user message |
ordinary user message | <system-reminder> user message |
| Scope | global (~/.dsh) + project directories |
one message | one file in the workspace root |
| Frequency | once per session, updated on change | one-shot | session/turn/request |
| Priority | guidance (below system prompt and direct user instructions) | direct user instruction (highest) | guidance (same as AGENTS.md) |
| Maintenance | edit a file | write each time | edit a file |
| Live update | yes | — | yes (re-read per injection) |
| Use case | team / project conventions | temporary, one-off | personal "must-remember" reminders |
File-state handling
How the plugin treats the .keep-reminder file in each state:
| State | Behavior |
|---|---|
| File missing | Silently skipped — no injection, no error |
| File exists but empty/whitespace | Silently skipped — no injection |
| File has content | Injected as <system-reminder> per mode |
| Content modified | New content injected next turn/request (re-read live) |
| File deleted | Injection stops from the next turn, silently |
| File restored | Injection resumes |
Replacing deepseek-harness-zh-cn
keep-reminder is a general capability; deepseek-harness-zh-cn is one concrete use of it — put the "Chinese-first" rules into a .keep-reminder file to achieve the same effect (see .keep-reminder.example). The difference:
deepseek-harness-zh-cn: works out of the box, rules hard-coded;keep-reminder: fully customizable — change the file to change the rules (not only language).
Development
Build
npm install
npm run build # compiles src → lib/index.js
Mount locally
During development you can mount the compiled output directly via a file:// URL, with no package install. Remember to use the insert: form:
- insert:
- id: keep-reminder
name: 'file:///D:/ui-workspace/keep-reminder/lib/index.js'
config:
mode: turn
Adjust the URL to your checkout path.
Restart
npx @deepseek-ai/dsh web
Verify
# Windows
npx @deepseek-ai/dsh web --dump-config | findstr /C:"keep-reminder"
# Linux / macOS
npx @deepseek-ai/dsh web --dump-config | grep keep-reminder
Seeing the keep-reminder row with no not found warning means the plugin is mounted.
License
Links
More in this category
ranxianglei/billion-context★ 8957
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4868
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 1012
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 461
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 418
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 339
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.