qingyou002/dsh-git-commit ↗★ 0
dsh-git-commit
DSH slash command /commit: stage every change, summarize the staged diff with the session model, and commit. 适合需要AI自动总结代码差异并快速提交Git的开发者。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qingyou002/dsh-git-commitREADME
Read the full README ↗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.
| Option | Default | Meaning |
|---|---|---|
timeoutMs | 90000 | Deadline for the summarizing model call, in milliseconds. |
maxDiffChars | 48000 | The staged diff is truncated beyond this many characters — head plus tail with a marked gap — before it is sent. |
maxTokens | 2048 | Token ceiling for the summarizing call. |
maxTitleChars | 100 | Hard cap on the first line; a longer title is cut and suffixed with .... |
maxBullets | 12 | Maximum number of bullet lines kept from the reply. |
Override them in your profile patch layer: