New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

dsh-git-plugin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-git-plugin

Git workflow plugin for DeepSeek Harness: slash commands and read-only git tools

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
81
65.31%
Maintainers
1
Weekly downloads
 
Created
Source

dsh-git-plugin

Git 工作流进入 DeepSeek Harness 会话:查看改动、新建分支、提交和可恢复快照

npm version CI on main npm downloads MIT license

安装 · 使用 · 文档与反馈

让 Git 工作流留在 DSH 会话里

查看改动、创建分支、提交前检查、保存可恢复快照。5 个斜杠命令 + 4 个模型只读工具,让你和模型看到同一份仓库状态。

  • 看清改动 — 分支、工作区状态、已暂存 / 未暂存 diff 与提交历史。
  • 顺手提交 — 创建分支,配置提交前检查,在会话中完成提交。
  • 留一份快照 — 用 stash 暂存工作区,随时查看与恢复。

本页对应 0.2.1,实测宿主为 DSH 0.2.0-rc.2;需要 Node.js ≥20、Git ≥2.24。完整兼容与验证记录。

安装

在需要使用插件的 profile 中执行,将 web 替换为实际名称:

dsh plugin --profile web add dsh-git-plugin@0.2.1

安装后自动注册插件。重启对应 profile 的 DSH;使用 Web 时刷新页面。

从手工启用的 0.2.0 升级时,先按迁移说明调整原配置,避免重复注册。GitHub 固定 tag 与源码安装。

使用

/status
/diff
/branch feat/my-change
/commit feat: 完成一项修改
命令用途
/status查看当前分支与工作区
/diff查看已暂存、未暂存的改动
/branch [<name>]查看分支,或新建并切换
/commit [<message>]查看提交指引,或运行检查并提交
/undo [list|pop]创建、列出或恢复 stash 快照

模型可以使用 git-status、git-diff、git-log、git-show 四个只读工具。例如:

先查看 Git 状态、diff 和最近 5 条提交,说明哪些改动已暂存,并指出提交前需要检查的内容。

提交范围: /commit <message> 会暂存目标仓库的全部改动再提交;执行前确认范围。不带参数只显示指引与改动。

快照含义: /undo 保存工作区改动(含未跟踪文件),不是回退 commit;pop 恢复时可能遇到冲突。

需要提交前跑测试、调大超时?见插件配置。

文档与反馈

当前提供命令与工具,Web Git 面板尚未实现,dsh-market 尚未收录。页面设计参考 dsh-agent-teams,横幅为原创 SVG。

License

MIT

Keywords

dsh

FAQs

Package last updated on 01 Oct 2026

Related posts