Server data from the Official MCP Registry
Pre-action gates for AI coding agents: blocks catastrophic commands; thumbs-downs add warning rules.
About
Pre-action gates for AI coding agents: blocks catastrophic commands; thumbs-downs add warning rules.
At a glance
- Runs
- On your computer, from the npm package thumbgate, which we verified belongs to this listing.
- Works with
- Claude Desktop, Claude Code, Grok Build (formerly Cursor), Windsurf, VS Code, Codex, Antigravity CLI, Gemini CLI, ChatGPT.
Security report
How we scoreValid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
2 files analyzed ยท 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
What You'll Need
Set these up before or after installing:
Environment variable: THUMBGATE_MCP_PROFILE
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"thumbgate": {
"command": "npx",
"args": [
"-y",
"thumbgate@1.82.0"
],
"env": {
"THUMBGATE_MCP_PROFILE": "your-thumbgate-mcp-profile-here"
}
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
ThumbGate ๐ ๐
What it does
ThumbGate checks an AI coding agent's actions before they run. Catastrophic commands and secret leaks are denied; your thumbs-downs become checks on the next matching command. One wrong tool call can wipe a directory, leak a key, or push broken code.
ThumbGate is the local-first Pre-Action Checks engine for AI coding agents. It runs in the PreToolUse hook to evaluate the proposed tool call before execution โ so costly mistakes can be caught before they happen.
- Blocks the worst commands out of the box: secret leaks, force-push,
git reset --hard,rm -rfon home or root,DROP TABLE. - Holds after your ๐: the command your agent just ran is held until you say go ahead.
- Checks some claims: in Claude Code, a reply that says "deployed" with no proof, or states that something is open or running with no check, is sent back to the agent.
- Runs on your machine: no account and no cloud needed for the checks.
Works with Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and other MCP agents. โถ 90-second demo ยท GIF walkthrough
Quick Start
You need Node.js 18 or newer. Run these two commands in the project where your agent works:
npx thumbgate init # finds your agent (Claude Code, Cursor, Codex, ...) and installs the hooks
npx thumbgate doctor # checks that the hooks are really wired
What success looks like: doctor prints Overall: READY and exits with code 0. If it says something is missing, it lists what to fix; run init again or pick your agent from the table below.
That's it. The built-in checks are now active. Your agent can keep working as usual; ThumbGate only speaks up when a tool call matches a check.
See a block without risking anything. This hands ThumbGate the same input your agent's hook would, without running the command:
echo '{"tool_name":"Bash","tool_input":{"command":"git push --force"}}' | npx thumbgate gate-check
You get "permissionDecision":"deny" and [GATE:force-push] Force push blocked. In a real session, the agent gets that answer and the push never runs.
Your first gate, start to finish (Claude Code)
Run in an empty git project with an empty HOME from the published package on 27 Nov 2026. โฆ marks lines cut for length. The two echo lines send the hooks what Claude Code sends them, so nothing is deployed.
1. Install
$ npx thumbgate init --agent claude-code
โฆ
Claude Code: wired PreToolUse hook
โฆ
2. The agent is about to run a command. {} means ThumbGate has no objection.
$ echo '{"tool_name":"Bash","tool_input":{"command":"npm run deploy:staging"},"session_id":"demo"}' | npx thumbgate gate-check
{}
3. Create the gate. In Claude Code you just type thumbs down: that deployed to the wrong environment. From a terminal:
$ echo '{"prompt":"thumbs down: that deployed to the wrong environment","session_id":"demo"}' | npx thumbgate hook-auto-capture
ThumbGate hold: thumbs-down received. `npm run deploy:staging โฆ` is refused until the person says "go ahead". Ask what to change. โฆ
โ
Feedback captured โฆ
4. Trigger it: the block
$ echo '{"tool_name":"Bash","tool_input":{"command":"npm run deploy:staging"},"session_id":"demo"}' | npx thumbgate gate-check
{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"[GATE:thumbs-down-hold] The person gave a thumbs-down right after `npm run deploy:staging โฆ`. That action is held until the person says to go on (a thumbs-up or \"go ahead\"). โฆ"}}
5. Check the wiring
$ npx thumbgate doctor
โฆ
Overall: READY
โฆ
ThumbGate MCP wiring doctor: OK
โฆ
held: `npm run deploy:staging โฆ` clear it: npx thumbgate holds release
โฆ
This gate is a hold: npx thumbgate holds release clears it.
Teach it your first rule (optional)
When your agent does something you never want repeated, give it a thumbs-down:
In Claude Code you can also install it as a plugin:
/plugin marketplace add IgorGanapolsky/ThumbGate
/plugin install thumbgate@thumbgate-marketplace
npx thumbgate capture --feedback=down --context="Never run DROP on production tables" --what-went-wrong="agent proposed DROP" --what-to-change="require review for DROP"
From then on the agent sees that lesson before a matching action. After three matching thumbs-downs it becomes a check that warns, or blocks with THUMBGATE_STRICT_ENFORCEMENT=1. (DROP TABLE itself is already denied by default.)
To see your rules and what was caught, run npx thumbgate dashboard --open. An empty dashboard on day one is normal; it means nothing has fired yet.
Want a phased walkthrough with a verify step at every stage? Follow the Progressive Setup Guide (Progressive wiring online; numbered configs in config/progressive/).
Install for your agent
| Agent | Command | Enforcement |
|---|---|---|
| Claude Code | npx thumbgate init --agent claude-code | ๐ก๏ธ Hard โ PreToolUse |
| Codex | npx thumbgate init --agent codex | ๐ Wired โ pre_tool_use hook, not yet tested end to end with Codex's own payload |
| Gemini CLI | npx thumbgate init --agent gemini | ๐ Wired โ PreToolUse hook, not yet tested end to end with Gemini CLI's own payload |
| ForgeCode | npx thumbgate init --agent forge | ๐ก๏ธ Hard โ pre_tool_use |
| Cursor | npx thumbgate init --agent cursor | ๐ก๏ธ Hard for shell commands โ beforeShellExecution hook denies them. ๐ฌ Advisory for every other Cursor tool (file edits, MCP calls) โ MCP gate_check. If the hook errors, the command is denied (fails closed; see Cursor adapter). |
| Cline | npx thumbgate init --agent cline | ๐ฌ Advisory โ MCP + .clinerules |
| OpenCode | npx thumbgate init --agent opencode | ๐ฌ Advisory โ MCP gate_check |
| Any MCP agent | npx thumbgate serve | ๐ฌ Advisory โ MCP gate_check |
| Amp | npx thumbgate init --agent amp | ๐ Feedback capture |
| GitHub Actions | uses: IgorGanapolsky/ThumbGate@v1 | ๐ฉบ Marketplace Action โ doctor / AI inventory in CI |
Per-agent guides: Claude/Codex bridge ยท Codex profile ยท Cursor ยท MCP setup
Install scope: machine-wide vs per-project
| Scope | Command | Claude Code hooks | MCP entry | Lessons and dashboard data |
|---|---|---|---|---|
| Machine-wide (default) | npx thumbgate init | ~/.claude/settings.json, so they run in every repo on this machine | <repo>/.mcp.json | <repo>/.thumbgate/ |
| Per-project | npx thumbgate init --project | <repo>/.claude/settings.json, so they run only in this repo | <repo>/.mcp.json | <repo>/.thumbgate/ |
Lessons stay per repo in both scopes: a ๐ in repo-A does not flag anything in repo-B. Cross-repo blocking is not automatic. Versions before 1.31 kept lessons in <repo>/.claude/memory/feedback/ or ~/.thumbgate/projects/<name>/. ThumbGate reads <repo>/.thumbgate/ first once it exists, and init creates it, so copy the old files into <repo>/.thumbgate/ to keep those lessons. Keep .thumbgate/ out of git. Inits before 1.44.0 wrote hooks to ~/.claude/settings.local.json, which Claude Code does not read. From 1.44.0 the ThumbGate MCP server moves them to ~/.claude/settings.json the next time it starts (set THUMBGATE_DISABLE_CLAUDE_SELF_HEAL=1 to stop that), npx thumbgate init moves them right away, and npx thumbgate doctor tells you if they are still in the old file. <repo>/.claude/settings.json is the file teams usually commit, so check the hook paths in it before you commit it.
Skills and slash commands can run shell commands while they load (!`cmd` ), and Claude Code never sends those to PreToolUse. On Claude Code 2.1.332 or later, init also wires the PreSkillShellCommand hook (thumbgate skill-shell-gate), which runs the same gate-check on them, and the MCP server adds it to older installs on its next start. It warns by default and logs to .thumbgate/skill-shell-gate-log.jsonl. Set THUMBGATE_SKILL_SHELL_GATE=enforce to block those commands, or off to skip the check.
For an MCP-only install, npx thumbgate install-mcp adds mcpServers.thumbgate to ~/.claude/settings.json, and npx thumbgate install-mcp --project adds it to <repo>/.claude/settings.json instead. Neither writes hooks.
MCP tools (surface): gate_check (read/evaluate proposed tool call), feedback capture + session tools (write), dashboard/stats (read). Destructive agent actions stay blocked/warned by PreToolUse โ ThumbGate does not execute user shell commands for you.
Does the gate cover MCP tool calls? Yes, for Claude Code: the installed PreToolUse hook uses the matcher .* (scripts/auto-wire-hooks.js), so mcp__server__tool calls go through the same gate as Bash, Edit and Write.
Any MCP client, Glama, or registry install (stdio)
Directories and clients that install ThumbGate as an MCP server must start stdio MCP, not the HTTP API:
npx -y thumbgate serve
- Equivalent:
npx -y thumbgate mcp - Do not use
npm startfor MCP โ that launches the hosted HTTP API (src/api/server.js), not the agent-facing stdio server.
What a ๐ and a ๐ do
| You give | What ThumbGate does |
|---|---|
| ๐ typed in the agent session right after a command | Makes a learned rule that denies that command the next time the agent tries it, with your reason (since 1.64.0). A rule that would have blocked your past safe calls stays a warning. Lift a deny for an hour with npx thumbgate unblock <gate-id>. |
| ๐ from the CLI with only a sentence of context (no command attached) | Saves a lesson the agent sees before a matching action. On the third matching ๐, a check fires: a warning by default, a block with THUMBGATE_STRICT_ENFORCEMENT=1. |
| ๐ with one sentence of context | Saves a success lesson and counts it in your stats. It does not create, loosen or lift a check. |
| ๐ or ๐ with no context and no command | Logged only. Nothing is stored or promoted. |
| ๐ right after a command, with auto-approve on (opt-in) | The next call with the same pattern (for example npm test, git status) skips Claude Code's permission prompt. Hard blocks still win, a later ๐ on the pattern revokes it, and chained commands, sudo, rm, force-push, curl -k and Write are never auto-approved. In Claude Code auto mode the approval also skips the auto-mode classifier (tested on 2.1.332), so git commands that can discard work (checkout, restore, reset, stash, rebase, commit --amend) only match the exact command you gave ๐. Turn on with npx thumbgate auto-approve on; see what it learned with npx thumbgate auto-approve status. |
Example: the agent runs npm run deploy:staging and you type "thumbs down: that pushed to the wrong environment". The next npm run deploy:staging gets a warning, with your reason, before it runs. You thumbs-down it a second time, and it becomes a learned rule that warns on every later run. A later ๐ on the same command is saved as a success lesson, and the rule stays in place.
Holds, and how to release or remove a gate
A hold is a pause. When you type a ๐ right after the agent ran something, ThumbGate warns the agent, with your reason, before that same action (the same tool; for a shell command, the same first three words) until you say to go on. With THUMBGATE_HARD_BLOCK_GATES=thumbs-down-hold or strict mode the hold refuses it instead. A hold on inline code (python3 -c, a heredoc, a pipe into Python) covers that script in any form, not every later python3 run. It exists so the agent cannot repeat what you just marked wrong. A hold lasts up to 24 hours, and several ๐ on the same action count as one hold.
Three ways out:
- Say it. Start your message with "go ahead", "continue", "proceed", "resume" or "unblock", or give a ๐.
- Clear it now. Run
npx thumbgate holds releasein the project folder.npx thumbgate holdslists what is held. - Turn the hold off. Run
npx thumbgate holds off. It takes effect in the session that is already running, andnpx thumbgate holds onbrings it back. SettingTHUMBGATE_THUMBS_DOWN_HOLD=0before you start a session does the same for that session.
Turning the hold off keeps every other gate: the denied-by-default commands (force-push, secrets sent out, rm -rf on home and the like) and the chat send rules stay on. THUMBGATE_SEND_GATE=0 is the switch for the whole chat send gate, holds included. npx thumbgate break-glass does not lift a hold.
Limits: a hold matches the same tool or the same first three words, so a reworded command is not held, and ThumbGate is not a sandbox.
Unblock a gate
npx thumbgate unblock (1.60.0+) shows which gate or hold refused a call and the exact command that clears it.
npx thumbgate unblock holdsreleases thumbs-down holds.npx thumbgate unblock <gate> --reason "why" --ttl 1hgrants a time-boxed, audited override for that one gate (24 hours at most;--revokeends it early). The override turns the gate into a warning even in strict mode or underTHUMBGATE_HARD_BLOCK_GATES.- Catastrophic commands, secrets and attempts to switch off ThumbGate are never unblocked. Change the command instead. From 1.61.0 the money and outbound-send gates (
financial-control,outbound-email-sendand the other never-demoted floors) can't be unblocked either, if you've turned them into blocks withTHUMBGATE_HARD_BLOCK_GATES. - From 1.61.0 the local dashboard (
npx thumbgate dashboard --open) has an Unblock panel that does the same with buttons.
Agents can use the thumbgate-unblock skill (skills/thumbgate-unblock/SKILL.md) instead of asking a person.
How it works (short)
- Capture ๐/๐ feedback (CLI, MCP, linked feedback session flow /
open_feedback_session, or ThumbGate GPT) - Promote concrete lessons via history-aware lesson distillation into prevention rules
- Evaluate the next proposed tool call against active rules (literal/AST + local vectors)
- Allow / warn / deny before the tool runs
npx thumbgate brain --write # โ .thumbgate/BRAIN.md (lessons + gates in one artifact)
Pro operators can invoke search_lessons through MCP and use npx thumbgate lessons from the CLI. History-aware feedback sessions and lesson search are Pro capabilities; Free does not include recall or search.
How enforcement works
It hard-blocks detected secret leaks and two direct self-disable command classes by default โ commands that terminate the ThumbGate gate process or enable its bypass environment override. It also denies catastrophic commands by default: force-push, git reset --hard, git clean -fdx, rm -rf on home or root, DROP TABLE, find / -delete, and cloud or cluster wipes (terraform destroy, kubectl delete, aws s3 rm). Since 1.59.0 every other gate, including ๐ holds and rules learned from ๐, warns and counts its fires (npx thumbgate gate-stats). THUMBGATE_HARD_BLOCK_GATES=<gate,gate> turns chosen gates back into blocks. Set THUMBGATE_STRICT_ENFORCEMENT=1 for strict mode: most Warnings become Denied, but a rule learned from one ๐ stays a Warning. The product facts table lists each case.
| Verdict | Default behavior |
|---|---|
| โ Hard-block | Detected secret leaks; process-kill/environment-override self-disable; changes to the hooks section of Claude settings; catastrophic commands (force-push, git reset --hard, git clean -fdx, rm -rf on home or root, DROP TABLE, find / -delete, cloud and cluster wipes) |
| ๐ Warn + log | ๐ holds, rules learned from ๐, fetch-and-run, spend and email sends, vulnerability and license findings, other matching rules (most become Denied in strict mode; see product facts) |
| ๐ Allow | Everything else |
Accepted feedback is stored as local lessons. Repeated concrete failures become prevention rules that warn by default. The model is not retrained. Prompt evaluation (npx thumbgate eval) turns accepted feedback into reusable eval cases and local proof reports.
Honest disclaimer: ThumbGate does not update model weights. It intercepts tool calls at runtime. Local-first โ no cloud required for the enforcement path.
Host-level limits (Claude Code): enforcement holds only on paths where the hook runs.
claude --safe-modestarts without user/project hooks andclaude --bareskips hook discovery entirely, so ThumbGate does not run on either path (CLI reference; safe-mode also observed by an external harness on 2.1.332, while that harness's--barerun was inconclusive).- A hook that exits 1 is treated as an error and the call goes through; only exit code 2 or a JSON deny blocks. ThumbGate answers with JSON decisions, so its blocks do not depend on exit codes.
- If you install another PreToolUse hook that returns
updatedInput, the hook that finishes last wins, so a hook finishing after ThumbGate can rewrite a command ThumbGate allowed. A later deny still blocks.npx thumbgate doctorlists any other PreToolUse hooks it finds in user and project settings (managed, plugin and--settingshooks are not inspected) โ but this is a warning only; it cannot prevent a rewrite, and the residual gap stays until the executor itself verifies the decision.
(Exit-code, last-finisher and safe-mode behavior measured by an external harness on Claude Code 2.1.332, 3 runs per case, judged by what reached disk: the claude-code-cli-hooks examples in the oxdeai/oxdeai repository, 2026-11-28.)
Agent tries: rm -rf tests/
ThumbGate: ๐ WARN + LOG โ "Never delete test directories"
Pattern matched: rm.*-rf.*tests
Source: your thumbs-down from last Tuesday
Strict mode: โ DENY before tool execution
flowchart LR
A["Agent tool call"] --> B{"Rule match?"}
B -- exact --> D["On-device gate"]
B -- semantic --> C["Local LanceDB"]
C --> D
D -- secret/kill --> E["โ Hard-block"]
D -- known-bad --> G["๐ Warn + log"]
D -- safe --> F["๐ Allow"]
โ secret-exfiltration โ hard-block (default)
โ self-protect-kill โ hard-block (default)
โ self-protect-env-override โ hard-block (default)
โ self-protect-hooks-disable โ hard-block (default)
โ force-push โ hard-block (default)
โ git-reset-hard โ hard-block (default)
โ git-clean-force โ hard-block (default)
โ rm-rf-home-or-root โ hard-block (default)
โ db-drop-table-production โ hard-block (default)
โ ๏ธ thumbs-down-hold โ warn; hard-block under strict
โ auto-* (learned) โ deny (stays warn if it would have blocked past safe calls)
โ ๏ธ protected-branch โ warn; hard-block under strict
โ ๏ธ unresolved-threads โ warn; hard-block under strict
โ ๏ธ package-lock-reset โ warn; hard-block under strict
npx thumbgate init
npx thumbgate doctor
npx thumbgate capture up|down "<text>"
npx thumbgate lessons
npx thumbgate brain --write
npx thumbgate dashboard --open
npx thumbgate break-glass --reason="ThumbGate over-fired" # 5-min recovery
# Portable lessons
curl -X POST http://localhost:3456/v1/lessons/export \
-H "Authorization: Bearer $THUMBGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"outputPath": "./lessons-export.json"}'
# DPO pairs for fine-tuning
curl -X POST http://localhost:3456/v1/dpo/export \
-H "Authorization: Bearer $THUMBGATE_API_KEY" \
-o dpo-pairs.jsonl
Agentic development cycle fit
Agentic development is becoming a loop: Guide โ Generate โ Verify โ Solve. ThumbGate is the pre-action gate / pre-action boundary between generated intent and executed action.
Discoverable slash-commands โ the guardrail layer for spec-driven agents
Spec-driven agent frameworks like GSD (get-shit-done) and GitHub Spec Kit plan and generate work. ThumbGate is the guardrail layer for spec-driven agents: it sits after the plan, on the boundary between a generated tool call and its execution โ alongside GSD / Spec-Kit, not instead of them.
npx thumbgate init installs these into your agent palette:
| Command | What it does |
|---|---|
/thumbgate-dashboard | Open local project dashboard |
/thumbgate-guard | Turn last mistake into a hard prevention rule |
/thumbgate-rules | List active rules & lessons |
/thumbgate-blocked | Gate stats + enforcement matrix |
/thumbgate-protect | Branch governance + scoped approval |
/thumbgate-doctor | Health-check hooks, MCP, readiness |
Claude's memory tool, backed by ThumbGate (opt-in)
Claude's memory tool (memory_20250818) runs on your side: Claude asks to view or edit files under /memories, and your code does it. ThumbGate ships that handler, with checks on every write: paths stay under /memories, secrets are redacted before anything is saved, sizes are capped, and your thumbs-down rules show up read-only at /memories/thumbgate-rules.md.
Claude Code, Cursor or any MCP client: run npx thumbgate init --memory-tool (or answer yes when init asks), or set "env": {"THUMBGATE_MEMORY_TOOL": "1"} on the ThumbGate MCP server. Claude gets a claude_memory tool, stored in .thumbgate/memories.
Messages API / Agent SDK, copy and paste:
// npm install thumbgate @anthropic-ai/sdk (ANTHROPIC_API_KEY in your environment)
const Anthropic = require('@anthropic-ai/sdk');
const { createMemoryTool } = require('thumbgate/adapters/claude-agent-sdk/memory-tool.js');
const memory = createMemoryTool({ root: './agent-memory' });
const client = new Anthropic();
const messages = [{ role: 'user', content: 'Pick up where we left off on the release checklist.' }];
async function main() {
for (;;) {
const res = await client.messages.create({ model: 'claude-opus-5-5', max_tokens: 4096, tools: [memory.definition], messages });
messages.push({ role: 'assistant', content: res.content });
const uses = res.content.filter((b) => b.type === 'tool_use' && b.name === 'memory');
if (!uses.length) return res;
messages.push({ role: 'user', content: uses.map((b) => {
const r = memory.execute(b.input);
return { type: 'tool_result', tool_use_id: b.id, content: r.content, is_error: r.isError };
}) });
}
}
main().then((res) => console.log(res.content.filter((b) => b.type === 'text').map((b) => b.text).join('\n')));
Controls: THUMBGATE_MEMORY_TOOL=read gives Claude read-only memory (view works, every write is refused; createMemoryTool({ readOnly: true }) in code). npx thumbgate memory-export writes everything ThumbGate remembers for the project to a folder of Markdown files you can read, diff or zip: one file per lesson, rules.md and the memory-tool notes, secrets redacted, nothing changed.
Details and limits: adapters/claude-agent-sdk/README.md ยท walkthrough: thumbgate.ai/learn/claude-memory-tool-backend. Each memory command sends one anonymous ping per process (command name and sdk or mcp, never a path or text); THUMBGATE_NO_TELEMETRY=1 turns it off.
Integrations (compact)
| Surface | Start here |
|---|---|
| Open ThumbGate GPT | thumbgate.ai/go/gpt โ ThumbGate GPT: start here. Paste agent actions, get advice + checkpointing. No, users do not have to keep chatting inside the ThumbGate GPT to use ThumbGate โ the hard enforcement layer still runs where the work happens. |
| Install Codex Plugin | Open the Codex plugin install page: thumbgate.ai/codex-plugin ยท zip: thumbgate-codex-plugin.zip ยท plugins/codex-profile/INSTALL.md |
Claude Desktop .mcpb | latest release |
| VS Code / Open VSX | plugins/vscode-extension/README.md |
| Antigravity-compatible | plugins/antigravity-extension/INSTALL.md |
| JetBrains | plugins/jetbrains-plugin/README.md ยท JetBrains Marketplace path for the same runtime |
| ChatGPT App / GPT Action | thumbgate.ai/chatgpt-app |
| Slack alerts | Set THUMBGATE_SLACK_WEBHOOK_URL to a Slack incoming webhook (https://hooks.slack.com/..., free on every Slack plan). Each block or approval hold posts the gate, tool and project to your channel, at most once per gate per 10 minutes, never the tool input. THUMBGATE_SLACK_ALERT_WARN=1 adds warnings. |
| ThumbGate-Core (staging) | https://github.com/IgorGanapolsky/ThumbGate-Core (private) โ pre-release staging + a few internal cache scripts; not the product moat |
Gate coverage by host
Which gates were actually denied on which host. Generated by npm run compat:matrix from real runs through each host's hook path; nothing here is typed by hand. "enforced" means a test ran that gate's denial through that host in this checkout. "not enforced" means the command ran and was allowed. "untested" means no run exists. Details and the exact check per host: docs/host-compatibility.md.
| Gate | Claude Code | Cursor | Codex | Gemini CLI |
|---|---|---|---|---|
force-push | enforced | enforced | untested | untested |
git-reset-hard | enforced | enforced | untested | untested |
git-clean-force | enforced | enforced | untested | untested |
rm-rf-home-or-root | enforced | enforced | untested | untested |
cloud-bulk-delete | enforced | enforced | untested | untested |
terraform-destroy | enforced | enforced | untested | untested |
kubectl-bulk-delete | enforced | enforced | untested | untested |
docker-system-prune-all | enforced | enforced | untested | untested |
iam-policy-change | not enforced | not enforced | untested | untested |
| Held after one thumbs-down, gate after two | not enforced | not enforced | untested | untested |
| Text typed in a chat window or web page | out of scope | out of scope | out of scope | out of scope |
Which hosts hard-stop, and how they fail
| Host | Hard-stops a bad call | Fails open or closed | Evidence |
|---|---|---|---|
| Claude Code | yes (8 of 9 gates denied) | Fails open | docs/host-compatibility.md |
| Cursor | yes (8 of 9 gates denied) | Fails closed | tests/cursor-fail-closed.test.js |
| Codex | untested | untested | docs/host-compatibility.md |
| Gemini CLI | untested | untested | docs/host-compatibility.md |
| Cline | no, warns only | no hook, so not applicable | tests/advisory-hosts-honesty.test.js |
| OpenCode | no, warns only | no hook, so not applicable | tests/advisory-hosts-honesty.test.js |
| Amp | no, warns only | no hook, so not applicable | tests/advisory-hosts-honesty.test.js |
Product facts (verified 2026-12-01, npm 1.64.0)
Generated from config/product-facts.json by scripts/product-facts.js. ThumbGate turns your thumbs-downs on an AI coding agent's commands into checks that run before the next matching command.
- Warning: The agent sees the check and your reason. The command can still run.
- Denied: The hook stops the command before it runs.
- Strict mode: THUMBGATE_STRICT_ENFORCEMENT=1. Checks that only warn by default deny instead, except a rule learned from a single thumbs-down.
- Advisory: The agent is asked to run the check itself, so nothing stops a command it skips.
| Situation | Default install | Strict mode | Plan | Status |
|---|---|---|---|---|
git push --force, git reset --hard, git clean -fdx, rm -rf on home or root, find / -delete, DROP TABLE | Denied | Denied | Free | Shipped (1.59.0) |
terraform destroy, kubectl delete, aws s3 rm and other cloud or cluster wipes | Denied | Denied | Free | Shipped (1.59.0) |
Sending a secret out, for example curl -d @.env | Denied | Denied | Free | Shipped (1.59.0) |
Switching ThumbGate off, for example pkill -f thumbgate or uninstalling it from inside the agent | Denied | Denied | Free | Shipped (1.63.0) |
git push origin main (a push to the default branch) | Denied (lift it for an hour with npx thumbgate unblock protected-branch-push --reason "why you need it") | Denied | Free | Shipped (1.64.0) |
| A command you gave a thumbs-down, right after and each time it runs again (a rule that would have blocked your past safe calls stays a Warning) | Denied | Denied | Free (3 active learned rules), Pro (unlimited) | Shipped (1.64.0) |
| A learned check that passed its 30-day replay (under 2% of 50+ matching calls were ones you let through) | Denied | Denied | Free (3 active learned rules), Pro (unlimited) | Shipped (1.62.0) |
Other flagged actions, for example npm publish or git commit --no-verify | Warning | Denied | Free | Shipped (1.59.0) |
Claude Code runs a deploy (a push, a merge, kubectl apply, aws ecs update-service) and says it is deployed or live with no health or status read after it (Stop hook) | Reply sent back once to add proof. It checks that proof is present, not that it is true. | Same as default | Free | Shipped (1.45.0) |
The same action, reworded (for example python3 -c "shutil.rmtree(...)" after a thumbs-down on rm -rf) | Not caught. A learned rule matches the command, not its purpose. | Not caught | Free | Known limit |
| Damage from a command ThumbGate allows | Not contained. ThumbGate is not a sandbox. | Not contained | Free | Known limit |
| Agent | How | Enforcement |
|---|---|---|
| Claude Code | PreToolUse hook on every tool call | Denied and Warning, tested end to end |
| Cursor | beforeShellExecution and preToolUse hooks | Shell commands: Denied and Warning, tested end to end. Other tools: Advisory |
| Codex, Gemini CLI | The same gate-check command in each agent's hook | Wired, not yet tested end to end with each agent's own payload |
| Pydantic AI Pax | before_tool hook | Denied and Warning |
| Cline, OpenCode, Amp and other MCP-only clients | MCP tools the agent may call | Advisory |
Free: Free keeps 3 active learned rules and records 2 thumbs a day after a 7-day full Pro trial. Includes: Every default Denied check in the table; Learned rules from your thumbs-downs; The local dashboard (npx thumbgate dashboard --open); All supported agents.
Pro: Pro is $19/month or $149/year for one developer. Adds: Unlimited active learned rules (free keeps 3); Unlimited thumbs-up and thumbs-down captures; Recall and lesson search across everything you have taught it; DPO and training-data exports.
Not shipped in any plan: Team-shared rules; Rules shared between teammates' machines; Audit history for managers.
Teams: Teams can ask for a 30-day pilot at https://thumbgate.ai/pilot. It is request only, with no self-serve team checkout.
What leaves your machine: The CLI sends anonymous usage events: a random install id, the ThumbGate, Node and OS versions, the event name, and which built-in check fired (any rule learned from your thumbs-downs is sent only as "learned", never its words). Releases before 1.62.0 could send words from a learned rule's command; update to stop that. THUMBGATE_NO_TELEMETRY=1 or DO_NOT_TRACK=1 turns it off. Lessons and rules stay in .thumbgate/ in your repo.
Pricing & buyer paths
Free tier: 2 feedback captures/day and up to 3 active auto-promoted prevention rules. Pro ($19/mo or $149/yr) is the individual tier for unlimited rules, history-aware lessons, linked feedback session flow, personal dashboard, and DPO export. Enterprise is custom and scoped after intake; hosted team lesson sync and a hosted org dashboard are not general availability.
| Free | Pro ($19/mo or $149/yr) | Enterprise | |
|---|---|---|---|
| Local CLI + PreToolUse | โ | โ | Scoped after intake |
| Feedback captures | 2 feedback captures/day | Unlimited | Scoped after intake |
| Active auto-promoted rules | up to 3 active auto-promoted prevention rules | Unlimited | Scoped after intake |
| Personal dashboard + DPO export | โ | โ | Reviewed during intake |
| Hosted team lesson sync | โ | โ | Not general availability |
| Hosted org dashboard | โ | โ | Not general availability |
Team path: request a 30-day team pilot. Tell us your team size and coding agent, and a person replies by email with how the pilot would run. There is no self-serve team checkout. Request a team pilot โ
Local technical path: install the CLI and use init plus the documented setup so Pre-Action Checks evaluate tool calls where the agent actually runs.
First-dollar activation path: open the ThumbGate GPT, paste the risky action, capture typed feedback (thumbs down: / thumbs up:). Native ChatGPT rating buttons are not the ThumbGate capture path. Ask: what repeated AI mistake would be worth catching before the tool executes?
Paid path for individual operators: ThumbGate Pro is the self-serve side lane for a personal dashboard and export-ready evidence.
Start free ยท Pro $19/mo ยท Live Dashboard ยท 30-day team pilot ยท First Dollar Playbook
Popular buyer questions: AI search topical presence ยท Relational knowledge and AI recommendations ยท AI Mode ads for agent governance ยท MCP tool governance ยท AI agent pre-action approval gates ยท Background agent governance ยท GPT-5.5 model evaluation ยท Stop repeated AI agent mistakes ยท Browser automation safety ยท Native messaging host security ยท Autoresearch agent safety ยท Cursor guardrails ยท Codex CLI guardrails ยท Gemini CLI memory + enforcement ยท Google Cloud MCP guardrails ยท Roo Code alternative: migrate to Cline
Tech Stack
Documentation truncated โ see the full README on GitHub.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Agentgate
Freeby Agentkitai ยท Developer Tools
Human-in-the-loop approval gateway for AI agents over MCP: request, decide, approve.
Computer Use For All Agents
Freeby Xeakaes ยท Developer Tools
Safety-gated computer use for AI agents: screen OCR and vision, mouse, keyboard, window control.
Ai Quality Gate
Freeby Mustafacagri ยท Developer Tools
๐ Kill the Junior AI Era. ๐ค Level up AI code to automatically Principal standards. ๐ก๏ธ Quality Gate โจ
Agent Config
Freeby Event4u App ยท Developer Tools
Governed skills, rules and commands for AI coding agents, served by a read-only MCP server.
Delego
Freeby Delego Dev ยท Developer Tools
Intent-bound action authorization for AI agents: policy, human approval, and a signed audit trail.
Sub Agents
Freeby Shinpr ยท Developer Tools
MCP server for delegating tasks to specialized AI sub-agents across coding tools
