LeslieWylie/dsh-checkout-guard ↗★ 0
dsh-checkout-guard
Pre-flight guard for git working copies: is the checkout you are about to write to the one you think it is? Branch identity, drift from the remote and how stale that figure is, the identity your next commit will carry, work already in the index, and duplicate clones of the same repository. Read-only, offline by default, deterministic.
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.