igorganapolsky avatar

ThumbGate — PreToolUse Agent Firewall

igorganapolsky/thumbgate

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.

GitHub stars
31
tools
68
transport
STDIO
last updated
Nov 11, 2026

Tools

68 tools

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 params

Capture an up/down signal plus one line of why. Vague feedback is logged, then returned with a clarification prompt instead of memory promotion.

Parameters* required
chatHistoryarray
Optional caller-supplied recent conversation window used for history-aware lesson distillation. The current Claude auto-capture path sends up to 8 prior recorded entries for vague negative inline s...
contextstring
One-sentence reason describing what worked or failed
conversationWindowarray
Recent conversation turns before the feedback signal. Raw messages, not summaries.
failureTypestring
Dual-signal: "decision" = wrong tool/action chosen, "execution" = right tool but bad parameters/output. Improves Thompson Sampling precision.one of decision · execution
guardrailsobject
relatedFeedbackIdstring
Optional prior feedback event to merge with later follow-up context.
rubricScoresarray
signalstring
one of up · down
skillstring
tagsarray
whatToChangestring
whatWentWrongstring
whatWorkedstring
feedback_summaryGet summary of recent feedback1 params

Get summary of recent feedback

Parameters* required
recentnumber
search_lessonsSearch promoted lessons and show the corrective actions, lifecycle state, prevention rules, gates, and next harness fixes linked to each result.4 params

Search promoted lessons and show the corrective actions, lifecycle state, prevention rules, gates, and next harness fixes linked to each result.

Parameters* required
categorystring
one of error · learning · preference
limitnumber
Maximum results to return (default 10)
querystring
Search query. Leave empty to list the most recent lessons.
tagsarray
Require all tags to be present on a lesson
retrieve_lessonsRetrieve the most relevant lessons for a given tool/action context. Use in PreToolUse hooks for per-action guidance.3 params

Retrieve the most relevant lessons for a given tool/action context. Use in PreToolUse hooks for per-action guidance.

Parameters* required
actionContextstring
Description of what the tool call is doing
maxResultsnumber
Max lessons to return (default 5)
toolNamestring
The tool being called (e.g., Bash, Edit, Read)
search_thumbgateSearch raw ThumbGate state across feedback logs, ContextFS memory, prevention rules, and imported policy documents.4 params

Search raw ThumbGate state across feedback logs, ContextFS memory, prevention rules, and imported policy documents.

Parameters* required
limitnumber
Maximum results to return (default 10)
querystring
Search query for ThumbGate state.
signalstring
Optional feedback-signal filter when searching feedback data.one of up · down · positive · negative
sourcestring
Restrict search to a single ThumbGate source.one of all · feedback · context · rules · documents
import_documentImport a local policy or runbook document into ThumbGate, normalize it for search, and propose provenance-backed gate candidates.7 params

Import a local policy or runbook document into ThumbGate, normalize it for search, and propose provenance-backed gate candidates.

Parameters* required
contentstring
Inline document content for hosted or generated imports.
filePathstring
Local file path inside the active workspace or ThumbGate runtime.
proposeGatesboolean
When true (default), derive reviewable gate proposals from the document.
sourceFormatstring
Optional source format override when importing inline content.one of markdown · text · yaml · json · html
sourceUrlstring
Optional external URL or provenance label for the imported document.
tagsarray
Optional tags such as policy, runbook, or team.
titlestring
Optional display title override.
list_imported_documentsList imported policy and runbook documents stored in local ThumbGate state.3 params

List imported policy and runbook documents stored in local ThumbGate state.

Parameters* required
limitnumber
Maximum documents to return (default 20).
querystring
Optional title or excerpt filter.
tagstring
Optional tag or matched template id filter.
get_imported_documentRead a previously imported document with its proposed gate candidates and provenance.1 params

Read a previously imported document with its proposed gate candidates and provenance.

Parameters* required
documentIdstring
Imported document id.
feedback_statsGet feedback stats and recommendations

Get 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 params

Diagnose a failed or suspect workflow step using MCP schema, workflow, gate, and approval constraints.

Parameters* required
approvedboolean
contextstring
errorstring
exitCodenumber
guardrailsobject
intentIdstring
mcpProfilestring
outputstring
rubricScoresarray
stepstring
toolArgsobject
toolNamestring
verificationobject
infer_lesson_from_historyPerform autonomous inference on chat history to identify why a failure occurred and what rule should be recorded.2 params

Perform autonomous inference on chat history to identify why a failure occurred and what rule should be recorded.

Parameters* required
chatHistoryarray
lastActionobject
list_intentsList available intent plans and whether each requires human approval in the active profile3 params

List available intent plans and whether each requires human approval in the active profile

Parameters* required
bundleIdstring
mcpProfilestring
partnerProfilestring
plan_intentGenerate an intent execution plan with policy checkpoints8 params

Generate an intent execution plan with policy checkpoints

Parameters* required
approvedboolean
bundleIdstring
contextstring
delegationModestring
one of off · auto · sequential
intentIdstring
mcpProfilestring
partnerProfilestring
repoPathstring
start_handoffStart a sequential delegation handoff from a delegation-eligible intent plan9 params

Start a sequential delegation handoff from a delegation-eligible intent plan

Parameters* required
approvedboolean
bundleIdstring
contextstring
delegateProfilestring
intentIdstring
mcpProfilestring
partnerProfilestring
plannedChecksarray
repoPathstring
complete_handoffComplete a sequential delegation handoff and record verification outcomes8 params

Complete a sequential delegation handoff and record verification outcomes

Parameters* required
attemptsnumber
handoffIdstring
latencyMsnumber
outcomestring
one of accepted · rejected · aborted
resultContextstring
summarystring
tokenEstimatenumber
violationCountnumber
describe_reliability_entityGet the definition and state of a business entity (Customer, Revenue, Funnel). Aliased to describe_semantic_entity.1 params

Get the definition and state of a business entity (Customer, Revenue, Funnel). Aliased to describe_semantic_entity.

Parameters* required
typestring
one of Customer · Revenue · Funnel
get_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 params

Scan 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.

Parameters* required
contentstring
Code content to scan
diffModeboolean
When true, treats content as git diff output
filePathstring
File path for language-aware scanning
capture_memory_feedbackCapture success/failure feedback to harden future workflows. Aliased to capture_feedback.3 params

Capture success/failure feedback to harden future workflows. Aliased to capture_feedback.

Parameters* required
contextstring
signalstring
one of up · down
tagsarray
bootstrap_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 params

Normalize 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.

Parameters* required
approvedboolean
commentsarray
contextstring
delegationModestring
one of off · auto · sequential
intentIdstring
mcpProfilestring
messagesarray
partnerProfilestring
prepareSandboxboolean
repoPathstring
sandboxRootstring
sourcestring
one of github · slack · linear · api · cli
taskobject
threadobject
triggerobject
prevention_rulesGenerate prevention rules from repeated mistake patterns2 params

Generate prevention rules from repeated mistake patterns

Parameters* required
minOccurrencesnumber
outputPathstring
export_dpo_pairsExport DPO preference pairs from local memory log1 params

Export DPO preference pairs from local memory log

Parameters* required
memoryLogPathstring
export_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 params

Export 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.

Parameters* required
includeProvenanceboolean
Include provenance events in traces (default: true)
outputDirstring
Output directory (default: feedback-dir/hf-dataset)
export_databricks_bundleExport ThumbGate logs and proof artifacts as a Databricks-ready analytics bundle1 params

Export ThumbGate logs and proof artifacts as a Databricks-ready analytics bundle

Parameters* required
outputPathstring
construct_context_packConstruct a bounded context pack from contextfs4 params

Construct a bounded context pack from contextfs

Parameters* required
maxCharsnumber
maxItemsnumber
namespacesarray
querystring
evaluate_context_packRecord evaluation outcome for a context pack6 params

Record evaluation outcome for a context pack

Parameters* required
guardrailsobject
notesstring
outcomestring
packIdstring
rubricScoresarray
signalstring
context_provenanceGet recent context/provenance events1 params

Get recent context/provenance events

Parameters* required
limitnumber
generate_skillAuto-generate Claude skills from repeated feedback patterns. Clusters failure patterns by tags and produces SKILL.md files with DO/INSTEAD rules.2 params

Auto-generate Claude skills from repeated feedback patterns. Clusters failure patterns by tags and produces SKILL.md files with DO/INSTEAD rules.

Parameters* required
minOccurrencesnumber
Minimum pattern occurrences to trigger skill generation (default 3)
tagsarray
Filter to specific tags
recallRecall 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 params

Recall 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.

Parameters* required
limitnumber
Max memories to return (default 5)
querystring
Describe the current task or context to find relevant past feedback
repoPathstring
Optional repository path for structural impact analysis on coding tasks
unified_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 params

Assemble 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...

Parameters* required
agentTypestring
Agent type — shapes context budget and feature inclusionone of claude · cursor · forgecode · codex
querystring
Describe the current task to find relevant context
repoPathstring
Repository path for code-graph impact analysis
toolInputobject
Current tool input (for guard evaluation)
toolNamestring
Current tool being invoked (improves lesson matching)
satisfy_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 params

Satisfy 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.

Parameters* required
evidencestring
Evidence text (e.g., "0 unresolved threads")
gatestring
Gate condition ID to satisfy (e.g., pr_threads_checked)
structuredReasoningobject
Structured pre-gate reasoning: state premises, trace evidence, assess risk, derive conclusion before unlocking.
set_task_scopeDeclare or clear the current task scope so ThumbGate can compare affected files and diffs against the approved path set.7 params

Declare or clear the current task scope so ThumbGate can compare affected files and diffs against the approved path set.

Parameters* required
allowedPathsarray
Glob patterns that define the allowed file scope for this task
clearboolean
Clear the current task scope instead of setting one
localOnlyboolean
When true, also marks the task as local-only
protectedPathsarray
Optional protected-file globs that require explicit approval before editing or publishing
repoPathstring
Optional repo root used when evaluating git diff scope
summarystring
Short summary of the task being worked
taskIdstring
Optional stable task identifier (ticket, issue, or work item id)
get_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 params

Declare or clear branch and release governance so PR, merge, release, and publish actions can be evaluated against explicit workflow state.

Parameters* required
baseBranchstring
Protected base branch for merge and release operations (defaults to main)
branchNamestring
Optional branch name the governance applies to
clearboolean
Clear the current branch governance state instead of setting it
localOnlyboolean
When true, PR, merge, release, and publish actions are blocked for this lane
prNumberstring
Optional pull request number once a PR exists
prRequiredboolean
Whether this lane must go through a pull request (defaults to true)
prUrlstring
Optional pull request URL once a PR exists
queueRequiredboolean
Whether the target branch requires a merge queue
releaseEvidencestring
Optional evidence or release plan note for the governed version
releaseSensitiveGlobsarray
Optional custom globs that define release-sensitive files for this branch lane
releaseVersionstring
Expected package version for release or publish actions
get_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 params

Grant a time-limited approval for edits or publish actions that touch protected files.

Parameters* required
evidencestring
Optional supporting evidence or approval note
pathGlobsarray
Protected-file globs covered by this approval
reasonstring
Why this protected-file action is approved
taskIdstring
Optional task id this approval is tied to
ttlMsnumber
Optional approval lifetime in milliseconds (defaults to 1 hour, max 24 hours)
track_actionRecord a verification action in the current session (for example figma_verified or tests_passed). Session actions expire after one hour.2 params

Record a verification action in the current session (for example figma_verified or tests_passed). Session actions expire after one hour.

Parameters* required
actionIdstring
Verification action ID to record
metadataobject
Optional structured metadata describing the evidence source
verify_claimCheck whether a claim has enough tracked evidence before the agent asserts it.1 params

Check whether a claim has enough tracked evidence before the agent asserts it.

Parameters* required
claimstring
The claim text to verify
check_operational_integrityEvaluate whether the current repo state is safe for PR, merge, release, and publish operations.5 params

Evaluate whether the current repo state is safe for PR, merge, release, and publish operations.

Parameters* required
baseBranchstring
Protected base branch to compare against (defaults to main)
commandstring
Optional git, PR, or publish command to evaluate against the current governance state
repoPathstring
Optional repository path to inspect
requirePrForReleaseSensitiveboolean
When true, release-sensitive changes on non-base branches require an open PR
requireVersionNotBehindBaseboolean
When true, release-sensitive changes cannot lag behind the base branch package version
workflow_sentinelPredict pre-action workflow risk, blast radius, and remediations before a tool call executes.8 params

Predict pre-action workflow risk, blast radius, and remediations before a tool call executes.

Parameters* required
baseBranchstring
Optional protected base branch override (defaults to main)
changedFilesarray
Optional affected-file list used to estimate blast radius
commandstring
Optional shell command when toolName is Bash
filePathstring
Optional primary file path for edit-like tools
repoPathstring
Optional repository path used for git-aware integrity checks
requirePrForReleaseSensitiveboolean
When true, release-sensitive changes on non-base branches require an open PR
requireVersionNotBehindBaseboolean
When true, release-sensitive changes cannot lag behind the base branch package version
toolNamestring
Tool being assessed, such as Bash, Edit, or Write
register_claim_gateRegister a custom claim verification rule in local runtime state without editing tracked repo config.3 params

Register a custom claim verification rule in local runtime state without editing tracked repo config.

Parameters* required
claimPatternstring
Regex pattern that should trigger claim verification
messagestring
Custom message returned when evidence is missing
requiredActionsarray
Tracked actions that must be present before the claim is verified
gate_statsGet gate enforcement statistics -- blocked count, warned count, top gates

Get 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 health

Get 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 params

Org-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.

Parameters* required
windowHoursnumber
Lookback window in hours (default 24)
settings_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 params

Recall past feedback filtered by commerce categories (product_recommendation, brand_compliance, sizing, pricing, regulatory). Returns quality scores alongside memories for agentic commerce agents.

Parameters* required
categoriesarray
Commerce categories to filter (default: all commerce categories)
limitnumber
Max memories to return (default 5)
querystring
Product or brand context to find relevant past feedback
get_business_metricsRetrieve high-level business metrics (Revenue, Conversion, Customers) from the Semantic Layer.1 params

Retrieve high-level business metrics (Revenue, Conversion, Customers) from the Semantic Layer.

Parameters* required
windowstring
Analytics window (today, 7d, 30d, all)
describe_semantic_entityGet the canonical definition and state of a business entity (Customer, Revenue, Funnel).1 params

Get the canonical definition and state of a business entity (Customer, Revenue, Funnel).

Parameters* required
typestring
one of Customer · Revenue · Funnel
estimate_uncertaintyEstimate Bayesian uncertainty for a set of tags based on past feedback.1 params

Estimate Bayesian uncertainty for a set of tags based on past feedback.

Parameters* required
tagsarray
Tags to analyze for uncertainty
session_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 params

Write 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.

Parameters* required
blockersarray
Open blockers or unresolved issues
customContextstring
Any additional context for the next session
lastTaskstring
What was completed this session
nextStepstring
Exact next action for the next session
openFilesarray
Key files being worked on
projectstring
Project name (auto-detected from cwd if omitted)
session_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 params

List natural-language harness specs for portable workflow control, proof-backed verification, and GTM execution.

Parameters* required
tagstring
Optional tag filter such as verification, acquisition, or workflow.
run_harnessExecute a natural-language harness through the async job runner with checkpoints, verification, and proof-backed outcomes.3 params

Execute a natural-language harness through the async job runner with checkpoints, verification, and proof-backed outcomes.

Parameters* required
harnessstring
Harness id or file basename to execute.
inputsobject
Optional input overrides for template variables.
jobIdstring
Optional stable job id for the resulting runtime.
scheduleCreate, 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 params

Create, 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.

Parameters* required
actionstring
Schedule actionone of create · list · delete
commandstring
Node.js code to execute on schedule
descriptionstring
What this schedule does
namestring
Schedule name/ID
schedulestring
Schedule spec: "daily 9:00", "weekly monday 8:30", "hourly"
workingDirectorystring
Working directory for the command
user_profileManage persistent user profile — preferences, style, domain knowledge that persists across sessions. Actions: add, remove, replace, view.3 params

Manage persistent user profile — preferences, style, domain knowledge that persists across sessions. Actions: add, remove, replace, view.

Parameters* required
actionstring
Profile actionone of add · remove · replace · view
contentstring
Content to add or new content for replace
old_textstring
Substring to match for remove/replace
session_searchSearch past session notes and conversations using full-text search. Returns relevant sessions from the SQLite FTS5 index for cross-session recall.2 params

Search past session notes and conversations using full-text search. Returns relevant sessions from the SQLite FTS5 index for cross-session recall.

Parameters* required
limitnumber
Max results to return (default 10)
querystring
Search query to find relevant past sessions
open_feedback_sessionOpen a feedback session after thumbs up/down. Follow-up messages will be captured for 60s.3 params

Open a feedback session after thumbs up/down. Follow-up messages will be captured for 60s.

Parameters* required
feedbackEventIdstring
The feedback event ID from capture_feedback
initialContextstring
signalstring
one of up · down
append_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 params

Append a follow-up message to an open feedback session. Call this when the user types additional context after giving thumbs up/down.

Parameters* required
messagestring
The follow-up message from the user
rolestring
one of user · assistantdefault: user
sessionIdstring
finalize_feedback_sessionFinalize a feedback session and re-infer the lesson with all follow-up context.1 params

Finalize a feedback session and re-infer the lesson with all follow-up context.

Parameters* required
sessionIdstring
webhook_deliverSend a message to Teams, Slack, or Discord via webhook. Use for status reports, alerts, and notifications.4 params

Send a message to Teams, Slack, or Discord via webhook. Use for status reports, alerts, and notifications.

Parameters* required
messagestring
Message body (markdown supported)
platformstring
Target platformone of teams · slack · discord
titlestring
Message title
webhook_urlstring
Webhook URL for the target channel
reflect_on_feedbackRun a post-mortem analysis on negative feedback. Returns a proposed rule and recurrence info.4 params

Run a post-mortem analysis on negative feedback. Returns a proposed rule and recurrence info.

Parameters* required
contextstring
One-line context from the caller
conversationWindowarray
Last 5-10 conversation turns before the feedback signal.
feedbackEventIdstring
ID of a previously captured feedback event
whatWentWrongstring
What the caller said went wrong
report_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 params

Report 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.

Parameters* required
bodystring
Description of the problem or suggestion, in the user own words
categorystring
Issue categoryone of bug · feature · question
titlestring
Short issue title (e.g. "Gate blocks valid migration")
run_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 params

Run 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.

Parameters* required
dryRunboolean
Preview what would be written without persisting
limitnumber
Max feedback entries to process (default: 20)
modelstring
Override the Claude model (default: claude-haiku-4-5)
managed_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 params

Run 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.

Parameters* required
dryRunboolean
If true, analyzes but does not persist lessons
limitnumber
Max conversation logs to process (default 20)
modelstring
LLM model to use for analysis (requires ANTHROPIC_API_KEY)
self_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 params

Dump 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.

Parameters* required
formatstring
Output format (default: compact)one of compact · full
maxTokenBudgetnumber
Approximate token budget (default: 10000)
signalstring
Filter by signal typeone of positive · negative

Sponsors

Readme

ThumbGate 👍 👎

ThumbGate Infrastructure Firewall with Thumbs Up and Thumbs Down

ThumbGate is the 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.


View the full README on GitHub

Details

Repository
github.com/igorganapolsky/thumbgate
Website
thumbgate.ai
Categories
AI & LLM Tools, Security & Pentesting
Package
thumbgate
Transport
STDIO
Registry
MCP registry, active

More from igorganapolsky

Related AI & LLM Tools MCP servers

View all
1leandropg19 avatarCuba Memorysleandropg19/cuba-memorysPersistent memory MCP server. 28 tools, BM25+MMR+OOD retrieval, tamper-evident audit, code graph.30stars
2vishisht16 avatarHumane Proxyvishisht16/humane-proxyAI safety middleware — detects self-harm and criminal intent in LLM prompts.28stars
3mkxultra avatarAi Cli Mcpmkxultra/ai-cli-mcpRun Claude, Codex, Gemini, Forge, and OpenCode CLIs through MCP with background jobs27stars
4youdotcom-oss avatarYou.com Web Access & AIyoudotcom-oss/mcpWeb search, AI agent, and content extraction via You.com APIs0stars
5olostep avatarOlostep MCP Serverolostep/olostep-mcp-serverLive web search, scraping and crawling API for AI. Get structured, LLM-ready data from any site.25stars
6grahammccain avatarChart Library — Market-state researchgrahammccain/chart-library-mcpMarket memory for AI: historical states, published studies and source evidence.23stars