LeslieWylie/dsh-checkout-guard ↗★ 0
dsh-checkout-guard
Git 工作副本预检守卫:检查分支状态、远程偏差、提交者身份及未暂存改动。默认只读且离线。
AI 分析
核心用途是在 Agent 写入代码前自动核对 Git 仓库状态,防止在错误的分支或脏工作区上进行操作。适合频繁让 Agent 自动提交代码的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LeslieWylie/dsh-checkout-guard说明文档
阅读完整 README ↗Configuration
- id: checkout-guard
name: 'dsh-checkout-guard'
config:
roots:
- /Users/you/projects
roots bounds everything the plugin will look at. Unset, it defaults to your
home directory.