⌘

Tool Gatekeeper

v2.1.0πŸ›‘οΈTier 1 Security AuditedCLI v2.1.287+ Verified

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

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}]?`);
    }
  });
}
Security Audit97/100
Network EgressNone (Zero Socket Egress)
Filesystem ScopeBounded to Workspace
Credential Exposure0 Leaks Detected
Sandbox IsolationHost User Privilege

Technical Specifications

Min CLI Versionv2.1.287+
Categorytool-guards
Runtime Overhead< 18ms AST
LicenseApache-2.0
Mod Publisher