DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Git Guard — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
G

@yokira404/dsh-git-guard

Git Guard

Session 标题栏右侧工具行中的两个图标开关,用于阻止代理写入本地 Git 仓库或将其上传到远程仓库。它们位于窗口控件旁边,与该工具行的其余部分之间由细线分隔。按钮采用宿主自身的界面按钮样式,并通过图标传达状态:未启用保护时显示单独的仓库图标,启用保护后会添加环和斜线。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:Yokira404/dsh-git-guard#af975ceb97537e59594549b8fd61d0b1cae121ec
README兼容性版本

说明

Session 标题栏右侧工具行中的两个图标开关,用于阻止代理写入本地 Git 仓库或将其上传到远程仓库。它们位于窗口控件旁边,与该工具行的其余部分之间由细线分隔。按钮采用宿主自身的界面按钮样式,并通过图标传达状态:未启用保护时显示单独的仓库图标,启用保护后会添加环和斜线。左侧开关阻止 git add / git commit,右侧开关阻止 git push / git remote / gh。启用一个保护开关不会解除另一个;启用本地保护开关时会同时启用上传保护开关,关闭上传保护开关时也会同时解除本地保护开关。两者初始均为启用状态。

兼容性与来源证明

Git Guard 以 @yokira404/dsh-git-guard 发布,当前版本为 1.0.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/16

版本

1.0.0stable
2026/10/16

相关插件

正在加载相关插件…

最新版
1.0.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/16
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Cc Safety Netcc-safety-net编码代理 CLI 钩子——阻止破坏性命令和访问机密文件Vision Toolkit@anionex/dsh-vision-toolkit面向 Harness 原生集成的 DeepSeek 与 agent-vision-toolkit:图像问答、OCR、定位、UI 还原、像素差异、Artifacts 和 Web UI。Remotedsh-remoteDeepSeek Harness 的远程工作助手:连接 SSH(密码/密钥/代理/键盘交互/代理跳转),选择远程工作区,使用 22 个 rw_* 工具操作该工作区(包括 rw_edit/rw_stat/rw_mkdir/rw_remove/rw_move/rw_forward),具备冲突感知的镜像 syBridge@wenbin_wb/dsh-bridgeDSH 远程连接/远程控制插件(remote control):手机扫码即可在移动端/公网继续用 DeepSeek Harness,人不在电脑前也能接着干。一键局域网二维码、Cloudflare 公网隧道、自建隧道与微信 / QQ / 飞书 / Telegram Bot(多工作区/会话持久化/媒体/卡片审批/流式输出),无需自己搭公网服务器。

README

Git Repository Guard · dsh-git-guard

中文说明 →

Two switches at the right of the Session header that stop an agent from writing your local git repository or uploading it to a remote.

SwitchPositionWhat it blocks
Local repositoryleftWrites to the local repository: git add, git commit, git reset, git merge, git tag and friends
Remote repositoryrightAnything that reaches a remote: git push, git pull, git clone, git remote, gh and friends

Both start on. The block happens before a command runs: the call is not executed, and the agent gets a clear refusal instead.

Where the two switches sit

Install

dsh plugin --profile <profile> add https://github.com/Yokira404/dsh-git-guard

Reload the page and the two switches appear at the right of the Session header.

By hand: add @yokira404/dsh-git-guard to dsh.profile.bundles in ~/.dsh/profiles/<profile>/package.json, and point dependencies at this package.

How the two switches interact

Two rules, both the consequence of a click — never a condition that has to hold:

ClickLocalRemote
left (local)togglesturns on with the local switch when that lands on; left alone when it lands off
right (remote)turns off with the remote switch when that lands off; left alone when it lands ontoggles
  • Switching a guard on never releases the other one. Asking for one protection must not dismantle the other.
  • Releasing the upload guard releases the local one with it — the local writes are exactly what an upload would carry.
  • One deliberate opening: with both off, the right switch arms the upload guard alone, leaving local writes open.

All four states are reachable:

StateLocal writesUploads
on · on (default)blockedblocked
off · onallowedblocked
on · offblockedallowed
off · offallowedallowed

What is blocked

Left switch — writes to the local repository:

git add · git commit · git am · git apply · git checkout-index · git config
git merge · git mv · git notes · git rebase · git reset · git restore
git revert · git rm · git stash · git switch · git tag
git update-index · git update-ref

Right switch — anything that reaches a remote:

git push · git pull · git fetch · git clone · git ls-remote · git remote
git submodule · git send-pack · git archive · git request-pull · git svn
gh repo / pr / release / issue / run / workflow / api / gist / secret / …
a repository URL on the command line (github.com, gitlab.com, gitee.com, …)

Never blocked: git status, git log, git diff, git show, git branch, git blame, git init, git rev-parse, git check-ignore, git ls-files, git worktree, git help, gh auth, gh config, gh api /user, and anything that is not about git at all. git init is allowed on purpose: creating a repository neither commits nor uploads anything.

Matching is quote-aware: git commit -m "do not push this" is a local commit, not an upload, and echo "git push" > notes.txt is nothing. It is not fooled by prefixes either — sudo git push, env FOO=1 git commit and C:\Program Files\Git\cmd\git.exe push are all recognised.

What the agent sees when it is blocked

已阻止:DSH 的「Git 仓库保护」插件当前开着左侧的本地仓库开关,
写入本地仓库的操作(git add / git commit 等)被拒绝。
被拦截的命令:`git commit -m x`
这是用户有意设置的开关,不是故障:不要改用其他命令、其他工具或直接调用 API 绕过它,
也不要尝试关闭该开关。请把这一步作为「未执行」如实报告给用户,
并说明用户可以点击会话标题栏的两个方形按钮自行放行。

Limits

  • It never changes your repository: no .git/hooks, no git config, blocking only.
  • It also catches text that merely names a command: matching reads the whole of a tool call's command-like field (command, script, code, …), so writing a document whose text contains git push can have that write blocked. That is the deliberate bias — one extra blocked write beats one upload that got through.
  • It cannot stop paths that avoid the shell; it targets the real one, an agent uploading a repository through a command.
  • No undo: the block is up front, so there is no window in which something was already uploaded.
  • State is not persisted: a DSH restart returns both switches to on.

License

MIT