⌘
Git Sentinel
v1.1.5AST Scan: 0 CriticalSource PublicCLI v2.1.287+ TestedBranch protection, conventional commit validation, and dirty tree prevention hook for autonomous coding turns.
⚡Installation Specifier
$/plugin install git-sentinel@marketplace
ℹUninstall anytime:
claude plugin uninstall git-sentinel@marketplaceProblem Solved & Architectural Motivation
Ensures agent commits adhere to conventional commit standards, prevents direct commits to protected branches (main, prod), and blocks operations if untracked secret files are detected.
Before Execution
Zero-Time AST Interception
Evaluates tool payloads prior to kernel fork.
Scoring Model
0-100 Impact Index
Weighted heuristic scoring: files touched, git dirty state, env scope.
Non-Intrusive
Native CLI Hook
Zero proxy daemon required; hooks straight into Claude tool calls.
Lifecycle Architecture & Hook Flow
Step 01
Claude Plan
Prompt Inference
Step 02
Tool Call
tool.call Payload
HOOK INTERCEPT
git-sentinel
<18ms Heuristic
Step 04
OS Execution
Kernel Fork
Manifest Schema (plugin.json)
{
"name": "git-sentinel",
"version": "1.1.5"
}Hook Implementation (register.js)
export default function setup(mod) {
mod.on('git.commit', ({ branch, message, abort }) => {
if (['main', 'master', 'prod'].includes(branch)) {
return abort('Direct commits to protected branch are prohibited by Git Sentinel.');
}
});
}Static Security AuditTested commit e4b91f2
0 CriticalSubprocessesClean (No Exec)
Dynamic Code (eval)Clean (0 eval)
Credential ExposureClean (0 leaks)
Network EgressZero Socket Egress
Filesystem ScopeWorkspace Bound
Read 6-Point Audit Methodology ↗
Static heuristic checks only. Not a formal commercial certification or warranty. Review source before installing.
Technical Specifications
Min CLI Versionv2.1.287+
Categoryworkflow-automation
Runtime Overhead< 18ms AST
LicenseMIT
Mod Publisher
@D
devops-guard
github.com/devops-guard ↗