thumbgate
Skill27 starsChanged 8 months agoMITView on GitHub
ThumbGate provides pre-action gates for AI coding agents. It captures thumbs-up/down feedback on agent actions, auto-promotes repeated failures into prevention rules, and blocks known-bad tool calls via PreToolUse hooks. Trigger when the user wants to add safety guardrails to an AI agent workflow, capture structured feedback on agent output, generate prevention rules from failure patterns, gate high-risk actions before execution, or export DPO training pairs from production feedback. Works with any MCP-compatible agent including Cursor, Codex, Gemini CLI, Amp, and OpenCode.
- Installs packages
In this repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .well-known/llms.txtllms.txt
- article-syndication-pipelineSkill
- autonomous-execution-mandateSkill
- aws-strands-harness-not-cloneSkill
- ci-gha-buildkite-patterns-not-cloneSkill
- cobble-hot-store-compare-not-cloneSkill
- colab-compute-honesty-not-cloneSkill
- comet-session-loggerSkill
- cyberstrike-compare-not-cloneSkill
- datadog-llm-obs-compare-not-cloneSkill
- deeppattern-discipline-honesty-not-cloneSkill
- gitlab-sandbox-allowlist-not-trustSkill
- graphifySkill
- halo-trace-optimize-not-cloneSkill
- ideabrowser-connectorSkill
- infoq-architect-honesty-not-cloneSkill
- jit-harness-compare-not-cloneSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- nvidia-specdecode-al-doctorSkill
- openui-catalog-compose-honestySkill
- package-manager-honesty-doctorSkill
- salt-code-policy-honesty-not-cloneSkill
- show-meSkill
- skool-headless-readerSkill
- tailscale-p2p-governance-not-cloneSkill
- thumbgate-board-loopSkill
- thumbgate-daily-discoveriesSkill
- thumbgateSkill
- token-shunt-honesty-not-cloneSkill
- typesafe-typed-questions-not-cloneSkill
- zvec-grep-compare-not-cloneSkill
- ci-failure-triageSkill
- evidence-first-answerSkill
- fleet-coordinationSkill
- revenue-truthSkill
- scope-disciplineSkill
- task-state-ledgerSkill
- thumbgateSkill
- agent-architect-kitSkill
- Agent MemorySkill
- applyops-deploySkill
- article-syndication-pipelineSkill
- aws-strands-harness-not-cloneSkill
- bluesky-engagementSkill
- comet-session-loggerSkill
- configure-analyticsSkill
- context-engineering-checklistSkill
- gsd-ralph-context-loopSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- pull-funnel-dataSkill
- salt-code-policy-honesty-not-cloneSkill
- solve-architecture-autonomySkill
- thumbgate-blockedSkill
- ThumbGate Brand VoiceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Add to your agent's MCP config (e.g., claude_desktop_config.json or .cursor/mcp.json):
- Distinctive: line 52
When an agent action succeeds or fails, capture structured feedback:
- Very specific: line 59
After a failure pattern repeats (default: 2 occurrences), ThumbGate auto-generates a prevention rule.
- Distinctive: line 69
If a match is found, the gate blocks execution and surfaces the prior failure context.
- Very specific: line 97
Start a 7-day free trial of Pro: …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ThumbGate
Pre-action gates that stop AI coding agents from repeating known mistakes.
Quick Start
npx thumbgate initThis installs the MCP server and wires it into your agent's tool configuration. No API keys required for the free tier.
Or install globally:
npm install -g thumbgate
thumbgate initMCP Configuration
Add to your agent's MCP config (e.g., claude_desktop_config.json or .cursor/mcp.json):
{
"mcpServers": {
"thumbgate": {
"command": "npx",
"args": ["-y", "thumbgate"]
}
}
}How It Works
Feedback Capture
When an agent action succeeds or fails, capture structured feedback:
- Thumbs up: Records what worked, tags it, and stores it as a reusable pattern.
- Thumbs down: Records the failure context, what went wrong, and what to change. Repeated failures auto-promote into prevention rules.
Prevention Rules
After a failure pattern repeats (default: 2 occurrences), ThumbGate auto-generates a prevention rule. These rules are injected into agent context before every tool call, blocking the known-bad pattern before it executes.
Pre-Action Gates
Gates intercept tool calls via the MCP PreToolUse hook. Each gate checks the proposed action against:
- Prevention rules generated from past failures
- Thompson Sampling confidence scores (adaptive sensitivity)
- LanceDB vector similarity to known-bad patterns
If a match is found, the gate blocks execution and surfaces the prior failure context.
Context Packs
Bounded retrieval of relevant feedback history for the current task. The agent gets exactly the lessons that matter, not the entire history.
MCP Tools Provided
| Tool | Description |
capture_feedback | Record thumbs-up/down with structured context |
search_lessons | Query the lesson DB by keyword or semantic similarity |
get_prevention_rules | Retrieve active prevention rules for the current context |
session_primer | Get session handoff context (last task, next step, blockers) |
export_dpo | Export feedback pairs in DPO training format |
Tiers
| Free | Pro | Team | |
| Feedback capture | 3/day | Unlimited | Unlimited |
| Lesson search | 5/day | Unlimited | Unlimited |
| Active gates | 5 | Unlimited | Unlimited |
| Dashboard | - | Yes | Yes |
| DPO export | - | Yes | Yes |
| Seats | 1 | 1 | Per-seat |
| Price | $0 | $19/mo or $149/yr | $49/seat/mo |
Start a 7-day free trial of Pro: https://thumbgate-production.up.railway.app/pro?utm_source=skill&utm_medium=agent_context&utm_campaign=pro_page
Compatibility
ThumbGate works with any MCP-compatible agent:
- Cursor
- Codex
- Gemini CLI
- Amp
- OpenCode
- Any agent supporting the Model Context Protocol
Links
- NPM: thumbgate
- Repository: IgorGanapolsky/ThumbGate
- Dashboard: https://thumbgate-production.up.railway.app/dashboard
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

