dsh-oidc
ECNU/EduWork可配置的 OIDC 登录与令牌授权模型接入,支持 LiteLLM 和显式启用的 oidc-llm 集成,提供独立 DSH Web 后端。
每轮第一步注入固定的 system-reminder,要求模型用简体中文思考与回答,代码、命令、文件路径与标识符保持原文。
English | 简体中文
A Chinese-first plugin that makes DeepSeek Harness reason (reasoning) and answer in Simplified Chinese by default.
This project offers two ways (choose one; the first is recommended) to turn your DSH's reasoning and output into Simplified Chinese, so Chinese-speaking users can read the trajectory and processing directly without translation overhead:
AGENTS.md.example to ~/.dsh/AGENTS.md.Tip: this plugin's "Chinese-first" rules can also be achieved with the keep-reminder plugin — put the same rules into a project's .keep-reminder file, and customize the content freely (not limited to language).Copy AGENTS.md.example to the DSH home directory as AGENTS.md:
~/.dsh/AGENTS.mdC:\Users\.dsh\AGENTS.md# Linux / macOS
cp AGENTS.md.example ~/.dsh/AGENTS.mdOn Windows, copy the file manually. Then restart dsh web (or start a new session).
A. Official command (backs onto pnpm; install pnpm first):
npm i -g pnpm
dsh plugin --profile web add deepseek-harness-zh-cnB. Install with npm directly into the profile directory:
cd ~/.dsh/profiles/web # Windows: C:\Users\<you>\.dsh\profiles\web
npm install deepseek-harness-zh-cn --saveNote: this npm install runs inside the DSH profile directory, not this plugin's project directory.Mount it in ~/.dsh/profiles//cordis.patch.yml:
- insert:
- id: dsh-zh
name: 'deepseek-harness-zh-cn'Restart dsh web.
reasoning_content may still be English. A fully Chinese prompt maximizes the probability but does not guarantee it.~/.dsh/AGENTS.md is injected by dsh-agent-instructions as a `` user message — guidance-level, lower priority than the system prompt and direct user instructions.agent/pre-step waterfall and appends a `` user message to the request batch at the first step of each turn, reinforcing the Chinese rule once per turn.npm install
npm run build # compiles src → lib/index.jsDuring development you can mount the compiled output directly via a file:// URL, with no package install. Edit ~/.dsh/profiles//cordis.patch.yml:
- insert:
- id: dsh-zh
name: 'file:///D:/ui-workspace/deepseek-harness-zh-cn/lib/index.js'Adjust the URL to your checkout path.
npx @deepseek-ai/dsh webStop the running service first if it is already up.
# Windows
npx @deepseek-ai/dsh web --dump-config | findstr /C:"dsh-zh"
# Linux / macOS
npx @deepseek-ai/dsh web --dump-config | grep dsh-zhSeeing the dsh-zh row means the plugin is mounted. Then start a new session and the model should reason and answer in Simplified Chinese.
This project only injects a language directive; it does not modify model weights or the inference logic. The actual output language still depends on the selected model's behavior, and this project is not responsible for results where the model fails to follow the Chinese directive.