MichengAI/dsh-simplify ↗★ 2

@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项目中快速简化代码、重构未暂存或特定提交更改的开发者。

Package
@michengai/dsh-simplify
Compatibility
Unverified
Harness peer range
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 peer range
^4.0.2
Version
0.1.10
License
Apache-2.0
Last updated
Sep 24, 2026

Install

$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.