# thumbgate pretool gate

> Hard-block secret leaks and recurring agent mistakes using a pre-tool execution gate.

thumbgate pretool gate is a paid AI agent skill on Agensi by Igor Ganapolsky, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Igor Ganapolsky](https://www.agensi.io/creators/igor-g)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-12); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/thumbgate-pretool-gate-1
- Tags: llm-ops, security, node-js, mcp, automation

## About this skill

Standard LLM agents often leak environment secrets or repeat documented mistakes despite system prompts. This skill integrates ThumbGate into your agent's execution loop to provide a hard block on sensitive data exfiltration and recurring failures. It enforces a strict "deny-by-default" policy for secrets and ranked lessons, preventing the agent from proceeding with risky tool calls.

### What it does
- **Enforce secret-leak blocks** by scanning tool commands, URLs, and file paths for sensitive data.
- **Prevent recurring failures** by checking tool calls against a local registry of ranked lessons.
- **Scaffold gate infrastructure** using `npx thumbgate init` to set up local state and MCP configurations.
- **Track gate performance** by recording "thumbs-down" feedback for misses and "thumbs-up" for successful blocks.
- **Report gate statistics** to provide a clear view of how many risky actions were prevented.

### How it works
1. **Initialize the gate** within the project directory to establish the local security state and MCP config.
2. **Execute pre-tool checks** by piping tool calls through the gate-check command before execution.
3. **Capture feedback** after an action to train the local model on what to block or what was missed.
4. **Monitor health** by reviewing counters and stats to ensure the security policy is firing correctly.

### Frameworks & tools
This skill utilizes the `thumbgate` npm package (v1.37.2) and integrates via npx commands. It is compatible with projects using Node.js and agents supporting Model Context Protocol (MCP) or CLI-based tool interception.

### Why this beats prompting it yourself
Prompt-based instructions to "not leak secrets" are frequently ignored by models under pressure. This skill moves the logic into a hard execution gate that physically stops the tool call, ensuring that a warning results in a turn termination rather than a retry.

### Use cases
- Prevent agents from accidentally posting `.env` secrets to external API endpoints.
- Block the agent from repeating a specific coding pattern that previously failed a test.
- Integrate a local security firewall into Claude Code or Cursor workflows.
- Audit agent reliability by tracking how often the gate intercepts a failure.

### Known limitations
Does not read home-directory credentials or environment variables. Does not replace branch protection or human review. Hosted Pro features like shared history are not included.

## Requires

- thumbgate
- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the thumbgate pretool gate skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this gate differ from just telling my agent not to leak secrets in the system prompt?

ThumbGate acts as a physical 'kill switch' for tool calls, blocking secret leaks and recurring logic errors before they execute, whereas system prompts are often ignored or bypassed by models.

### Which AI agents and frameworks are compatible with this skill?

This skill is designed for Node.js environments and is compatible with any agent that supports the Model Context Protocol (MCP) or CLI-based tool interception, such as Claude Code or Cursor.

### What is the installation process for integrating the gate into my existing workflow?

Setup is handled via the `npx thumbgate init` command, which scaffolds the necessary local state, security policies, and MCP configurations within your project directory.

### How does the gate identify which tool calls to block?

The gate uses a local registry of ranked lessons and a scanning engine to check tool commands, URLs, and file paths for sensitive data or previously identified mistakes.

### Can I customize the gate to recognize specific mistakes unique to my project?

Yes, you can record 'thumbs-down' feedback for missed detections and 'thumbs-up' for successful blocks, allowing the local gate to improve its accuracy based on your specific project needs.

### What exactly is included in the purchase of this skill?

The purchase includes the core gate infrastructure, local state management, and the CLI integration for secret and failure prevention; it does not include hosted Pro features like shared team history.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
