thumbgate
Skill29 starsChanged 7 months agoMITView on GitHub
Pre-action checks for AI coding agents — capture thumbs-up/down feedback, generate prevention rules, and block known-bad patterns before they execute. Use when setting up ThumbGate, capturing feedback on agent actions, checking active prevention rules, debugging blocked actions, or exporting DPO training data. Triggers on: "thumbgate", "check", "block mistake", "prevention rule", "feedback", "thumbs up", "thumbs down", "capture feedback", "what went wrong".
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
If ThumbGate is not yet installed in this project:
- Distinctive: line 36
When an agent action succeeds or fails, capture it:
- Distinctive: line 96
When the MCP server is running, these tools are available to your agent:
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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 Checks for AI Agents
ThumbGate turns thumbs-up/down feedback into hard enforcement checks that block known-bad agent actions before they execute. Think of it as an immune system for your AI agent.
npm package: thumbgate
Docs: https://github.com/IgorGanapolsky/ThumbGate
Quick Start
If ThumbGate is not yet installed in this project:
npx thumbgate initThis bootstraps .thumbgate/ data directory and .mcp.json config. Works with
Codex, Cursor, Codex, Gemini CLI, Amp, OpenCode, and any MCP-compatible agent.
Core Commands
Capture feedback
When an agent action succeeds or fails, capture it:
# Thumbs down — something went wrong
node .Codex/scripts/feedback/capture-feedback.js \
--feedback=down \
--context="what happened" \
--what-went-wrong="specific failure" \
--what-to-change="specific fix" \
--tags="tag1,tag2"
# Thumbs up — something worked
node .Codex/scripts/feedback/capture-feedback.js \
--feedback=up \
--context="what happened" \
--what-worked="specific thing that worked" \
--tags="tag1,tag2"View active gates and rules
npm run feedback:rules # Show prevention rules generated from feedback
npm run feedback:stats # Feedback counts by signal, domain, importance
npm run feedback:summary # Aggregated summary of all feedbackCheck system health
npm run self-heal:check # Verify 4/4 subsystems healthyExport training data (Pro)
npm run feedback:export:dpo # Export DPO preference pairs for fine-tuningHow Gates Work
- Feedback — You give thumbs-up or thumbs-down on agent actions
- Rules — Repeated failures auto-promote into prevention rules via Thompson Sampling
- Gates — Rules become PreToolUse hooks that block the agent before it repeats the mistake
Gates are enforced via MCP PreToolUse hooks — the agent literally cannot execute a blocked action. This is hard enforcement, not a soft suggestion.
Architecture
| Component | What it does |
| SQLite+FTS5 lesson DB | Fast full-text search across all feedback |
| Thompson Sampling | Adaptive gate sensitivity per failure domain |
| LanceDB + HuggingFace | Local vector search for semantic similarity |
| ContextFS | Hierarchical context assembly with semantic caching |
| PreToolUse hooks | Hard enforcement — blocks before execution |
MCP Tools Available
When the MCP server is running, these tools are available to your agent:
| Tool | Purpose |
capture_feedback | Record thumbs-up/down on an agent action |
search_lessons | Search past feedback by keyword, tag, or domain |
recall | Retrieve relevant memories for current context |
prevention_rules | View active prevention rules |
gate_stats | See which gates are firing and their block rates |
feedback_stats | Feedback counts and trends |
export_dpo_pairs | Export DPO training pairs (Pro) |
construct_context_pack | Build bounded context from feedback history |
Pro Features
Pro users ($19/mo or $149/yr) unlock:
- Visual gate debugger — see every blocked action and the gate that fired
- Multi-hop recall — chain related lessons across hops for deeper context
- Synthetic DPO augmentation — expand real feedback into larger training datasets
- Gate wiring support — help enforcing your riskiest flows in the first week
Team rollout ($49/seat/mo, 3-seat minimum after intake) adds the shared hosted lesson DB, org dashboard, approval boundaries, and proof-backed workflow hardening sprint.
Upgrade: https://thumbgate-production.up.railway.app/go/pro?utm_source=skill
Detailed Reference
For setup guides per agent, see: <references/setup-guides.md> For gate configuration, see: <references/gate-config.md>
In this repository98 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .well-known/llms.txtllms.txt
- activesaddler-curriculum-honestySkill
- article-syndication-pipelineSkill
- autonomous-execution-mandateSkill
- aws-strands-harness-not-cloneSkill
- bolt-forge-opt-in-not-cloneSkill
- ci-gha-buildkite-patterns-not-cloneSkill
- cobble-hot-store-compare-not-cloneSkill
- colab-compute-honesty-not-cloneSkill
- comet-session-loggerSkill
- craft-playbook-gateSkill
- cyberstrike-compare-not-cloneSkill
- datadog-llm-obs-compare-not-cloneSkill
- decisive-step-evaluatorSkill
- deeppattern-discipline-honesty-not-cloneSkill
- earnie-third-author-governanceSkill
- embeddinggemma-multimodal-firewallSkill
- fiddler-control-plane-honestySkill
- gitlab-sandbox-allowlist-not-trustSkill
- graphifySkill
- halo-trace-optimize-not-cloneSkill
- harness-evolution-ceilingSkill
- 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
- multi-harness-rl-invariantsSkill
- nvidia-specdecode-al-doctorSkill
- omp-coordination-honesty-not-cloneSkill
- openui-catalog-compose-honestySkill
- package-manager-honesty-doctorSkill
- qwenwork-policy-group-honesty-not-cloneSkill
- saas-moat-honesty-not-cloneSkill
- salt-code-policy-honesty-not-cloneSkill
- show-meSkill
- siren-mcp-governanceSkill
- skool-headless-readerSkill
- snapchat-abm-playbook-stealSkill
- strands-harness-sentinelSkill
- tailscale-p2p-governance-not-cloneSkill
- thumbgate-board-loopSkill
- thumbgate-daily-discoveriesSkill
- token-shunt-honesty-not-cloneSkill
- typesafe-typed-questions-not-cloneSkill
- vs-coverage-gap-not-cloneSkill
- vulnerability-pre-action-diodeSkill
- windbg-evidence-diagnosticsSkill
- wisdom-context-artifact-not-cloneSkill
- zero-outbound-spend-they-pay-usSkill
- zvec-grep-compare-not-cloneSkill
- ci-failure-triageSkill
- evidence-first-answerSkill
- fleet-coordinationSkill
- paranoid-mode-honesty-not-cloneSkill
- revenue-truthSkill
- scope-disciplineSkill
- The first 60 shown.
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.

