MichengAI/dsh-simplify ↗★ 2

@michengai/dsh-simplify

限定Git变更范围的代码简化与异常处理工具 适合需要在Git项目中快速简化代码、重构未暂存或特定提交更改的开发者。

包名
@michengai/dsh-simplify
兼容性
待验证
Harness 依赖范围
0.1.0-rc.8 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.7-rc.1 || 0.1.7-rc.2
Cordis 依赖范围
^4.0.2
版本
0.1.10
许可证
Apache-2.0
最近更新
2026年9月24日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MichengAI/dsh-simplify

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

InputScope
/simplifyNet changes from HEAD to the working tree, including untracked files; fall back to the last commit only when there are no changes
/simplify --stagedStaged changes only; reject selected staged files that also have unstaged changes
/simplify --ref=mainThe specified commit to the working tree, including untracked files; no fallback
/simplify --ref HEADExplicit HEAD scope without previous-commit fallback
/simplify src/a.ts "src/中文 文件.ts"Changes in selected files; review untracked files in full
/simplify srcExpand changed files within a directory
/simplify -- --special.tsUse 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.
  • --ref accepts branches, tags, and single-commit expressions, not a..b or a...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; --staged includes 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

ResultMeaning
已提交 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 messageA reliable scope could not be established. No model request is made; address the reported issue before retrying.