
GongYuanCaiJi/dsh-simplify
30Last commit Aug 15, 2026
dsh-simplify DSH plugin
dsh-simplify is a port of pi-simplify to DeepSeek Harness. It uses git diff to locate changed files and line ranges, then constrains the agent's edits to those ranges. After the review, it runs the project's tests to ensure nothing is broken.
How to install the dsh-simplify DSH plugin
dsh plugin --profile <你的 profile> add github:GongYuanCaiJi/dsh-simplifyThis source command needs manual review. Copying does not run it.
dsh-simplify DSH plugin data source
dsh-simplify DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-simplify DSH plugin can do
- Review only changed lines via git diff, keeping edits within the modified line ranges.
- Support four scopes: uncommitted changes, staged changes, diff against any ref, and specific files.
- Automatically run tests after the review to verify no breakage.
- Respect project conventions like CLAUDE.md or AGENTS.md.
- Handle file paths with spaces and quotes using POSIX single-quote escaping.
Where the dsh-simplify DSH plugin fits
- Quickly review uncommitted changes after editing code.
- Review staged changes before committing.
- Compare current changes against a specific branch or commit (e.g., --ref=main).
- Review only specific files when the full diff is too large.
Who the dsh-simplify DSH plugin is for
- Developers using DeepSeek Harness who want focused code reviews.
- Teams that need to ensure code changes don't break existing tests.
dsh-simplify DSH plugin limitations
- The agent prompt is in English (upstream text kept verbatim, no translation).
- Works only on git repositories; no changes detected when the working tree is clean.
dsh-simplify DSH plugin: from the repository README
Quoted from the GongYuanCaiJi/dsh-simplify README, the upstream source of the dsh-simplify DSH plugin. Copyright remains with the original authors.
简体中文 | [English](#english) [](./LICENSE) [](https://github.com/deepseek-ai/deepseek-harness) [](https://www.npmjs.com/package/pi-simplify) > **一句话:改完代码打一句 `/simplify`,让 agent 只审查你刚改动的那几行,不碰其他地方。** 移植自 [`pi-simplify`](https://www.npmjs.com/package/pi-simplify)(MIT), 上游的提示词与 git diff 解析逻辑逐字保留,只适配 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的 API 差异。 ## ✨ 功能 - 🎯 **只审查改动行** —— 通过 `git diff` 定位改动的文件与行号范围,agent 可以读周围代码当背景,但**编辑严格限制在改动行内** - 🔍 **四种范围** —— 未提交改动 / 已 staged / 与任意 ref 比较 / 指定文件 - 🧪 **改完自己跑测试** —— 审查结束前会运行既有测试,确认没有改坏 - 📐 **遵守项目规范** —— 自动遵循项目里的 `CLAUDE.md` / `AGENTS.md` 约定 - 🈶 **空白与引号文件名安全** —— 参数逐个 POSIX 单引号转义 ## 📸 效果 在一个有未提交改动的仓库里: ``` > /simplify read src/alpha.ts ← 只读被改过的文件 read src/beta.ts edit src/alpha.ts ← 只改 4-5 行(本次改动范围内) edit src/beta.ts ← 只改 3-4 行 bash npm test → 1 pass, 0 fail ``` agent 的总结会明确说明范围外的行为什么不动(示意): ``` Removed the intermediate variable `d`… Both edits stayed strictly w
Read the full READMERepository license: MIT
dsh-simplify DSH plugin questions
How do I install dsh-simplify?
Run `dsh plugin --profile <your-profile> add github:GongYuanCaiJi/dsh-simplify`. The prepare script builds the dist/ automatically. If pnpm blocks the build, add the package to allowBuilds in your profile's pnpm-workspace.yaml.
Can I review only staged changes?
Yes, use `/simplify --staged`. This will review only the changes that have been staged for commit.
How do I review changes against a specific branch?
Use `/simplify --ref=<ref>` where <ref> can be a branch name like main or a commit hash like HEAD~3.
What happens when there are no changes?
The plugin returns a message: 'No changed files found. Specify file paths or make some changes first.' The agent will not perform any edits.
Does it work on Windows?
The plugin uses POSIX single-quote escaping for file paths, which is Unix-oriented. It may work on Windows with Git Bash or WSL, but it is not explicitly tested on Windows.