
Turns thumbs-down feedback into executable prevention rules that block AI agents from repeating mistakes before the tool call executes. The PreToolUse hook intercepts risky actions like force-pushes, destructive file operations, or API calls that match patterns learned from prior sessions. One thumbs-down creates a rule, next session the agent gets blocked with zero tokens spent. Ships with a context brain generator that consolidates lessons, guardrails, and gates into a single agent-readable markdown file your repo can version in git. Free tier gives you unlimited feedback capture and five active rules. Works with Claude Code, Cursor, Gemini CLI, Cline, and any MCP-compatible agent. Designed for workflows where one repeated mistake is a liability event or a token bill you don't want to pay twice.
Public tool metadata for what this MCP can expose to an agent.
capture_feedbackCapture an up/down signal plus one line of why. Vague feedback is logged, then returned with a clarification prompt instead of memory promotion.13 paramsCapture an up/down signal plus one line of why. Vague feedback is logged, then returned with a clarification prompt instead of memory promotion.
chatHistoryarraycontextstringconversationWindowarrayfailureTypestringdecision · executionguardrailsobjectrelatedFeedbackIdstringrubricScoresarraysignalstringup · downskillstringtagsarraywhatToChangestringwhatWentWrongstringwhatWorkedstringfeedback_summaryGet summary of recent feedback1 paramsGet summary of recent feedback
recentnumbersearch_lessonsSearch promoted lessons and show the corrective actions, lifecycle state, prevention rules, gates, and next harness fixes linked to each result.4 paramsSearch promoted lessons and show the corrective actions, lifecycle state, prevention rules, gates, and next harness fixes linked to each result.
categorystringerror · learning · preferencelimitnumberquerystringtagsarrayretrieve_lessonsRetrieve the most relevant lessons for a given tool/action context. Use in PreToolUse hooks for per-action guidance.3 paramsRetrieve the most relevant lessons for a given tool/action context. Use in PreToolUse hooks for per-action guidance.
actionContextstringmaxResultsnumbertoolNamestringsearch_thumbgateSearch raw ThumbGate state across feedback logs, ContextFS memory, prevention rules, and imported policy documents.4 paramsSearch raw ThumbGate state across feedback logs, ContextFS memory, prevention rules, and imported policy documents.
limitnumberquerystringsignalstringup · down · positive · negativesourcestringall · feedback · context · rules · documentsimport_documentImport a local policy or runbook document into ThumbGate, normalize it for search, and propose provenance-backed gate candidates.7 paramsImport a local policy or runbook document into ThumbGate, normalize it for search, and propose provenance-backed gate candidates.
contentstringfilePathstringproposeGatesbooleansourceFormatstringmarkdown · text · yaml · json · htmlsourceUrlstringtagsarraytitlestringlist_imported_documentsList imported policy and runbook documents stored in local ThumbGate state.3 paramsList imported policy and runbook documents stored in local ThumbGate state.
limitnumberquerystringtagstringget_imported_documentRead a previously imported document with its proposed gate candidates and provenance.1 paramsRead a previously imported document with its proposed gate candidates and provenance.
documentIdstringfeedback_statsGet feedback stats and recommendationsGet feedback stats and recommendations
No parameter schema in public metadata yet.
diagnose_failureDiagnose a failed or suspect workflow step using MCP schema, workflow, gate, and approval constraints.13 paramsDiagnose a failed or suspect workflow step using MCP schema, workflow, gate, and approval constraints.
approvedbooleancontextstringerrorstringexitCodenumberguardrailsobjectintentIdstringmcpProfilestringoutputstringrubricScoresarraystepstringtoolArgsobjecttoolNamestringverificationobjectinfer_lesson_from_historyPerform autonomous inference on chat history to identify why a failure occurred and what rule should be recorded.2 paramsPerform autonomous inference on chat history to identify why a failure occurred and what rule should be recorded.
chatHistoryarraylastActionobjectlist_intentsList available intent plans and whether each requires human approval in the active profile3 paramsList available intent plans and whether each requires human approval in the active profile
bundleIdstringmcpProfilestringpartnerProfilestringplan_intentGenerate an intent execution plan with policy checkpoints8 paramsGenerate an intent execution plan with policy checkpoints
approvedbooleanbundleIdstringcontextstringdelegationModestringoff · auto · sequentialintentIdstringmcpProfilestringpartnerProfilestringrepoPathstringstart_handoffStart a sequential delegation handoff from a delegation-eligible intent plan9 paramsStart a sequential delegation handoff from a delegation-eligible intent plan
approvedbooleanbundleIdstringcontextstringdelegateProfilestringintentIdstringmcpProfilestringpartnerProfilestringplannedChecksarrayrepoPathstringcomplete_handoffComplete a sequential delegation handoff and record verification outcomes8 paramsComplete a sequential delegation handoff and record verification outcomes
attemptsnumberhandoffIdstringlatencyMsnumberoutcomestringaccepted · rejected · abortedresultContextstringsummarystringtokenEstimatenumberviolationCountnumberdescribe_reliability_entityGet the definition and state of a business entity (Customer, Revenue, Funnel). Aliased to describe_semantic_entity.1 paramsGet the definition and state of a business entity (Customer, Revenue, Funnel). Aliased to describe_semantic_entity.
typestringCustomer · Revenue · Funnelget_reliability_rulesRetrieve active prevention rules and success patterns. Aliased to prevention_rules.Retrieve active prevention rules and success patterns. Aliased to prevention_rules.
No parameter schema in public metadata yet.
enforcement_matrixShow the full Enforcement Matrix: feedback pipeline stats, active pre-action gates, and rejection ledger with revival conditions.Show the full Enforcement Matrix: feedback pipeline stats, active pre-action gates, and rejection ledger with revival conditions.
No parameter schema in public metadata yet.
security_scanScan code for OWASP vulnerabilities (injection, XSS, path traversal, SSRF, prototype pollution) and supply chain risks (typosquatting, install script abuse, wildcard versions). Returns findings with severity, category, and line numbers.3 paramsScan code for OWASP vulnerabilities (injection, XSS, path traversal, SSRF, prototype pollution) and supply chain risks (typosquatting, install script abuse, wildcard versions). Returns findings with severity, category, and line numbers.
contentstringdiffModebooleanfilePathstringcapture_memory_feedbackCapture success/failure feedback to harden future workflows. Aliased to capture_feedback.3 paramsCapture success/failure feedback to harden future workflows. Aliased to capture_feedback.
contextstringsignalstringup · downtagsarraybootstrap_internal_agentNormalize a GitHub/Slack/Linear trigger into startup context, construct a recall pack, prepare a git worktree sandbox, and emit an execution plus reviewer-lane plan.15 paramsNormalize a GitHub/Slack/Linear trigger into startup context, construct a recall pack, prepare a git worktree sandbox, and emit an execution plus reviewer-lane plan.
approvedbooleancommentsarraycontextstringdelegationModestringoff · auto · sequentialintentIdstringmcpProfilestringmessagesarraypartnerProfilestringprepareSandboxbooleanrepoPathstringsandboxRootstringsourcestringgithub · slack · linear · api · clitaskobjectthreadobjecttriggerobjectprevention_rulesGenerate prevention rules from repeated mistake patterns2 paramsGenerate prevention rules from repeated mistake patterns
minOccurrencesnumberoutputPathstringexport_dpo_pairsExport DPO preference pairs from local memory log1 paramsExport DPO preference pairs from local memory log
memoryLogPathstringexport_hf_datasetExport ThumbGate agent traces and DPO preference pairs as a HuggingFace-compatible dataset. Produces traces.jsonl, preferences.jsonl, and dataset_info.json with PII-redacted paths. Ready for huggingface-cli upload.2 paramsExport ThumbGate agent traces and DPO preference pairs as a HuggingFace-compatible dataset. Produces traces.jsonl, preferences.jsonl, and dataset_info.json with PII-redacted paths. Ready for huggingface-cli upload.
includeProvenancebooleanoutputDirstringexport_databricks_bundleExport ThumbGate logs and proof artifacts as a Databricks-ready analytics bundle1 paramsExport ThumbGate logs and proof artifacts as a Databricks-ready analytics bundle
outputPathstringconstruct_context_packConstruct a bounded context pack from contextfs4 paramsConstruct a bounded context pack from contextfs
maxCharsnumbermaxItemsnumbernamespacesarrayquerystringevaluate_context_packRecord evaluation outcome for a context pack6 paramsRecord evaluation outcome for a context pack
guardrailsobjectnotesstringoutcomestringpackIdstringrubricScoresarraysignalstringcontext_provenanceGet recent context/provenance events1 paramsGet recent context/provenance events
limitnumbergenerate_skillAuto-generate Claude skills from repeated feedback patterns. Clusters failure patterns by tags and produces SKILL.md files with DO/INSTEAD rules.2 paramsAuto-generate Claude skills from repeated feedback patterns. Clusters failure patterns by tags and produces SKILL.md files with DO/INSTEAD rules.
minOccurrencesnumbertagsarrayrecallRecall relevant past feedback, memories, and prevention rules for the current task. Call this at the start of any task to inject past learnings into the conversation.3 paramsRecall relevant past feedback, memories, and prevention rules for the current task. Call this at the start of any task to inject past learnings into the conversation.
limitnumberquerystringrepoPathstringunified_contextAssemble a complete, role-aware context object in one call. Combines session state, user profile, relevant lessons, prevention guards, context pack, and code-graph impact — with tiered graceful degradation (full → warm → cold). Replaces multiple recall/retrieve/session_primer...5 paramsAssemble a complete, role-aware context object in one call. Combines session state, user profile, relevant lessons, prevention guards, context pack, and code-graph impact — with tiered graceful degradation (full → warm → cold). Replaces multiple recall/retrieve/session_primer...
agentTypestringclaude · cursor · forgecode · codexquerystringrepoPathstringtoolInputobjecttoolNamestringsatisfy_gateSatisfy a gate condition with optional structured reasoning. Evidence is stored with a 5-minute TTL. When structuredReasoning is provided, the premise/evidence/conclusion chain is stored in the audit trail.3 paramsSatisfy a gate condition with optional structured reasoning. Evidence is stored with a 5-minute TTL. When structuredReasoning is provided, the premise/evidence/conclusion chain is stored in the audit trail.
evidencestringgatestringstructuredReasoningobjectset_task_scopeDeclare or clear the current task scope so ThumbGate can compare affected files and diffs against the approved path set.7 paramsDeclare or clear the current task scope so ThumbGate can compare affected files and diffs against the approved path set.
allowedPathsarrayclearbooleanlocalOnlybooleanprotectedPathsarrayrepoPathstringsummarystringtaskIdstringget_scope_stateReturn the active task scope and any unexpired protected-file approvals.Return the active task scope and any unexpired protected-file approvals.
No parameter schema in public metadata yet.
set_branch_governanceDeclare or clear branch and release governance so PR, merge, release, and publish actions can be evaluated against explicit workflow state.11 paramsDeclare or clear branch and release governance so PR, merge, release, and publish actions can be evaluated against explicit workflow state.
baseBranchstringbranchNamestringclearbooleanlocalOnlybooleanprNumberstringprRequiredbooleanprUrlstringqueueRequiredbooleanreleaseEvidencestringreleaseSensitiveGlobsarrayreleaseVersionstringget_branch_governanceReturn the active branch and release governance state.Return the active branch and release governance state.
No parameter schema in public metadata yet.
approve_protected_actionGrant a time-limited approval for edits or publish actions that touch protected files.5 paramsGrant a time-limited approval for edits or publish actions that touch protected files.
evidencestringpathGlobsarrayreasonstringtaskIdstringttlMsnumbertrack_actionRecord a verification action in the current session (for example figma_verified or tests_passed). Session actions expire after one hour.2 paramsRecord a verification action in the current session (for example figma_verified or tests_passed). Session actions expire after one hour.
actionIdstringmetadataobjectverify_claimCheck whether a claim has enough tracked evidence before the agent asserts it.1 paramsCheck whether a claim has enough tracked evidence before the agent asserts it.
claimstringcheck_operational_integrityEvaluate whether the current repo state is safe for PR, merge, release, and publish operations.5 paramsEvaluate whether the current repo state is safe for PR, merge, release, and publish operations.
baseBranchstringcommandstringrepoPathstringrequirePrForReleaseSensitivebooleanrequireVersionNotBehindBasebooleanworkflow_sentinelPredict pre-action workflow risk, blast radius, and remediations before a tool call executes.8 paramsPredict pre-action workflow risk, blast radius, and remediations before a tool call executes.
baseBranchstringchangedFilesarraycommandstringfilePathstringrepoPathstringrequirePrForReleaseSensitivebooleanrequireVersionNotBehindBasebooleantoolNamestringregister_claim_gateRegister a custom claim verification rule in local runtime state without editing tracked repo config.3 paramsRegister a custom claim verification rule in local runtime state without editing tracked repo config.
claimPatternstringmessagestringrequiredActionsarraygate_statsGet gate enforcement statistics -- blocked count, warned count, top gatesGet gate enforcement statistics -- blocked count, warned count, top gates
No parameter schema in public metadata yet.
dashboardGet full ThumbGate dashboard -- Harness Score, gate stats, prevention impact, proof, and system healthGet full ThumbGate dashboard -- Harness Score, gate stats, prevention impact, proof, and system health
No parameter schema in public metadata yet.
org_dashboardOrg-wide multi-agent dashboard — shows all active agents, gate decisions, adherence rates, risk agents, and top blocked gates across the organization. Team rollout: full visibility. Free preview: limited to 3 agents.1 paramsOrg-wide multi-agent dashboard — shows all active agents, gate decisions, adherence rates, risk agents, and top blocked gates across the organization. Team rollout: full visibility. Free preview: limited to 3 agents.
windowHoursnumbersettings_statusResolve managed, user, project, and local ThumbGate settings with per-field origin metadata for policy visibility.Resolve managed, user, project, and local ThumbGate settings with per-field origin metadata for policy visibility.
No parameter schema in public metadata yet.
commerce_recallRecall past feedback filtered by commerce categories (product_recommendation, brand_compliance, sizing, pricing, regulatory). Returns quality scores alongside memories for agentic commerce agents.3 paramsRecall past feedback filtered by commerce categories (product_recommendation, brand_compliance, sizing, pricing, regulatory). Returns quality scores alongside memories for agentic commerce agents.
categoriesarraylimitnumberquerystringget_business_metricsRetrieve high-level business metrics (Revenue, Conversion, Customers) from the Semantic Layer.1 paramsRetrieve high-level business metrics (Revenue, Conversion, Customers) from the Semantic Layer.
windowstringdescribe_semantic_entityGet the canonical definition and state of a business entity (Customer, Revenue, Funnel).1 paramsGet the canonical definition and state of a business entity (Customer, Revenue, Funnel).
typestringCustomer · Revenue · Funnelestimate_uncertaintyEstimate Bayesian uncertainty for a set of tags based on past feedback.1 paramsEstimate Bayesian uncertainty for a set of tags based on past feedback.
tagsarraysession_handoffWrite a session handoff primer that auto-captures git state (branch, last 5 commits, modified files), last completed task, next step, and blockers. The next session reads this automatically for seamless context continuity.6 paramsWrite a session handoff primer that auto-captures git state (branch, last 5 commits, modified files), last completed task, next step, and blockers. The next session reads this automatically for seamless context continuity.
blockersarraycustomContextstringlastTaskstringnextStepstringopenFilesarrayprojectstringsession_primerRead the most recent session handoff primer to restore context from the previous session. Call at session start.Read the most recent session handoff primer to restore context from the previous session. Call at session start.
No parameter schema in public metadata yet.
list_harnessesList natural-language harness specs for portable workflow control, proof-backed verification, and GTM execution.1 paramsList natural-language harness specs for portable workflow control, proof-backed verification, and GTM execution.
tagstringrun_harnessExecute a natural-language harness through the async job runner with checkpoints, verification, and proof-backed outcomes.3 paramsExecute a natural-language harness through the async job runner with checkpoints, verification, and proof-backed outcomes.
harnessstringinputsobjectjobIdstringscheduleCreate, list, or delete scheduled tasks. Supports natural language scheduling like "daily 9:00", "weekly monday 8:30", "hourly". Installs as macOS LaunchAgent or Linux crontab.6 paramsCreate, list, or delete scheduled tasks. Supports natural language scheduling like "daily 9:00", "weekly monday 8:30", "hourly". Installs as macOS LaunchAgent or Linux crontab.
actionstringcreate · list · deletecommandstringdescriptionstringnamestringschedulestringworkingDirectorystringuser_profileManage persistent user profile — preferences, style, domain knowledge that persists across sessions. Actions: add, remove, replace, view.3 paramsManage persistent user profile — preferences, style, domain knowledge that persists across sessions. Actions: add, remove, replace, view.
actionstringadd · remove · replace · viewcontentstringold_textstringsession_searchSearch past session notes and conversations using full-text search. Returns relevant sessions from the SQLite FTS5 index for cross-session recall.2 paramsSearch past session notes and conversations using full-text search. Returns relevant sessions from the SQLite FTS5 index for cross-session recall.
limitnumberquerystringopen_feedback_sessionOpen a feedback session after thumbs up/down. Follow-up messages will be captured for 60s.3 paramsOpen a feedback session after thumbs up/down. Follow-up messages will be captured for 60s.
feedbackEventIdstringinitialContextstringsignalstringup · downappend_feedback_contextAppend a follow-up message to an open feedback session. Call this when the user types additional context after giving thumbs up/down.3 paramsAppend a follow-up message to an open feedback session. Call this when the user types additional context after giving thumbs up/down.
messagestringrolestringuser · assistantdefault: usersessionIdstringfinalize_feedback_sessionFinalize a feedback session and re-infer the lesson with all follow-up context.1 paramsFinalize a feedback session and re-infer the lesson with all follow-up context.
sessionIdstringwebhook_deliverSend a message to Teams, Slack, or Discord via webhook. Use for status reports, alerts, and notifications.4 paramsSend a message to Teams, Slack, or Discord via webhook. Use for status reports, alerts, and notifications.
messagestringplatformstringteams · slack · discordtitlestringwebhook_urlstringreflect_on_feedbackRun a post-mortem analysis on negative feedback. Returns a proposed rule and recurrence info.4 paramsRun a post-mortem analysis on negative feedback. Returns a proposed rule and recurrence info.
contextstringconversationWindowarrayfeedbackEventIdstringwhatWentWrongstringreport_product_issueReport a bug, suggestion, or complaint about ThumbGate itself (not project feedback). Auto-files a GitHub issue with system context. Use when the user expresses frustration or requests a feature for the thumbgate tool.3 paramsReport a bug, suggestion, or complaint about ThumbGate itself (not project feedback). Auto-files a GitHub issue with system context. Use when the user expresses frustration or requests a feature for the thumbgate tool.
bodystringcategorystringbug · feature · questiontitlestringrun_managed_lesson_agentRun the LLM-powered lesson inference and rule generation agent over accumulated feedback. Requires ANTHROPIC_API_KEY for LLM mode; falls back to heuristics if unavailable.3 paramsRun the LLM-powered lesson inference and rule generation agent over accumulated feedback. Requires ANTHROPIC_API_KEY for LLM mode; falls back to heuristics if unavailable.
dryRunbooleanlimitnumbermodelstringmanaged_agent_statusShow status of the last managed lesson agent run: entries processed, lessons created, gates promoted, and total runs.Show status of the last managed lesson agent run: entries processed, lessons created, gates promoted, and total runs.
No parameter schema in public metadata yet.
run_self_distillRun the self-distillation agent to auto-evaluate recent agent sessions and generate improvement lessons without human feedback. Reads conversation logs, detects success/failure signals, and persists lessons.3 paramsRun the self-distillation agent to auto-evaluate recent agent sessions and generate improvement lessons without human feedback. Reads conversation logs, detects success/failure signals, and persists lessons.
dryRunbooleanlimitnumbermodelstringself_distill_statusShow status of the last self-distillation run: sessions analyzed, lessons generated, signals detected.Show status of the last self-distillation run: sessions analyzed, lessons generated, signals detected.
No parameter schema in public metadata yet.
context_stuff_lessonsDump ALL prevention lessons into a single text block for context-window injection. Bypasses RAG/search — returns every lesson sorted by confidence. For most projects (20-200 lessons), fits in 1K-10K tokens.3 paramsDump ALL prevention lessons into a single text block for context-window injection. Bypasses RAG/search — returns every lesson sorted by confidence. For most projects (20-200 lessons), fits in 1K-10K tokens.
formatstringcompact · fullmaxTokenBudgetnumbersignalstringpositive · negative
Self-improving pre-action firewall for AI coding agents
AI coding agents repeat mistakes — and 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.
Lightweight visuals for how agents fail without a pre-action gate:
| Meme | Meaning |
|---|---|
| Unchecked tool calls ship destructive commands. | |
| A prompt is advice; a PreToolUse hook is enforcement. |
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. Other high-risk classes (rm -rf, force-push, fetch-and-run, direct guardrail edits) warn and log by default. Set THUMBGATE_STRICT_ENFORCEMENT=1 for strict enforcement (warnings become hard denies).
| Verdict | Default behavior |
|---|---|
| ⛔ Hard-block | Detected secret leaks; process-kill/environment-override self-disable |
| 👎 Warn + log | rm -rf, git push --force, fetch-and-run, direct guardrail edits — warn by default |
| 👍 Allow | Everything else |
Accepted feedback is stored as local lessons. Repeated concrete failures can become prevention rules that promote from warnings to blocking gates. The firewall improves from operations without retraining the model. 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.
Works with Claude Code, Cursor, Codex, Gemini CLI, Amp, Cline, OpenCode, and other MCP agents.
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
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.
Want a phased walkthrough with a verify step at every stage? Follow the Progressive Setup Guide.
Progressive wiring — prove the pipe before you turn matching on. Empty dashboard is success.
npx thumbgate init # Phase 1: hooks only
npx thumbgate doctor # verify: exits 0 only when PreToolUse hook is wired (hidden metric = hook install, not gate count)
npx thumbgate dashboard --open # Phase 2: open local HTML; empty stats are OK
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"
Later DROP attempts in the same scope surface the check:
⚠️ Check fired: "Never run DROP on production tables"
Pattern: DROP.*production
Verdict: 👎 WARN + LOG (⛔ BLOCK when THUMBGATE_STRICT_ENFORCEMENT=1)
Numbered configs: config/progressive/. Guide: progressive wiring.
Directories and clients that install ThumbGate as an MCP server must start stdio MCP, not the HTTP API:
npx -y thumbgate serve
npx -y thumbgate mcpnpm start for MCP — that launches the hosted HTTP API (src/api/server.js), not the agent-facing stdio server.▶ 90-second demo · GIF walkthrough
| Agent | Command | Enforcement |
|---|---|---|
| Claude Code | npx thumbgate init --agent claude-code | 🛡️ Hard — PreToolUse |
| Codex | npx thumbgate init --agent codex | 🛡️ Hard — pre_tool_use |
| Gemini CLI | npx thumbgate init --agent gemini | 🛡️ Hard — PreToolUse |
| ForgeCode | npx thumbgate init --agent forge | 🛡️ Hard — pre_tool_use |
| Cursor | npx thumbgate init --agent cursor | 💬 Advisory — MCP gate_check |
| 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 |
Per-agent guides: Claude/Codex bridge · Codex profile · Cursor · MCP setup
| Scope | Command | Settings | Lessons | Best for |
|---|---|---|---|---|
| Machine-wide (default) | npx thumbgate init | ~/.claude/settings.json | ~/.claude/memory/feedback/ | Solo operators — same machine-local feedback store across repos |
| Per-project | npx thumbgate init --project | <repo>/.claude/settings.json | <repo>/.claude/memory/feedback/ | Client / compliance — separate dashboard / isolated lessons per repo |
Both scopes write mcpServers.thumbgate plus PreToolUse / UserPromptSubmit / PostToolUse / SessionStart hooks. Machine-wide is the right default for most developers. Cross-repo blocking is not automatic: a lesson learned in one project only applies elsewhere when you share the store (machine-wide) or export/import lessons.
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.
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 |
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.
| Free | Pro ($19/mo or $149/yr) | Enterprise | |
|---|---|---|---|
| Local CLI + PreToolUse | ✅ | ✅ | Scoped after intake |
| Feedback captures | 2 feedback captures/day (10 total) | 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 |
Enterprise intake path: the Workflow Hardening Sprint scopes one repeated failure before any broader rollout commitment. Start intake →
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 · Team Sprint intake · Workflow Hardening Sprint · 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
open_feedback_session, or ThumbGate GPT)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.
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 → hard-block (default)
⚠️ force-push → warn; hard-block under strict
⚠️ 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
| Layer | Tech |
|---|---|
| Runtime | Node.js ≥18 |
| Interfaces | MCP stdio, HTTP API, CLI |
| Storage | SQLite + FTS5, LanceDB vectors, JSONL logs |
| Intelligence | MemAlign dual recall, Thompson Sampling, local embeddings |
| Billing / host | Stripe, Railway |
| Execution | Railway, Cloudflare Workers, Docker Sandboxes |
| Governance | Workflow Sentinel, control plane, Docker Sandboxes |
Every Changeset is tied to the exact main merge commit and generates Verification Evidence for Release Confidence.
| 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 |
| ThumbGate-Core (staging) | https://github.com/IgorGanapolsky/ThumbGate-Core — pre-release staging + a few internal cache scripts; not the product moat |
Full index: docs/INDEX.md
| Need | Link |
|---|---|
| Agent workflow contract | WORKFLOW.md |
| Ready-for-agent intake | .github/ISSUE_TEMPLATE/ready-for-agent.yml |
| Verification Evidence | docs/VERIFICATION_EVIDENCE.md |
| Release Confidence | docs/RELEASE_CONFIDENCE.md |
| Changeset strategy | docs/CHANGESET_STRATEGY.md |
| First Dollar Playbook | docs/FIRST_DOLLAR_PLAYBOOK.md |
| Security policy | SECURITY.md |
| Threat model | THREAT_MODEL.md |
| Federal / regulated | docs/FEDERAL.md |
| Commercial Truth | docs/COMMERCIAL_TRUTH.md |
| Issues / PRs | GitHub 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).
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
MIT — see LICENSE. Project policy: SECURITY.md · THREAT_MODEL.md.