LeslieWylie/dsh-checkout-guard0

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 Analysis

核心用途是在 Agent 写入代码前自动核对 Git 仓库状态,防止在错误的分支或脏工作区上进行操作。适合频繁让 Agent 自动提交代码的开发者。

Package
dsh-checkout-guard
Version
0.1.0
License
MIT
Last updated
Aug 17, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LeslieWylie/dsh-checkout-guard

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.