qingyou002/dsh-git-commit ↗★ 0

dsh-git-commit

一键暂存、生成提交信息并提交Git代码 适合需要AI自动总结代码差异并快速提交Git的开发者。

包名
dsh-git-commit
兼容性
待验证
Harness 依赖范围
^0.1.5-rc.1
版本
1.1.1
许可证
MIT
最近更新
2026年9月27日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qingyou002/dsh-git-commit

Usage

/commit                   # the model writes the message
/commit 修复登录超时       # your text becomes the title; no model call

Example output:

✅ 已提交 a1b2c3d:后台: 修复令牌过期后未刷新

📝 改动要点
- 令牌过期时改为静默刷新并重试原请求
- 新增刷新失败后的登出提示

📦 文件清单(3 个文件:修改 2,新增 1)
  修改 application/api/auth.js (+18 -4)
  新增 application/api/token.js (+42 -0)
  修改 public/assets/app.js (+3 -1)

Configuration

Every option is optional; defaults shown.

OptionDefaultMeaning
timeoutMs90000Deadline for the summarizing model call, in milliseconds.
maxDiffChars48000The staged diff is truncated beyond this many characters — head plus tail with a marked gap — before it is sent.
maxTokens2048Token ceiling for the summarizing call.
maxTitleChars100Hard cap on the first line; a longer title is cut and suffixed with ....
maxBullets12Maximum number of bullet lines kept from the reply.

Override them in your profile patch layer: