SuperAPIAI Directory

ThumbGate

github.com · AI coding

Turns thumbs-up/down feedback into enforced pre-action gates via PreToolUse hooks, stopping coding agents from repeating mistakes.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAndroid · Linux

About this tool

Purpose ThumbGate is a self-improving pre-action firewall for AI coding agents. AI coding agents repeat mistakes, and a single wrong tool call can wipe a directory, leak a secret, or push broken code. ThumbGate acts as a local-first Pre-Action Checks engine, running in the PreToolUse hook to evaluate a tool call before it actually executes, thereby intercepting mistakes before they happen.

Key capabilities

  • Feedback to rules: Capture 👍/👎 feedback (via CLI, MCP, or ThumbGate GPT), and distill specific lessons learned into preventive rules. Repeated specific failures can be escalated from warnings to blocking thresholds.
  • Pre-action evaluation: Evaluate the next proposed tool call against currently effective rules (literal/AST matching + local vectors), enforcing allow / warn / deny before the tool runs.
  • Default hard blocking: By default, hard-block detected secret leaks, as well as two types of direct self-disabling commands—commands that terminate the ThumbGate gate process, and commands that enable its bypass environment override.
  • Default warn and log: Other high-risk categories (rm -rf, force push, fetch-and-run, direct guardrail edits) warn and log by default. Set THUMBGATE_STRICT_ENFORCEMENT=1 to enable strict mode, turning warnings into hard denials.
  • Prompt evaluation: npx thumbgate eval turns accepted feedback into reusable evaluation cases and local proof reports.
  • Local experience storage: Accepted feedback is stored as local experience; the firewall improves from operations without retraining models.

Usage

  • Install and initialize: Initialize with npx thumbgate init, and write mcpServers.thumbgate as well as the PreToolUse, UserPromptSubmit, PostToolUse, and SessionStart hooks. The installation scope can be machine-wide or per-project. Machine-wide is the default choice for most developers. Cross-repository blocking is not automatic: lessons learned in one project are applied elsewhere only with shared storage (machine-wide) or by exporting/importing experience.
  • MCP installation (stdio): Requires ThumbAs a directory and client installed as an MCP server, Gate must start a stdio MCP, not an HTTP API. Equivalent command: npx -y thumbgate mcp. Do not use npm start for MCP—that starts the hosted HTTP API (src/api/server.js), not the agent-facing stdio service.
  • MCP tool surface: gate_check (read/evaluate proposed tool calls), feedback capture and session tools (write), dashboard/stats (read). Destructive agent actions are still blocked/warned by PreToolUse; ThumbGate will not execute the user's shell commands for you.
  • Progressive wiring: provides numbered configs in config/progressive/, plus a Progressive Setup Guide, to prove the pipeline works step by step before enabling matching. An empty dashboard is success.
  • GitHub Marketplace Action: ThumbGate Agent Governance (uses: IgorGanapolsky/ThumbGate@v1).
  • Streamlined workflow: capture 👍/👎 feedback → escalate specific lessons into prevention rules via history-aware lesson distillation → evaluate the next proposed tool call → allow/warn/deny before the tool runs.

When it applies For operators whose AI coding agents might leak secrets or damage the repository before a human sees the tool call, it supports Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and other MCP agents. It is positioned in the "guide → generate → verify → resolve" agent development loop, at the pre-action boundary/gate between generation intent and execution action. For spec-driven agent frameworks (such as GSD, GitHub Spec Kit), ThumbGate is the guardrail layer: it sits at the boundary between the plan and the generated tool calls and their execution, used in parallel with GSD / Spec-Kit rather than replacing them.

Limitations and notes

  • Honest statement: ThumbGate does not update model weights; it intercepts tool calls at runtime. Local-first—the execution path does not require the cloud.
  • ThumbGate is not a GitHub star-inflation tool, is not fake engagement, and cannot replace npm install or a merged PR.
  • Difference from CLAUDE.md / .cursorrules: the latter are context; ThumbGate is external allow/warn/deny before the tool runs.
  • Pricing: free tier has 2 feedback captures per day (10 total), with up to 3 auto-escalated active prevention rules. Pro ($19/month or $149/year) is the individual tier, offering unlimited rules, history-aware lessons, linked feedback session flows, a personal dashboard, and DPO export. Enterprise is custom, requiring requirements submission before scoping; hosted team lesson sync and hosted organization dashboard are not yet generally available (not general availability).
  • License: MIT, see LICENSE. Project policies are in SECURITY.md and THREAT_MODEL.md.
  • This project was built by Igor Ganapolsky, covering payments (Stripe/Connect), AI agent guardrails/MCP, Android, and backend; available for a small amount of contract work: $120–150/hour, 1099, remote in the US.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools