Skip to content
FunCoding

rlhf-feedback-loop

Listed in the official MCP Registry

RLHF feedback loop for AI agents. Capture signals, promote memories, block mistakes, export DPO.

Star
34
Version
v0.6.13
License
MIT
Last commit
Dec 1, 2026

ThumbGate 👍 👎

ThumbGate Infrastructure Firewall with Thumbs Up and Thumbs Down

ThumbGate checks AI coding actions before they run: allow, warn or deny
It checks every tool call your agent is about to make and stops the dangerous ones before they run.

CI npm version npm weekly downloads License: MIT

What it does

ThumbGate blocks risky actions and unchecked claims in AI coding agents. 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 -rf on 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 install thumbgate --marketplace IgorGanapolsky/ThumbGate
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

AgentCommandEnforcement
Claude Codenpx thumbgate init --agent claude-code🛡️ Hard — PreToolUse
Codexnpx thumbgate init --agent codex🛡️ Hard — pre_tool_use
Gemini CLInpx thumbgate init --agent gemini🛡️ Hard — PreToolUse
ForgeCodenpx thumbgate init --agent forge🛡️ Hard — pre_tool_use
Cursornpx 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).
Clinenpx thumbgate init --agent cline💬 Advisory — MCP + .clinerules
OpenCodenpx thumbgate init --agent opencode💬 Advisory — MCP gate_check
Any MCP agentnpx thumbgate serve💬 Advisory — MCP gate_check
Ampnpx thumbgate init --agent amp📝 Feedback capture
GitHub Actionsuses: 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

ScopeCommandClaude Code hooksMCP entryLessons 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-projectnpx 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 start for MCP — that launches the hosted HTTP API (src/api/server.js), not the agent-facing stdio server.

What a 👍 and a 👎 do

You giveWhat ThumbGate does
👎 typed in the agent session right after a commandTurns that command into a check. The first one warns on the next run. A second 👎 from you on the same command blocks it, with or without strict mode.
👎 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 contextSaves a success lesson and counts it in your stats. It does not create, loosen or lift a check.
👍 or 👎 with no context and no commandLogged 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 before it runs. You thumbs-down it a second time, and the next run is denied. A later 👍 on the same command is saved as a success lesson, and the block 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 refuses that same action (the same tool; for a shell command, the same first three words) until you say to go on. After a chat post, new posts are refused until the last message is edited in place. 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:

  1. Say it. Start your message with "go ahead", "continue", "proceed", "resume" or "unblock", or give a 👍.
  2. Clear it now. Run npx thumbgate holds release in the project folder. npx thumbgate holds lists what is held.
  3. Turn the hold off. Run npx thumbgate holds off. It takes effect in the session that is already running, and npx thumbgate holds on brings it back. Setting THUMBGATE_THUMBS_DOWN_HOLD=0 before 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.


How it works (short)

  1. Capture 👍/👎 feedback (CLI, MCP, linked feedback session flow / open_feedback_session, or ThumbGate GPT)
  2. Promote concrete lessons via history-aware lesson distillation into prevention rules
  3. Evaluate the next proposed tool call against active rules (literal/AST + local vectors)
  4. 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 -f, rm -rf on home or root, and DROP TABLE. Other high-risk classes (fetch-and-run, direct guardrail edits, other matching rules) warn and log by default. Set THUMBGATE_STRICT_ENFORCEMENT=1 for strict enforcement (warnings become hard denies).

VerdictDefault behavior
⛔ Hard-blockDetected secret leaks; process-kill/environment-override self-disable; catastrophic commands (force-push, git reset --hard, git clean -f, rm -rf on home or root, DROP TABLE)
👎 Warn + logfetch-and-run, direct guardrail edits, other matching rules (become hard denies with THUMBGATE_STRICT_ENFORCEMENT=1)
👍 AllowEverything else

Accepted feedback is stored as local lessons. Repeated concrete failures can become prevention rules that promote from warnings to blocking gates. 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-mode starts without user/project hooks and claude --bare skips 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 --bare run 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 doctor lists any other PreToolUse hooks it finds in user and project settings (managed, plugin and --settings hooks 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.)

AI Agent without ThumbGate vs Agent guarded by ThumbGate

  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
Architecture diagram & stack

ThumbGate Architecture

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"]
Built-in checks
⛔ secret-exfiltration → hard-block (default)
⛔ self-protect-kill   → hard-block (default)
⛔ self-protect-env    → 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)
⚠️ protected-branch    → warn; hard-block under strict
⚠️ unresolved-threads  → warn; hard-block under strict
⚠️ package-lock-reset  → warn; hard-block under strict
CLI cheatsheet
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
Pro: lesson + DPO export
# 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:

CommandWhat it does
/thumbgate-dashboardOpen local project dashboard
/thumbgate-guardTurn last mistake into a hard prevention rule
/thumbgate-rulesList active rules & lessons
/thumbgate-blockedGate stats + enforcement matrix
/thumbgate-protectBranch governance + scoped approval
/thumbgate-doctorHealth-check hooks, MCP, readiness

Integrations (compact)

SurfaceStart here
Open ThumbGate GPTthumbgate.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 PluginOpen the Codex plugin install page: thumbgate.ai/codex-plugin · zip: thumbgate-codex-plugin.zip · plugins/codex-profile/INSTALL.md
Claude Desktop .mcpblatest release
VS Code / Open VSXplugins/vscode-extension/README.md
Antigravity-compatibleplugins/antigravity-extension/INSTALL.md
JetBrainsplugins/jetbrains-plugin/README.md · JetBrains Marketplace path for the same runtime
ChatGPT App / GPT Actionthumbgate.ai/chatgpt-app
ThumbGate-Core (staging)https://github.com/IgorGanapolsky/ThumbGate-Core — 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.

GateClaude CodeCursorCodexGemini CLI
force-pushenforcedenforceduntesteduntested
git-reset-hardenforcedenforceduntesteduntested
git-clean-forceenforcedenforceduntesteduntested
rm-rf-home-or-rootenforcedenforceduntesteduntested
cloud-bulk-deleteenforcedenforceduntesteduntested
terraform-destroyenforcedenforceduntesteduntested
kubectl-bulk-deleteenforcedenforceduntesteduntested
docker-system-prune-allenforcedenforceduntesteduntested
iam-policy-changeenforcedenforceduntesteduntested
Held after one thumbs-down, gate after twoenforcedenforceduntesteduntested
Text typed in a chat window or web pageout of scopeout of scopeout of scopeout of scope

Which hosts hard-stop, and how they fail

HostHard-stops a bad callFails open or closedEvidence
Claude Codeyes (9 of 9 gates denied)Fails opendocs/host-compatibility.md
Cursoryes (9 of 9 gates denied)Fails closedtests/cursor-fail-closed.test.js
Codexuntesteduntesteddocs/host-compatibility.md
Gemini CLIuntesteduntesteddocs/host-compatibility.md
Clineno, warns onlyno hook, so not applicabletests/advisory-hosts-honesty.test.js
OpenCodeno, warns onlyno hook, so not applicabletests/advisory-hosts-honesty.test.js
Ampno, warns onlyno hook, so not applicabletests/advisory-hosts-honesty.test.js

Pricing & buyer paths

Free tier: 2 feedback captures/day (10 total) 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.

FreePro ($19/mo or $149/yr)Enterprise
Local CLI + PreToolUse✅✅Scoped after intake
Feedback captures2 feedback captures/day (10 total)UnlimitedScoped after intake
Active auto-promoted rulesup to 3 active auto-promoted prevention rulesUnlimitedScoped 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

More guides: popular buyer questions

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

LayerTech
RuntimeNode.js ≥18
InterfacesMCP stdio, HTTP API, CLI
StorageSQLite + FTS5, LanceDB vectors, JSONL logs
IntelligenceMemAlign dual recall, Thompson Sampling, local embeddings
Billing / hostStripe, Railway
ExecutionRailway, Cloudflare Workers, Docker Sandboxes
GovernanceWorkflow Sentinel, control plane, Docker Sandboxes

Every Changeset is tied to the exact main merge commit and generates Verification Evidence for Release Confidence.

Cloud & model infrastructure

  • Local Pre-Action Checks & MCP Runtime: Sub-0.5ms local PreToolUse enforcement (npx thumbgate init) across Claude Code, Cursor, Codex, and Gemini CLI; TencentDB Agent Memory record normalization into blocking SQL safety candidates is covered in tests/memory-provider-enforcement-bridge.test.js, and outer-harness context-budget checks inspired by Tencent Hunyuan Hy-Memory-30B-A3B research are validated in scripts/rrsi-doctor.js.
  • Companion Benchmark & Technical Case Study: External evaluation of Tencent Cloud Lighthouse / CVM (SA5 / SA9 AMD Turin-Dense 3.4 GHz all-core turbo in ap-hongkong & ap-singapore) and the Hy-Memory-30B-A3B surgical state-patching pattern is published in our companion hermes-eval benchmark repository (docs/TENCENT-CLOUD-SA9-HUNYUAN-CASE-STUDY.md and scripts/tencent_sa9_hunyuan_benchmark.py).

Docs

Full index: docs/INDEX.md

NeedLink
Free video course (41 min)Claude Code + ThumbGate on Udemy
Agent workflow contractWORKFLOW.md
Ready-for-agent intake.github/ISSUE_TEMPLATE/ready-for-agent.yml
Cloud-to-Mac dispatch loopdocs/guides/mac-dispatch-loop.md
Verification Evidencedocs/VERIFICATION_EVIDENCE.md
Release Confidencedocs/RELEASE_CONFIDENCE.md
Changeset strategydocs/CHANGESET_STRATEGY.md
First Dollar Playbookdocs/FIRST_DOLLAR_PLAYBOOK.md
Security policySECURITY.md
Threat modelTHREAT_MODEL.md
Federal / regulateddocs/FEDERAL.md
Commercial Truthdocs/COMMERCIAL_TRUTH.md
Issues / PRsGitHub Issues · PR template

FAQ (one-liners): Not a fine-tuner (runtime intercept only). Different from CLAUDE.md / .cursorrules (those are context; ThumbGate is an external allow/warn/deny before tools run).


About this project

Why usage, not stars

ThumbGate GitHub star growth is measured with GitHub's privacy-safe GET /repos/{owner}/{repo}/stargazers/history endpoint (weekly counts, no stargazer identities). Run npm run stars:history -- --fixture tests/fixtures/github-star-history.json --json for the local proof. Stars are not npm installs and not revenue. The live GitHub Marketplace Action is ThumbGate Agent Governance (uses: IgorGanapolsky/ThumbGate@v1).

Usage over star count. Evaluate ThumbGate from the install path and live usage badges above (npx thumbgate init, Marketplace uses:, npm weekly downloads, GitHub clones), not from whether the repo has twenty stars or twenty thousand. No pitch deck is required. We do not farm GitHub profile badges (no YOLO-merge of protected main, no 5-minute Issue close theater, no fake Co-authored-by). Galaxy Brain needs real accepted answers in Discussions Q&A. npm run github:achievements -- --fixture tests/fixtures/github-achievements.json --json inventories what is already earned vs what we refuse to farm.

Who it's for

ThumbGate is for operators whose AI coding agents can leak a secret or destroy a checkout before a human sees the tool call (Claude Code, Cursor, Codex, Gemini CLI, MCP). Discovery should reach those operators — not a star campaign.

ThumbGate is not a GitHub star package, not fake engagement, and not a substitute for npm installs or merged PRs. Real engagement is npx thumbgate init and a PreToolUse hook that actually fires.

Tech memes (shareable)

Lightweight visuals for how agents fail without a pre-action gate:

MemeMeaning
Agent destroys prod without a gateUnchecked tool calls ship destructive commands.
Prompt vs PreToolUse hookA prompt is advice; a PreToolUse hook is enforcement.
Listings

Listed on mcpservers.org MCP Toplist GitHub stars GitHub Marketplace: ThumbGate Agent Governance

Also available: ThumbGate GPT · ThumbGate Pro ($19/mo)


Who builds this

Igor Ganapolsky — payments (Stripe/Connect), AI agent guardrails/MCP, Android + backends. Small number of contract slots: $120–150/hr, 1099, remote US. LinkedIn · thumbgate.ai

Support ThumbGate

If ThumbGate saves you from a repeated agent mistake, you can buy me a coffee.

License

MIT — see LICENSE. Project policy: SECURITY.md · THREAT_MODEL.md.

Similar MCP servers

Official

Memory

Knowledge graph-based persistent memory system

MOmodelcontextprotocol/servers92k190 new stars in the last 7 days

Honcho

Memory that reasons: continual learning for stateful agents. Better context, fewer tokens.

PLplastic-labs/honcho8.4k86 new stars in the last 7 days

PDF Craft

Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.

OOoomol-lab/pdf-craft6.8k30 new stars in the last 7 days

Featured

gemini-notebook-mcp-cli

Access Gemini Notebook via CLI and MCP Server.

JAjacob-bd/gemini-notebook-mcp-cli6.7k86 new stars in the last 7 days

Featured

Zotero MCP

Search, read and cite papers from your Zotero library in any AI agent.

5454yyyu/zotero-mcp6.2k103 new stars in the last 7 days