⌘

Tool Gatekeeper

v2.1.0AST Scan: 0 CriticalSource PublicCLI v2.1.287+ Tested

Zero-trust policy engine and human-in-the-loop escalation guardrail for sensitive terminal commands.

@sentinel-labs•★2,190 stars•↓9,800 active installs•Apache-2.0 License
View Source ↗
⚡Installation Specifier
$/plugin install tool-gatekeeper@marketplace
ℹUninstall anytime:claude plugin uninstall tool-gatekeeper@marketplace

Problem Solved & Architectural Motivation

Enforces strict team-wide security policies. Configurable regex rules and AST checks prevent unauthorized port bindings, external network calls, and privileged file modifications without explicit terminal approval.

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

POSIX Event Engine
Step 01
Claude Plan
Prompt Inference
→
Step 02
Tool Call
tool.call Payload
→
HOOK INTERCEPT
tool-gatekeeper
<18ms Heuristic
→
Step 04
OS Execution
Kernel Fork

Manifest Schema (plugin.json)

{
  "name": "tool-gatekeeper",
  "version": "2.1.0"
}

Hook Implementation (register.js)

TypeScript SDK
export default function gatekeeper(sdk) {
  sdk.on('tool.call:*', async ({ tool, args, promptConfirm }) => {
    if (['deploy', 'drop', 'chmod'].some(k => JSON.stringify(args).includes(k))) {
      return await promptConfirm(`Authorize sensitive operation for [${tool}]?`);
    }
  });
}
Static Security AuditTested commit e4b91f2
0 Critical
SubprocessesClean (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+
Categorytool-guards
Runtime Overhead< 18ms AST
LicenseApache-2.0
Mod Publisher