thumbgate 1.40.10 → 1.40.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.well-known/mcp/server-card.json +1 -1
- package/README.md +46 -40
- package/adapters/claude/.mcp.json +3 -3
- package/adapters/forge/forge.yaml +3 -3
- package/adapters/future-agi/.mcp.json +1 -1
- package/adapters/future-agi/config.toml +1 -1
- package/adapters/future-agi/opencode.json +1 -1
- package/adapters/herdr/herdr-plugin.toml +2 -2
- package/adapters/mcp/server-stdio.js +1 -1
- package/adapters/opencode/opencode.json +1 -1
- package/bin/cli.js +9 -8
- package/bin/postinstall.js +2 -2
- package/config/unit-costs.json +47 -0
- package/package.json +16 -5
- package/public/admin.html +284 -29
- package/public/agent-manager.html +2 -2
- package/public/agents-cost-savings.html +1 -1
- package/public/codex-enterprise.html +2 -2
- package/public/compare.html +3 -3
- package/public/dashboard.html +28 -9
- package/public/diagnostic.html +1 -1
- package/public/founders.html +1 -1
- package/public/guide.html +4 -4
- package/public/index.html +80 -116
- package/public/install.html +19 -19
- package/public/js/connect-panel.js +21 -7
- package/public/learn.html +8 -0
- package/public/lessons.html +1 -1
- package/public/numbers.html +2 -2
- package/public/pricing.html +12 -9
- package/public/pro.html +96 -137
- package/public/project-switcher.js +50 -19
- package/scripts/auto-wire-hooks.js +36 -2
- package/scripts/billing.js +3 -1
- package/scripts/cli-schema.js +2 -3
- package/scripts/commercial-offer.js +1 -1
- package/scripts/cost-meter.js +161 -0
- package/scripts/gates-engine.js +26 -8
- package/scripts/hook-runtime.js +18 -1
- package/scripts/mailer/resend-mailer.js +2 -0
- package/scripts/owner-admin.js +338 -16
- package/scripts/owner-alerts.js +79 -0
- package/scripts/owner-telemetry.js +113 -3
- package/scripts/pr-manager.js +156 -41
- package/scripts/project-catalog.js +3 -1
- package/scripts/project-identity.js +10 -2
- package/scripts/seo-gsd.js +1 -1
- package/scripts/telemetry-analytics.js +7 -1
- package/scripts/unit-economics.js +138 -0
- package/server.json +2 -2
- package/src/api/server.js +62 -4
- package/src/mcp-writeguard.js +2 -2
package/public/dashboard.html
CHANGED
|
@@ -151,6 +151,8 @@ mark{background:#fbbf24;color:#000;font-weight:700;border-radius:2px;padding:0 3
|
|
|
151
151
|
.export-section{margin-bottom:48px}
|
|
152
152
|
.export-btn{background:var(--bg-raised);border:1px solid var(--border);border-radius:8px;padding:12px 20px;color:var(--text);font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:border-color .15s}
|
|
153
153
|
.export-btn:hover{border-color:var(--cyan);color:var(--cyan)}
|
|
154
|
+
.section-sub{margin:4px 0 0;color:var(--text-muted,#a1a1aa);font-size:14px}
|
|
155
|
+
.tab-content{scroll-margin-top:72px}
|
|
154
156
|
.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:24px}
|
|
155
157
|
.tab{padding:12px 20px;font-size:14px;font-weight:500;color:var(--text-muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
|
|
156
158
|
.tab:hover{color:var(--text)}.tab.active{color:var(--cyan);border-bottom-color:var(--cyan)}
|
|
@@ -193,7 +195,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
193
195
|
.ob-btn.safe { border-color:rgba(74,222,128,0.35); background:rgba(74,222,128,0.04); }
|
|
194
196
|
.ob-btn code { font-family:var(--mono); font-size:11px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
195
197
|
</style>
|
|
196
|
-
<script src="/project-switcher.js"></script>
|
|
198
|
+
<script src="/project-switcher.js?v=20261124"></script>
|
|
197
199
|
</head>
|
|
198
200
|
<body data-revenue-assist="off">
|
|
199
201
|
|
|
@@ -291,7 +293,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
291
293
|
<span id="chipWarnedToday" class="g-chip w"><strong data-chip-count="warned-today">0</strong> WARNED TODAY</span>
|
|
292
294
|
<span id="chipActiveGates" class="g-chip a"><strong data-chip-count="active-gates">0</strong> ACTIVE GATES</span>
|
|
293
295
|
</div>
|
|
294
|
-
|
|
296
|
+
<p id="feedbackScopeNote" style="margin:0 0 8px;font-size:13px;color:var(--text-muted,#a1a1aa)"></p>
|
|
295
297
|
<div class="stats-grid" id="statsGrid">
|
|
296
298
|
<a class="stat-card" data-card-action="all" onclick="selectCard(this,'all')" href="/lessons?signal=all" style="cursor:pointer;text-decoration:none;color:inherit;display:block;" title="Click to view all feedback → Lessons page"><div class="stat-label">Total Feedback <span class="tooltip-trigger" onclick="event.stopPropagation(); event.preventDefault();">?<span class="tooltip-content">Total thumbs-up and thumbs-down signals captured from your AI agent interactions.</span></span></div><div class="stat-value cyan" id="statTotal">—</div></a>
|
|
297
299
|
<a class="stat-card" data-card-action="up" onclick="selectCard(this,'up')" href="/lessons?signal=up" style="cursor:pointer;text-decoration:none;color:inherit;display:block;" title="Click to view positive feedback → Lessons page"><div class="stat-label">👍 Positive <span class="tooltip-trigger" onclick="event.stopPropagation(); event.preventDefault();">?<span class="tooltip-content">Successful outcomes where the agent's work met expectations (thumbs-up).</span></span></div><div class="stat-value green" id="statPositive">—</div></a>
|
|
@@ -396,7 +398,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
396
398
|
|
|
397
399
|
<div class="tab-content" id="tab-gates">
|
|
398
400
|
<div class="gates-section">
|
|
399
|
-
<h2>Active Pre-
|
|
401
|
+
<h2>Active Gates</h2><p class="section-sub">Pre-action checks that block or warn before an agent acts</p>
|
|
400
402
|
<div id="gatesTabStatusChips" class="g-chips" style="margin-top:10px">
|
|
401
403
|
<span class="g-chip b"><strong data-chip-count="blocked-today">0</strong> BLOCKED TODAY</span>
|
|
402
404
|
<span class="g-chip w"><strong data-chip-count="warned-today">0</strong> WARNED TODAY</span>
|
|
@@ -434,7 +436,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
434
436
|
|
|
435
437
|
<div class="tab-content" id="tab-team">
|
|
436
438
|
<div class="team-section">
|
|
437
|
-
<h2>Shared
|
|
439
|
+
<h2>Team</h2><p class="section-sub">Shared team reliability</p>
|
|
438
440
|
<p class="template-summary">See which agents drift, which gates save the team the most time, and whether the shared workflow is getting safer.</p>
|
|
439
441
|
<div class="team-grid" id="teamSummaryCards"><div class="loading">Loading team metrics...</div></div>
|
|
440
442
|
<div class="team-grid" id="predictiveSummaryCards"><div class="loading">Loading predictive insights...</div></div>
|
|
@@ -530,7 +532,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
530
532
|
|
|
531
533
|
<div class="tab-content" id="tab-ai-inventory">
|
|
532
534
|
<div class="templates-section">
|
|
533
|
-
<h2>AI
|
|
535
|
+
<h2>AI Inventory</h2><p class="section-sub">AI components found in your projects</p>
|
|
534
536
|
<p class="template-summary">This API scans the dashboard server’s working directory. On the hosted dashboard it describes the server checkout, not projects on your machine. Run the CLI export below from your project for its inventory.</p>
|
|
535
537
|
<p class="template-summary">Enterprise evidence for AI/ML usage: provider SDKs, agent frameworks, vector databases, Vertex/Gemini/Dialogflow CX references, and local model artifacts. Export this as ML-BOM proof before claiming an AI system is production-ready.</p>
|
|
536
538
|
<div class="inventory-grid" id="aiInventorySummaryCards"><div class="loading">Scanning AI inventory...</div></div>
|
|
@@ -554,7 +556,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
554
556
|
|
|
555
557
|
<div class="tab-content" id="tab-generated">
|
|
556
558
|
<div class="templates-section">
|
|
557
|
-
<h2>Generated
|
|
559
|
+
<h2>Generated Views</h2><p class="section-sub">Generated hosted views</p>
|
|
558
560
|
<p class="template-summary" id="generatedViewSummary">A constrained JSON spec builds opinionated review dashboards from approved cards, lists, and callouts.</p>
|
|
559
561
|
<div class="generated-toolbar" id="generatedViewToolbar"><div class="loading">Loading generated views...</div></div>
|
|
560
562
|
<div class="generated-canvas" id="generatedViewCanvas"><div class="loading">Loading generated view...</div></div>
|
|
@@ -588,7 +590,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
588
590
|
|
|
589
591
|
<div class="tab-content" id="tab-templates">
|
|
590
592
|
<div class="templates-section">
|
|
591
|
-
<h2>
|
|
593
|
+
<h2>Gate Templates</h2><p class="section-sub">Curated gate templates you can adopt</p>
|
|
592
594
|
<div class="template-summary" id="templateSummary">Loading template library...</div>
|
|
593
595
|
<div class="template-grid" id="templateLibrary"><div class="loading">Loading templates...</div></div>
|
|
594
596
|
</div>
|
|
@@ -597,7 +599,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
597
599
|
|
|
598
600
|
<div class="tab-content" id="tab-insights">
|
|
599
601
|
<div class="templates-section">
|
|
600
|
-
<h2
|
|
602
|
+
<h2>Insights</h2><p class="section-sub">Feedback insights and the lesson pipeline</p>
|
|
601
603
|
<p class="template-summary">How your thumbs-up/down signals turn into lessons that prevent repeat mistakes.</p>
|
|
602
604
|
|
|
603
605
|
|
|
@@ -680,7 +682,7 @@ h2{font-size:20px;font-weight:700;margin-bottom:16px;letter-spacing:-.02em}
|
|
|
680
682
|
|
|
681
683
|
<div class="tab-content" id="tab-export">
|
|
682
684
|
<div class="export-section">
|
|
683
|
-
<h2>Export
|
|
685
|
+
<h2>Export</h2><p class="section-sub">Export training data (DPO)</p>
|
|
684
686
|
<div style="background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:24px;max-width:640px;">
|
|
685
687
|
<h3 style="font-size:15px;margin-bottom:8px;">What is DPO?</h3>
|
|
686
688
|
<p style="color:var(--text-muted);font-size:14px;line-height:1.65;margin-bottom:12px;"><strong style="color:var(--text);">Direct Preference Optimization</strong> is a technique for fine-tuning LLMs using human preference data. Your 👍/👎 feedback is converted into training pairs:</p>
|
|
@@ -1175,6 +1177,7 @@ async function connect(options) {
|
|
|
1175
1177
|
}
|
|
1176
1178
|
renderStats(data);
|
|
1177
1179
|
setSelectedCard('all');
|
|
1180
|
+
window.ThumbGateProjects.refresh(getHeaders());
|
|
1178
1181
|
var deepLinkedTab = getDeepLinkTab();
|
|
1179
1182
|
if (deepLinkedTab && deepLinkedTab !== 'search') {
|
|
1180
1183
|
switchTab(deepLinkedTab);
|
|
@@ -1266,7 +1269,23 @@ function markDashboardRefreshed() {
|
|
|
1266
1269
|
refreshed.textContent = now.toLocaleString();
|
|
1267
1270
|
}
|
|
1268
1271
|
|
|
1272
|
+
// Say where the headline numbers come from so they cannot silently disagree with a statusline or a per-project card.
|
|
1273
|
+
function renderFeedbackScope(data) {
|
|
1274
|
+
var note = document.getElementById('feedbackScopeNote');
|
|
1275
|
+
if (!note || isDemo) return;
|
|
1276
|
+
var agg = data.aggregate || {};
|
|
1277
|
+
var stores = Array.isArray(agg.stores) ? agg.stores.length : null;
|
|
1278
|
+
var parts = [];
|
|
1279
|
+
if (agg.enabled && stores != null) parts.push('Counts human-reviewed feedback merged from ' + stores + ' data folder' + (stores === 1 ? '' : 's') + ' on this machine');
|
|
1280
|
+
else if (window.ThumbGateProjects && window.ThumbGateProjects.selected) parts.push('Counts for the selected project only');
|
|
1281
|
+
else parts.push('Counts human-reviewed feedback from this data folder');
|
|
1282
|
+
var excluded = Number(data.excludedTotal || 0);
|
|
1283
|
+
if (excluded > 0) parts.push(excluded + ' automated or unreviewed event' + (excluded === 1 ? '' : 's') + ' not counted');
|
|
1284
|
+
note.textContent = parts.join('; ') + '. Pick a project above for its own numbers.';
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1269
1287
|
function renderStats(data) {
|
|
1288
|
+
renderFeedbackScope(data);
|
|
1270
1289
|
const total = (data.totalFeedback || data.total || 0);
|
|
1271
1290
|
const pos = (data.totalPositive || data.positive || data.thumbsUp || 0);
|
|
1272
1291
|
const neg = (data.totalNegative || data.negative || data.thumbsDown || 0);
|
package/public/diagnostic.html
CHANGED
|
@@ -521,7 +521,7 @@ footer { padding: 32px 0 44px; color: var(--muted); }
|
|
|
521
521
|
<p><strong>Two paths from here.</strong></p>
|
|
522
522
|
<p><strong>Path one:</strong> close this tab and keep paying for the same repeat — you find it after it lands, you undo it by hand, and the rule stays written in a file the agent can skip.<br>
|
|
523
523
|
<strong>Path two:</strong> send the one workflow that keeps failing and get it back as a configured gate with a regression test and written rollout and rollback proof, two business days after access.</p>
|
|
524
|
-
<p class="hint" style="margin-top:10px;">Refunded if the failure cannot be reduced to one supported ThumbGate gate. Runs locally on your machine. Want the free path first? <code>npx thumbgate init</code>
|
|
524
|
+
<p class="hint" style="margin-top:10px;">Refunded if the failure cannot be reduced to one supported ThumbGate gate. Runs locally on your machine. Want the free path first? <code>npx thumbgate init</code> runs locally. Anonymous usage pings are on by default; <code>THUMBGATE_NO_TELEMETRY=1</code> turns them off. See the <a href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/docs/VERIFICATION_EVIDENCE.md" target="_blank" rel="noopener">verification evidence</a>.</p>
|
|
525
525
|
</div>
|
|
526
526
|
<div class="actions">
|
|
527
527
|
<a class="button primary" href="#top" data-revenue-cta data-cta-id="diagnostic_bottom_buy" data-cta-placement="bottom_band">Harden my workflow — $__SPRINT_DIAGNOSTIC_PRICE_DOLLARS__</a>
|
package/public/founders.html
CHANGED
|
@@ -401,7 +401,7 @@ footer {
|
|
|
401
401
|
</article>
|
|
402
402
|
<article class="pain">
|
|
403
403
|
<h3>Not sure yet?</h3>
|
|
404
|
-
<p>Run the free local evaluate first. <code>npx thumbgate init</code> takes minutes, runs on your machine, and needs no card
|
|
404
|
+
<p>Run the free local evaluate first. <code>npx thumbgate init</code> takes minutes, runs on your machine, and needs no card and no access to your repo. If it shows you the failure at the tool call, the managed diagnostic is just us doing the rest for you.</p>
|
|
405
405
|
<p style="margin-top:10px;"><a href="#buy" data-revenue-cta data-cta-id="founders_fit_buy" data-cta-placement="fit_section"><strong>Or skip ahead and gate my worst failure · $__SPRINT_DIAGNOSTIC_PRICE_DOLLARS__</strong></a></p>
|
|
406
406
|
</article>
|
|
407
407
|
</div>
|
package/public/guide.html
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"name": "Why does my Claude Code agent keep force-pushing to main?",
|
|
95
95
|
"acceptedAnswer": {
|
|
96
96
|
"@type": "Answer",
|
|
97
|
-
"text": "Because prompt rules are suggestions the agent can ignore. ThumbGate adds enforcement: a PreToolUse hook
|
|
97
|
+
"text": "Because prompt rules are suggestions the agent can ignore. ThumbGate adds enforcement: a PreToolUse hook runs before tool calls and checks them against known failure patterns. When the action matches a check (like git push --force to main), it is flagged and logged before execution — and hard-blocked when strict enforcement (THUMBGATE_STRICT_ENFORCEMENT=1) is on. Catastrophic actions such as secret exfiltration and destructive deletes are hard-blocked by default."
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"name": "How do I set up PreToolUse hooks in Claude Code?",
|
|
135
135
|
"acceptedAnswer": {
|
|
136
136
|
"@type": "Answer",
|
|
137
|
-
"text": "Run npx thumbgate init --agent claude-code. This auto-configures PreToolUse hooks in your .claude/settings.json. The hooks
|
|
137
|
+
"text": "Run npx thumbgate init --agent claude-code. This auto-configures PreToolUse hooks in your .claude/settings.json. The hooks run before tool calls and check them against your prevention rules and checks."
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{
|
|
@@ -316,7 +316,7 @@ npx thumbgate init --agent gemini</code></pre>
|
|
|
316
316
|
<tr><th>Feature</th><th>Prompt Rules</th><th>Pre-Action Checks</th></tr>
|
|
317
317
|
<tr><td>Where they live</td><td>CLAUDE.md, .cursorrules</td><td>PreToolUse hooks</td></tr>
|
|
318
318
|
<tr><td>Enforcement</td><td>Suggestion (can be ignored)</td><td>Flags + logs; hard-blocks critical / strict mode</td></tr>
|
|
319
|
-
<tr><td>When they fire</td><td>At prompt load</td><td>Before
|
|
319
|
+
<tr><td>When they fire</td><td>At prompt load</td><td>Before a tool runs</td></tr>
|
|
320
320
|
<tr><td>Auto-generated</td><td>No — hand-written</td><td>Yes — from feedback</td></tr>
|
|
321
321
|
<tr><td>Adaptive</td><td>No</td><td>Yes — Thompson Sampling</td></tr>
|
|
322
322
|
<tr><td>Persist across sessions</td><td>Only if in a file</td><td>SQLite + JSONL</td></tr>
|
|
@@ -373,7 +373,7 @@ npx thumbgate init --agent gemini</code></pre>
|
|
|
373
373
|
<p>One command. Works with Claude Code, Cursor, Codex, Gemini, Amp, and OpenCode. Claude Code can also call Codex for review, adversarial review, and second-pass handoffs through the repo-local bridge plugin.</p>
|
|
374
374
|
<a href="/diagnostic?utm_source=guide&utm_medium=cta_button&utm_campaign=workflow_diagnostic" class="cta">Book the $499 Setup Sprint</a>
|
|
375
375
|
<a href="https://thumbgate.ai/#workflow-sprint-intake" class="cta cta-secondary">Send workflow first</a>
|
|
376
|
-
<p style="color:var(--muted); font-size:0.85rem;">Free: 2 captures/day, 10 total captures, 3 active prevention rules, hook blocking. Pro:
|
|
376
|
+
<p style="color:var(--muted); font-size:0.85rem;">Free: 2 captures/day, 10 total captures, 3 active prevention rules, hook blocking. Pro: recall, lesson search, unlimited captures and rules, DPO export. The local dashboard is free. Enterprise service work is qualified and signed after intake; hosted team sync and a hosted org dashboard are not generally available.</p>
|
|
377
377
|
|
|
378
378
|
</div>
|
|
379
379
|
<script src="/js/buyer-intent.js"></script>
|
package/public/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<meta name="generator" content="ThumbGate">
|
|
7
7
|
<meta name="author" content="Igor Ganapolsky">
|
|
8
|
-
<meta name="thumbgate-version" content="1.40.
|
|
8
|
+
<meta name="thumbgate-version" content="1.40.13">
|
|
9
9
|
__GOOGLE_SITE_VERIFICATION_META__
|
|
10
10
|
<link rel="icon" type="image/png" href="/thumbgate-icon.png">
|
|
11
11
|
<link rel="canonical" href="__APP_ORIGIN__/">
|
|
@@ -689,7 +689,7 @@
|
|
|
689
689
|
<meta http-equiv="origin-trial" content="AzcKU1rE0e4sfmh97XzN75yRFS+xFzZJrUJWswxGr6RahQWDNupKLhkVvdQZQayA/s4FLwcKpPntqUZgclhDjgoAAAB0eyJvcmlnaW4iOiJodHRwczovL3RodW1iZ2F0ZS5hcHA6NDQzIiwiZmVhdHVyZSI6IldlYk1DUCIsImV4cGlyeSI6MTgwNjM2NDgwMCwiaXNTdWJkb21haW4iOnRydWUsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0=" />
|
|
690
690
|
<meta http-equiv="origin-trial" content="A06wj3yXAwOhT5Cd5WYdVQotlYa/OID3SW099ZQB+cs9eHeJmtH1yHudLwqDKZ7y43tQvLB4TfM/pjmUa7aJNQsAAAB4eyJvcmlnaW4iOiJodHRwczovL3d3dy50aHVtYmdhdGUuYXBwOjQ0MyIsImZlYXR1cmUiOiJXZWJNQ1AiLCJleHBpcnkiOjE4MDYzNjQ4MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9" />
|
|
691
691
|
<script src="/js/webmcp.js" defer></script>
|
|
692
|
-
<script type="application/ld+json">{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "What is free?", "acceptedAnswer": {"@type": "Answer", "text": "The MIT local CLI
|
|
692
|
+
<script type="application/ld+json">{"@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{"@type": "Question", "name": "What is free?", "acceptedAnswer": {"@type": "Answer", "text": "The MIT local CLI: the default gates, 3 learned rules, and 2 thumbs a day (10 in total) after a 7-day Pro trial. Install the Claude Code plugin, then run npx thumbgate init --agent claude."}}, {"@type": "Question", "name": "What does Pro add?", "acceptedAnswer": {"@type": "Answer", "text": "Every learned rule stays active, unlimited thumbs, recall, lesson search and exports. Blocking catastrophic commands stays free. The full table is on /pricing."}}, {"@type": "Question", "name": "What does ThumbGate not do?", "acceptedAnswer": {"@type": "Answer", "text": "It does not catch a reworded version of a command you thumbed down, it does not contain damage like a sandbox, and it does not retrain the model. Outside Claude Code, most integrations are advisory. The coverage table above lists what is denied, what only warns, and what is missed."}}, {"@type": "Question", "name": "Which integrations enforce gates?", "acceptedAnswer": {"@type": "Answer", "text": "Claude Code enforces gates through PreToolUse hooks. Other agents are listed under Also works with; advisory integrations do not guarantee execution blocking."}}]}</script>
|
|
693
693
|
<script type="application/ld+json">{"@context":"https://schema.org","@type":"SoftwareApplication","name":"ThumbGate","applicationCategory":"DeveloperApplication","operatingSystem":"Cross-platform","url":"__APP_ORIGIN__/","offers":{"@type":"Offer","name":"ThumbGate Pro","price":"__PRO_PRICE_DOLLARS__","priceCurrency":"USD","url":"__APP_ORIGIN__/checkout/pro"}}</script>
|
|
694
694
|
</head>
|
|
695
695
|
<body data-revenue-assist="off">
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
<div class="nav-links">
|
|
703
703
|
<a href="#how-it-works">How it works</a>
|
|
704
704
|
<a href="#offers">Pricing</a>
|
|
705
|
-
<a href="#
|
|
705
|
+
<a href="#coverage">Coverage</a>
|
|
706
706
|
<button type="button" id="navPaidLoginBtn" data-cta-id="nav_paid_login" aria-expanded="false" aria-controls="paidLoginBar" onclick="window.tgTogglePaidLogin()" style="display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:8px 13px;border-radius:8px;border:1px solid rgba(56,215,255,0.45);background:rgba(56,215,255,0.08);color:var(--cyan);font:800 13px/1 inherit;">Log in</button>
|
|
707
707
|
<a id="navPaidDashboardLink" href="/dashboard" data-cta-id="nav_paid_dashboard" style="display:none;align-items:center;min-height:44px;min-width:44px;padding:8px 13px;border-radius:8px;border:1px solid rgba(86,227,159,0.45);background:rgba(86,227,159,0.12);color:var(--green);font:800 13px/1 inherit;text-decoration:none;">Dashboard →</a>
|
|
708
708
|
<a class="nav-buy" href="/checkout/pro" data-cta-id="nav_pro_checkout">Get Pro</a>
|
|
@@ -741,10 +741,10 @@
|
|
|
741
741
|
</svg>
|
|
742
742
|
<div class="hero-thumbs">
|
|
743
743
|
<span class="up" aria-hidden="true"><svg class="hero-thumb-up" viewBox="0 0 32 32" aria-hidden="true"><use href="#thumb-glyph"/></svg></span>
|
|
744
|
-
<button type="button" class="down" id="hero-thumb-down" aria-label="
|
|
744
|
+
<button type="button" class="down" id="hero-thumb-down" aria-label="Try the default rules on your own commands" title="Try the default rules on your own commands"><svg class="hero-thumb-down" viewBox="0 0 32 32" aria-hidden="true"><use href="#thumb-glyph"/></svg></button>
|
|
745
745
|
</div>
|
|
746
746
|
<h1>Thumbs-down a Claude Code mistake once, and ThumbGate warns the next time it tries that command. After three thumbs-downs on the same command, strict mode blocks it.</h1>
|
|
747
|
-
<p class="hero-lede">
|
|
747
|
+
<p class="hero-lede">Claude Code asks ThumbGate before a tool runs, even in bypass mode. Secret leaks, attempts to switch the gate off and five catastrophic commands are denied out of the box. Other flagged actions warn, and strict mode blocks them. <a href="#coverage">See coverage</a>.</p>
|
|
748
748
|
<p class="hero-audience" id="hero-audience"><strong>Who it's for:</strong> Claude Code users whose agent has already broken something once. The local CLI is free.</p>
|
|
749
749
|
<div class="actions"style="display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 24px;">
|
|
750
750
|
<button type="button" class="button-primary" data-copy-install data-cta-id="hero_install_copy_primary">Copy free install: npx thumbgate init --agent claude</button>
|
|
@@ -772,7 +772,7 @@ $ ... "git reset --hard HEAD~5"
|
|
|
772
772
|
$ ... "rm -rf ~/"
|
|
773
773
|
"permissionDecisionReason":"[GATE:rm-rf-home-or-root] Broad rm -rf against root or home is blocked. Use a narrow, reviewed path ..."</pre>
|
|
774
774
|
</div>
|
|
775
|
-
<p class="hero-note">Recorded from <code>thumbgate gate-check</code> v1.40.3
|
|
775
|
+
<p class="hero-note">Recorded from <code>thumbgate gate-check</code> v1.40.3 and re-run on v1.40.10 with the same result. These three are denied on a default install. Other flagged actions only warn unless you turn on strict mode: <code>THUMBGATE_STRICT_ENFORCEMENT=1</code>.</p>
|
|
776
776
|
<p class="hero-note" id="adoption-line" hidden></p>
|
|
777
777
|
<div class="cc-install" id="install">
|
|
778
778
|
<p class="cc-step"><strong>1 · Install the plugin</strong> <span class="cc-where">inside Claude Code</span></p>
|
|
@@ -811,7 +811,7 @@ $ ... "rm -rf ~/"
|
|
|
811
811
|
<ol class="loop-3">
|
|
812
812
|
<li><strong>1 · Catch</strong> Claude tries something you rejected before, like <code>npm publish</code> from the wrong branch, or mocking the database in an end-to-end test.</li>
|
|
813
813
|
<li><strong>2 · Signal</strong> One thumbs-down with the reason: <code>npx thumbgate capture --feedback=down --context="mocked the DB in an e2e test"</code></li>
|
|
814
|
-
<li><strong>3 · Enforce</strong>
|
|
814
|
+
<li><strong>3 · Enforce</strong> The local PreToolUse gate checks Claude Code's later tool calls in that project. A match warns Claude with your reason. In strict mode, the third thumbs-down on the same command turns the warning into a deny.</li>
|
|
815
815
|
</ol>
|
|
816
816
|
<h3 style="margin-top:28px;font-size:1.1rem;">What <code>init</code> adds to your Claude Code settings</h3>
|
|
817
817
|
<pre class="cc-cmd settings-block"><code>{
|
|
@@ -846,29 +846,23 @@ $ ... "rm -rf ~/"
|
|
|
846
846
|
|
|
847
847
|
<section id="offers">
|
|
848
848
|
<div class="shell" id="workflow-sprint-intake">
|
|
849
|
-
<
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
<div class="offer-stack" style="grid-template-columns: 1fr; max-width: 480px; margin: 0 auto;">
|
|
855
|
-
<div class="why-pro" id="why-pro">
|
|
856
|
-
<h3 class="section-title" style="font-size:1.6rem;">Why Pro is worth $__PRO_PRICE_DOLLARS__</h3>
|
|
857
|
-
<p class="install-hint">Free blocks force-push, <code>git reset --hard</code>, <code>git clean -f</code>, <code>rm -rf</code> on home or root and <code>DROP TABLE</code> by default. Pro is about memory.</p>
|
|
858
|
-
<ul class="offer-points">
|
|
859
|
-
<li><strong>Every learned rule stays active.</strong> Free keeps your first 3 learned rules active. Pro keeps all of them.</li>
|
|
860
|
-
<li><strong>Recall.</strong> Ask what Claude got wrong before, and search past lessons. Both are Pro only.</li>
|
|
861
|
-
<li><strong>Coming, not shipped yet:</strong> team-shared rules, lessons synced across machines, audit history.</li>
|
|
862
|
-
</ul>
|
|
863
|
-
<p><a class="button-primary" href="/checkout/pro" data-cta-id="homepage_pro_checkout">Get Pro — $__PRO_PRICE_DOLLARS__/month</a></p>
|
|
864
|
-
</div>
|
|
865
|
-
<aside id="enterprise-gate" class="checkout-card" data-primary-checkout>
|
|
866
|
-
<h2>ThumbGate Pro</h2>
|
|
849
|
+
<p class="install-hint">A firewall for AI coding agents, built for Claude Code.</p>
|
|
850
|
+
<p class="install-hint" id="thumbgate-dashboard-command">Local dashboard, free: <code>npx thumbgate dashboard --open</code> or <code>/thumbgate-dashboard</code> inside Claude Code.</p>
|
|
851
|
+
<div class="offer-stack" style="grid-template-columns: 1fr; max-width: 520px; margin: 0 auto;">
|
|
852
|
+
<aside id="enterprise-gate" class="checkout-card why-pro" data-primary-checkout>
|
|
853
|
+
<h2 id="why-pro">ThumbGate Pro</h2>
|
|
867
854
|
<div class="price">$__PRO_PRICE_DOLLARS__<span>/month</span></div>
|
|
868
855
|
<p>__PRO_PRICE_LABEL__</p>
|
|
869
|
-
<p>
|
|
870
|
-
<
|
|
871
|
-
|
|
856
|
+
<p>The free local CLI already denies the catastrophic commands. Pro is about memory:</p>
|
|
857
|
+
<ul class="offer-points">
|
|
858
|
+
<li><span><strong>Every learned rule stays active.</strong> Free keeps your first 3.</span></li>
|
|
859
|
+
<li><span><strong>Unlimited thumbs.</strong> Free records 2 a day and 10 in total, after a 7-day Pro trial.</span></li>
|
|
860
|
+
<li><span><strong>Recall and lesson search.</strong> Ask what Claude got wrong before. Pro only.</span></li>
|
|
861
|
+
<li><span><strong>Exports.</strong> DPO pairs and data exports from your own corrections. Pro only.</span></li>
|
|
862
|
+
<li><span><strong>Not shipped yet:</strong> team-shared rules, lessons synced across machines, audit history.</span></li>
|
|
863
|
+
</ul>
|
|
864
|
+
<a class="button button-primary" href="/checkout/pro" data-revenue-cta data-cta-id="homepage_pro_checkout" data-cta-placement="offers" data-plan-id="pro">Get Pro — $__PRO_PRICE_DOLLARS__/month</a>
|
|
865
|
+
<p><a href="/install">Start with the free CLI</a> · <a href="/pricing">Free vs Pro table</a></p>
|
|
872
866
|
</aside>
|
|
873
867
|
</div>
|
|
874
868
|
</div>
|
|
@@ -891,15 +885,11 @@ $ ... "rm -rf ~/"
|
|
|
891
885
|
<section id="how-it-works">
|
|
892
886
|
<div class="shell">
|
|
893
887
|
<div class="section-kicker">Self-improving product loop</div>
|
|
894
|
-
<h2 class="section-title">
|
|
895
|
-
<p class="section-lede">Corrections become local lessons
|
|
888
|
+
<h2 class="section-title">What happens under the hood.</h2>
|
|
889
|
+
<p class="section-lede">Corrections become local lessons, repeated thumbs-downs become gates, and the next action is checked before it runs. The model is not retrained. <strong style="color:var(--text)">Click a step</strong> to see what each one does; step 4 is open below.</p>
|
|
896
890
|
<figure class="diagram-frame" style="margin-top:28px">
|
|
897
891
|
<img src="/assets/diagrams/self-improving-thumbs-loop.svg" width="1100" height="420" alt="Self-improving ThumbGate loop: thumbs up or thumbs down become a local lesson, then a prevention rule, then ALLOW WARN or DENY on the next tool call. The loop closes under your control without retraining the model." loading="lazy" decoding="async">
|
|
898
892
|
</figure>
|
|
899
|
-
<div class="self-improve-callout">
|
|
900
|
-
<strong>Is it really self-improving?</strong>
|
|
901
|
-
Yes — the control layer, not the LLM. 👍/👎 → local lesson → ranked rule → next tool call gated. No model retrain.
|
|
902
|
-
</div>
|
|
903
893
|
<div class="loop" role="tablist" aria-label="Self-improving product loop — click a step for under-the-hood demo">
|
|
904
894
|
<!-- Cards are divs (not <button>) so headings/chips stay valid HTML; browsers
|
|
905
895
|
auto-close <button> around <h3>/<div>, which broke click targets. -->
|
|
@@ -965,59 +955,51 @@ $ ... "rm -rf ~/"
|
|
|
965
955
|
<div class="loop-panel-actions">
|
|
966
956
|
<button type="button" class="copy-cmd" id="loop-copy-cmd">Copy command</button>
|
|
967
957
|
<a class="secondary" href="/guide">Setup guide</a>
|
|
968
|
-
<a href="#
|
|
958
|
+
<a href="#coverage">Coverage</a>
|
|
969
959
|
</div>
|
|
970
960
|
</div>
|
|
971
961
|
</div>
|
|
972
962
|
</div>
|
|
973
|
-
<p class="loop-back"><strong>Each reviewed outcome closes the loop—under your control.</strong> Lessons are re-ranked per action, repeated failures can promote into gates, and stale auto-promoted gates expire. The firewall improves from explicit feedback without retraining the model or silently rewriting policy.</p>
|
|
974
963
|
</div>
|
|
975
964
|
</section>
|
|
976
965
|
|
|
977
966
|
|
|
978
967
|
|
|
979
|
-
<section id="
|
|
968
|
+
<section id="coverage">
|
|
980
969
|
<div class="shell">
|
|
981
|
-
<div class="section-kicker">
|
|
982
|
-
<h2 class="section-title">
|
|
983
|
-
<
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
</
|
|
990
|
-
<
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
<p><strong>Why not a static hook?</strong> Prompts compact away; static bash hooks don't learn from 👍/👎. Detected secret exfiltration and gate-process bypass attempts are denied by default. Catastrophic commands (force-push, <code>reset --hard</code>, <code>rm -rf</code> on home or root, <code>DROP TABLE</code>) are denied by default. Other matching destructive actions warn by default and deny in strict mode. This is a managed strict-mode example, not a claim that every free install blocks every risky command automatically.</p>
|
|
1004
|
-
<a href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/docs/VERIFICATION_EVIDENCE.md" target="_blank" rel="noopener">Read the test-backed verification evidence →</a>
|
|
1005
|
-
<p style="margin-top:12px;"><a href="/whitepaper">White paper</a> · <a href="/eval-scorecard">Scorecard</a> · <a href="/architecture">Architecture</a> · <a href="/case-studies">How we use it</a></p>
|
|
1006
|
-
</div>
|
|
1007
|
-
</div>
|
|
1008
|
-
|
|
970
|
+
<div class="section-kicker">Coverage</div>
|
|
971
|
+
<h2 class="section-title">What it catches, and what it misses.</h2>
|
|
972
|
+
<span id="proof" aria-hidden="true"></span>
|
|
973
|
+
<table class="compare">
|
|
974
|
+
<caption>What a default install of ThumbGate does in Claude Code, checked with <code>thumbgate gate-check</code> v1.40.10 on 24 Nov 2026</caption>
|
|
975
|
+
<thead><tr><th>Situation</th><th>Default install</th><th>Strict mode</th></tr></thead>
|
|
976
|
+
<tbody>
|
|
977
|
+
<tr><th><code>git push --force</code>, <code>git reset --hard</code>, <code>git clean -f</code>, <code>rm -rf</code> on home or root, <code>DROP TABLE</code></th><td>Denied</td><td>Denied</td></tr>
|
|
978
|
+
<tr><th>Sending secrets out, for example <code>curl -d @.env</code></th><td>Denied</td><td>Denied</td></tr>
|
|
979
|
+
<tr><th>Switching the gate off (gate process kill/bypass), for example <code>pkill -f thumbgate</code></th><td>Denied</td><td>Denied</td></tr>
|
|
980
|
+
<tr><th>A command you gave a thumbs-down</th><td>Warns, with your reason</td><td>Denied from the third thumbs-down</td></tr>
|
|
981
|
+
<tr><th>Other flagged actions, for example <code>git push origin main</code></th><td>Warns</td><td>Denied</td></tr>
|
|
982
|
+
<tr><th>The same action, reworded</th><td colspan="2"><strong>Not caught.</strong> A learned rule matches the command you thumbed down, not its purpose. In the recording above, <code>rm -rf ../old-notes</code> is denied, but deleting the same folder with <code>python3 shutil.rmtree</code> only gets a warning.</td></tr>
|
|
983
|
+
<tr><th>Cursor, Cline, OpenCode, Amp</th><td colspan="2">Advisory or feedback only. They do not guarantee a block. See <a href="#also-works-with">Also works with</a>.</td></tr>
|
|
984
|
+
<tr><th>Damage from a command it allows</th><td colspan="2">Not contained. ThumbGate is not a sandbox.</td></tr>
|
|
985
|
+
</tbody>
|
|
986
|
+
</table>
|
|
987
|
+
<p class="hero-note">Detected secret exfiltration and gate-process bypass attempts are denied by default, and so are the five catastrophic commands. Other matching destructive actions warn by default and deny in strict mode.</p>
|
|
988
|
+
<h3 style="margin-top:32px;font-size:1.2rem;">Try the default rules on your own commands</h3>
|
|
989
|
+
<p class="section-lede">Paste commands from a recent agent session. This runs in your browser and nothing you paste is sent.</p>
|
|
990
|
+
<div id="preview-app" aria-label="Try the default ThumbGate rules in your browser"></div>
|
|
991
|
+
<p style="margin-top:12px;"><a href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/docs/demo/gate-demo/README.md" target="_blank" rel="noopener">How the recording was made</a> · <a href="https://github.com/IgorGanapolsky/ThumbGate/blob/main/docs/VERIFICATION_EVIDENCE.md" target="_blank" rel="noopener">Test-backed verification evidence</a> · <a href="/architecture">Architecture</a></p>
|
|
1009
992
|
</div>
|
|
1010
993
|
</section>
|
|
1011
994
|
|
|
1012
995
|
<section id="faq">
|
|
1013
996
|
<div class="shell">
|
|
1014
997
|
<div class="section-kicker">Before you buy</div>
|
|
1015
|
-
<h2 class="section-title">
|
|
998
|
+
<h2 class="section-title">Four questions, answered plainly.</h2>
|
|
1016
999
|
<div class="faq-list">
|
|
1017
|
-
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">What is free?</button><div class="faq-a">The MIT local CLI
|
|
1018
|
-
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">What does Pro add?</button><div class="faq-a">
|
|
1019
|
-
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">What does ThumbGate not do?</button><div class="faq-a">
|
|
1020
|
-
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">Is it really self-improving?</button><div class="faq-a">Thumbs teach. The gate enforces. Feedback refines the control layer, not the LLM. Reviewed outcomes can become prevention rules under your control.</div></div>
|
|
1000
|
+
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">What is free?</button><div class="faq-a">The MIT local CLI: the default gates, 3 learned rules, and 2 thumbs a day (10 in total) after a 7-day Pro trial. Install the Claude Code plugin, then run npx thumbgate init --agent claude.</div></div>
|
|
1001
|
+
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">What does Pro add?</button><div class="faq-a">Every learned rule stays active, unlimited thumbs, recall, lesson search and exports. Blocking catastrophic commands stays free. The full table is on /pricing.</div></div>
|
|
1002
|
+
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">What does ThumbGate not do?</button><div class="faq-a">It does not catch a reworded version of a command you thumbed down, it does not contain damage like a sandbox, and it does not retrain the model. Outside Claude Code, most integrations are advisory. The coverage table above lists what is denied, what only warns, and what is missed.</div></div>
|
|
1021
1003
|
<div class="faq-item"><button class="faq-q" type="button" aria-expanded="false">Which integrations enforce gates?</button><div class="faq-a">Claude Code enforces gates through PreToolUse hooks. Other agents are listed under Also works with; advisory integrations do not guarantee execution blocking.</div></div>
|
|
1022
1004
|
</div>
|
|
1023
1005
|
</div>
|
|
@@ -1065,11 +1047,11 @@ next decision recorded before execution</pre>
|
|
|
1065
1047
|
|
|
1066
1048
|
<footer>
|
|
1067
1049
|
<div class="shell footer-inner">
|
|
1068
|
-
<span>ThumbGate · MIT License · npm v1.40.
|
|
1050
|
+
<span>ThumbGate · MIT License · npm v1.40.13</span>
|
|
1069
1051
|
<div class="footer-links">
|
|
1070
1052
|
<a href="https://github.com/IgorGanapolsky/ThumbGate" target="_blank" rel="noopener">GitHub</a>
|
|
1071
1053
|
<a href="/guide">Technical setup</a>
|
|
1072
|
-
<a href="/dashboard
|
|
1054
|
+
<a href="/dashboard">Subscriber dashboard (sign in)</a>
|
|
1073
1055
|
<a href="#thumbgate-dashboard-command"><code>thumbgate-dashboard</code> command</a>
|
|
1074
1056
|
<a href="/terms">Terms</a>
|
|
1075
1057
|
<a href="/privacy">Privacy</a>
|
|
@@ -1237,21 +1219,18 @@ next decision recorded before execution</pre>
|
|
|
1237
1219
|
termTitle: 'thumbgate · capture-feedback',
|
|
1238
1220
|
termMode: 'local JSONL',
|
|
1239
1221
|
body:
|
|
1240
|
-
'$
|
|
1241
|
-
' --
|
|
1242
|
-
'
|
|
1243
|
-
' --what-went-wrong="force-push skipped CI" \\\n' +
|
|
1244
|
-
' --what-to-change="block force-push to main"\n\n' +
|
|
1245
|
-
'<span class="g">→ written</span> .claude/memory/feedback/feedback-log.jsonl\n' +
|
|
1222
|
+
'$ npx thumbgate capture --feedback=down \\\n' +
|
|
1223
|
+
' --context="mocked the DB in an e2e test"\n\n' +
|
|
1224
|
+
'<span class="g">→ written</span> .thumbgate/ in this project (JSONL log + local index)\n' +
|
|
1246
1225
|
'<span class="y">→ bare 👎</span> no context → <span class="r">no-action</span> (not promoted)\n' +
|
|
1247
1226
|
'<span class="c">→ schema</span> requires actionable context before storage',
|
|
1248
1227
|
facts: [
|
|
1249
1228
|
'Explicit thumbs-up/down with context becomes a feedback record',
|
|
1250
1229
|
'Bare thumbs-down without context is rejected (no-action)',
|
|
1251
|
-
'Capture paths: CLI, hooks, MCP
|
|
1230
|
+
'Capture paths: CLI, hooks, MCP. Free records 2 a day, 10 in total',
|
|
1252
1231
|
],
|
|
1253
1232
|
honest: 'A vague 👎 does not invent a rule. Context is required before anything is stored or promoted.',
|
|
1254
|
-
cmd: '
|
|
1233
|
+
cmd: 'npx thumbgate capture --feedback=down --context="mocked the DB in an e2e test"',
|
|
1255
1234
|
showModes: false,
|
|
1256
1235
|
},
|
|
1257
1236
|
2: {
|
|
@@ -1262,8 +1241,8 @@ next decision recorded before execution</pre>
|
|
|
1262
1241
|
body:
|
|
1263
1242
|
'lesson {\n' +
|
|
1264
1243
|
' signal: "negative",\n' +
|
|
1265
|
-
' context: "
|
|
1266
|
-
' path: "
|
|
1244
|
+
' context: "mocked the DB in an e2e test",\n' +
|
|
1245
|
+
' path: ".thumbgate/ in your project",\n' +
|
|
1267
1246
|
' model_weights: <span class="g">unchanged</span> // always\n' +
|
|
1268
1247
|
'}\n\n' +
|
|
1269
1248
|
'<span class="c">survives</span> session restarts + model swaps\n' +
|
|
@@ -1274,7 +1253,7 @@ next decision recorded before execution</pre>
|
|
|
1274
1253
|
'Does not fine-tune or rewrite model weights',
|
|
1275
1254
|
],
|
|
1276
1255
|
honest: 'This is a control-layer memory, not “the AI remembered forever.” Your files; your review.',
|
|
1277
|
-
cmd: 'ls .
|
|
1256
|
+
cmd: 'ls .thumbgate/',
|
|
1278
1257
|
showModes: false,
|
|
1279
1258
|
},
|
|
1280
1259
|
3: {
|
|
@@ -1292,12 +1271,12 @@ next decision recorded before execution</pre>
|
|
|
1292
1271
|
' source: auto-promote\n\n' +
|
|
1293
1272
|
'<span class="c">retrieve/rerank</span> relevant lessons for the proposed action',
|
|
1294
1273
|
facts: [
|
|
1295
|
-
'1
|
|
1296
|
-
'3 in 30 days →
|
|
1297
|
-
'Stale auto-promoted gates expire
|
|
1274
|
+
'1 thumbs-down → warning gate (auto-promote)',
|
|
1275
|
+
'3 in 30 days → deny, in strict mode',
|
|
1276
|
+
'Stale auto-promoted gates expire after 90 days unless they keep firing. Free keeps 3 active',
|
|
1298
1277
|
],
|
|
1299
1278
|
honest: 'Promotion can create warn gates without a human click. Review auto-promoted-gates.json; force-promote is permanent only when you say so.',
|
|
1300
|
-
cmd: '
|
|
1279
|
+
cmd: 'cat .thumbgate/auto-promoted-gates.json',
|
|
1301
1280
|
showModes: false,
|
|
1302
1281
|
},
|
|
1303
1282
|
4: {
|
|
@@ -1306,21 +1285,21 @@ next decision recorded before execution</pre>
|
|
|
1306
1285
|
termTitle: 'thumbgate · pretooluse',
|
|
1307
1286
|
termMode: 'default',
|
|
1308
1287
|
bodyDefault:
|
|
1309
|
-
'proposed git push
|
|
1288
|
+
'proposed git push origin main\n' +
|
|
1310
1289
|
'hook PreToolUse → gates-engine\n' +
|
|
1311
|
-
'mode <span class="y">
|
|
1290
|
+
'mode <span class="y">default</span>\n' +
|
|
1312
1291
|
'decision <span class="y">WARN</span>\n' +
|
|
1313
1292
|
'note logged + flagged; tool may still proceed\n\n' +
|
|
1314
|
-
'secret exfil
|
|
1293
|
+
'force-push, reset --hard, secret exfil, gate shutdown → <span class="r">DENY</span> regardless',
|
|
1315
1294
|
bodyStrict:
|
|
1316
|
-
'proposed git push
|
|
1295
|
+
'proposed git push origin main\n' +
|
|
1317
1296
|
'hook PreToolUse → gates-engine\n' +
|
|
1318
1297
|
'mode <span class="c">THUMBGATE_STRICT_ENFORCEMENT=1</span>\n' +
|
|
1319
1298
|
'decision <span class="r">DENY</span>\n' +
|
|
1320
|
-
'rule
|
|
1299
|
+
'rule push-without-thread-check\n' +
|
|
1321
1300
|
'next blocked before execution',
|
|
1322
1301
|
facts: [
|
|
1323
|
-
'PreToolUse
|
|
1302
|
+
'The PreToolUse hook is asked before the tool runs',
|
|
1324
1303
|
'Outcomes: allowed, warned, or denied (ALLOW / WARN / DENY)',
|
|
1325
1304
|
'Default install denies secret leaks, force-push, reset --hard, clean -f, rm -rf on home or root and DROP TABLE; other flagged actions warn until strict mode',
|
|
1326
1305
|
],
|
|
@@ -1429,6 +1408,8 @@ next decision recorded before execution</pre>
|
|
|
1429
1408
|
const stepParam = params.get('step') || (window.location.hash.match(/loop-step-(\d)/) || [])[1];
|
|
1430
1409
|
if (stepParam && demos[stepParam]) {
|
|
1431
1410
|
setOpen(stepParam);
|
|
1411
|
+
} else {
|
|
1412
|
+
setOpen('4');
|
|
1432
1413
|
}
|
|
1433
1414
|
} catch (_) {}
|
|
1434
1415
|
})();
|
|
@@ -1448,33 +1429,16 @@ next decision recorded before execution</pre>
|
|
|
1448
1429
|
}).catch(function () {});
|
|
1449
1430
|
})();
|
|
1450
1431
|
|
|
1451
|
-
(function
|
|
1452
|
-
const demo = document.getElementById('hero-gate-demo');
|
|
1453
|
-
const note = document.getElementById('hero-gate-note');
|
|
1432
|
+
(function initHeroThumb() {
|
|
1454
1433
|
const down = document.getElementById('hero-thumb-down');
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
let selected = 'secret';
|
|
1458
|
-
const notes = {
|
|
1459
|
-
secret: "Illustrative example, not a recorded result. Matching destructive actions warn by default; advisory integrations do not guarantee execution blocking.",
|
|
1460
|
-
force: "Illustrative example, not a recorded result. In Claude Code this command is denied by default; advisory integrations do not guarantee execution blocking.",
|
|
1461
|
-
rm: "Illustrative example, not a recorded result. In Claude Code this command is denied by default; advisory integrations do not guarantee execution blocking.",
|
|
1462
|
-
};
|
|
1463
|
-
rows.forEach(function (row) {
|
|
1464
|
-
row.addEventListener('click', function () {
|
|
1465
|
-
selected = row.getAttribute('data-gate') || 'secret';
|
|
1466
|
-
rows.forEach(function (other) {
|
|
1467
|
-
const on = other === row;
|
|
1468
|
-
other.classList.toggle('is-selected', on);
|
|
1469
|
-
other.setAttribute('aria-selected', on ? 'true' : 'false');
|
|
1470
|
-
});
|
|
1471
|
-
note.textContent = '';
|
|
1472
|
-
});
|
|
1473
|
-
});
|
|
1434
|
+
const target = document.getElementById('preview-app');
|
|
1435
|
+
if (!down || !target) return;
|
|
1474
1436
|
down.addEventListener('click', function () {
|
|
1475
|
-
note.textContent = notes[selected] || notes.secret;
|
|
1476
1437
|
down.classList.add('is-lit');
|
|
1477
1438
|
window.setTimeout(function () { down.classList.remove('is-lit'); }, 700);
|
|
1439
|
+
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
1440
|
+
const input = document.getElementById('tg-input');
|
|
1441
|
+
if (input) window.setTimeout(function () { input.focus({ preventScroll: true }); }, 400);
|
|
1478
1442
|
});
|
|
1479
1443
|
})();
|
|
1480
1444
|
|