MichengAI/dsh-simplify1

@michengai/dsh-simplify

DSH 代码简化插件:限定 Git 变更范围,支持未跟踪文件、跨平台路径与可靠的 Git 异常处理

包名
@michengai/dsh-simplify
版本
0.1.2
许可证
Apache-2.0
最近更新
2026年9月6日

安装

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

Usage

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.