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.
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.
Zero-Time AST Interception
Evaluates tool payloads prior to kernel fork.
0-100 Impact Index
Weighted heuristic scoring: files touched, git dirty state, env scope.
Native CLI Hook
Zero proxy daemon required; hooks straight into Claude tool calls.
Lifecycle Architecture & Hook Flow
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 heuristic checks only. Not a formal commercial certification or warranty. Review source before installing.