@michengai/dsh-simplify
DSH Simplify — 为 DeepSeek Harness 提供限定 Git 变更范围的代码简化,支持未跟踪文件、跨平台路径与可靠的 Git 异常处理 · Git-scoped code simplification with untracked-file support, cross-platform paths, and reliable Git error handling for DeepSeek Harness 适合需要在Git项目中快速简化代码、重构未暂存或特定提交更改的开发者。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MichengAI/dsh-simplifyドキュメント
README 全文を読む ↗Usage
After a round of coding, enter this in the current Git project session:
/simplify
Wait for the Agent to finish editing and validation, then inspect the actual diff. Use the options below to narrow the scope.
Choose a review scope
| Input | Scope |
|---|---|
/simplify | Net changes from HEAD to the working tree, including untracked files; fall back to the last commit only when there are no changes |
/simplify --staged | Staged changes only; reject selected staged files that also have unstaged changes |
/simplify --ref=main | The specified commit to the working tree, including untracked files; no fallback |
/simplify --ref HEAD | Explicit HEAD scope without previous-commit fallback |
/simplify src/a.ts "src/中文 文件.ts" | Changes in selected files; review untracked files in full |
/simplify src | Expand changed files within a directory |
/simplify -- --special.ts | Use the option terminator for paths starting with a hyphen |
- Paths are relative to the session directory. Absolute paths inside the repository are supported; prompts use paths relative to the repository root.
- Single and double quotes group paths containing spaces; backslashes remain path characters. No shell expansion, wildcard expansion, or command substitution is performed.
--refaccepts branches, tags, and single-commit expressions, nota..bora...b. It cannot be combined with--staged.- Before the initial commit, files in the selected scope are treated as new and may be simplified in full. Default mode includes staged and untracked files;
--stagedincludes only staged files. Select files or directories to narrow the scope; file count and size limits still apply. A clean repository with only one commit returns no changes. - Previous-commit fallback compares HEAD with its first parent. Merge commits do not receive a multi-parent review.
Command results
| Result | Meaning |
|---|---|
已提交 N 个文件的简化审查 | Review of N files was queued. The Agent has not necessarily finished editing or testing. |
没有可简化的当前代码行 | No current lines are eligible. No model request is made; skipped-file details may be included. |
| An error message | A reliable scope could not be established. No model request is made; address the reported issue before retrying. |