truelove-dreamer/dsh-plugin-git-workflow ↗★ 2
dsh-plugin-git-workflow
DSH 专属 Git 工作流工具插件,提供状态查询、差异对比、规范化提交、历史记录及分支管理工具。
AI 分析
核心用途是让 Agent 在沙箱和审批机制下安全地执行 Git 操作。适合需要 Agent 辅助进行版本控制、自动提交代码且不希望直接暴露裸 Shell 的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:truelove-dreamer/dsh-plugin-git-workflow说明文档
阅读完整 README ↗使用
git_status # 看当前仓库状态
git_diff # 看未暂存改动
git_diff staged: true # 看已暂存改动
git_commit message: "fix: ..." # 提交(全部已暂存内容)
git_commit message: "feat: ..." paths: ["src/a.js"] # 先 add 再提交
git_log count: 20 files: true # 最近 20 条 + 改动文件
git_branch # 分支列表
所有工具都接受 workdir(默认会话工作目录,相对路径按会话目录解析)。