imlishiyuan / keep-reminder

목록에 있음

Inject a user-defined .keep-reminder file into DeepSeek Harness conversations as a <system-reminder>, with session / turn / request modes.把 .keep-reminder 文件里的重要内容以 <system-reminder> 注入 DeepSeek Harness 上下文,支持 session / turn / request 三种注入模式。

main세션 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add github:imlishiyuan/keep-reminder

이 설치 명령은 GitHub 저장소 주소에서 생성된 확인되지 않은 시작점입니다.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 2669fc9동기화 2026. 8. 18.

keep-reminder

English | 简体中文

npm version license

Inject a user-defined .keep-reminder file into the model context as a <system-reminder> user message.

Quick Start

  1. 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
  1. Mount it in the profile cordis.patch.yml:
- id: keep-reminder
  name: 'keep-reminder'
  config:
    mode: turn              # session | turn | request
    file: '.keep-reminder'  # optional
  1. Create a .keep-reminder file in the session workspace root (see .keep-reminder.example) with the content to remember.
  2. Restart dsh web and 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 at D:\ui-workspace\my-project\.keep-reminder.
  • CLI / headless: the current directory where you run dsh (process.cwd()).

Configuration

KeyDefaultDescription
modeturnInjection frequency: session / turn / request
file.keep-reminderFile path; relative to the session working directory, or absolute

Three modes

modeWhen injected
sessionOnce per session (first step of the first turn)
turnOnce per turn (first step)
requestEvery model request

Comparison

AGENTS.md, direct user prompts, and this plugin all convey information to the model, but with different purposes:

DimensionAGENTS.mdUser promptkeep-reminder
Channel<system-reminder> user messageordinary user message<system-reminder> user message
Scopeglobal (~/.dsh) + project directoriesone messageone file in the workspace root
Frequencyonce per session, updated on changeone-shotsession/turn/request
Priorityguidance (below system prompt and direct user instructions)direct user instruction (highest)guidance (same as AGENTS.md)
Maintenanceedit a filewrite each timeedit a file
Live updateyesyes (re-read per injection)
Use caseteam / project conventionstemporary, one-offpersonal "must-remember" reminders

File-state handling

How the plugin treats the .keep-reminder file in each state:

StateBehavior
File missingSilently skipped — no injection, no error
File exists but empty/whitespaceSilently skipped — no injection
File has contentInjected as <system-reminder> per mode
Content modifiedNew content injected next turn/request (re-read live)
File deletedInjection stops from the next turn, silently
File restoredInjection 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:

- 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 means the plugin is mounted.

License

Apache-2.0

저장소 정보

언어
TypeScript
라이선스
Apache-2.0
마지막 업데이트
2026. 8. 18. 오전 9:32

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.