thumbgate 1.4.0 → 1.4.2

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.
@@ -38,12 +38,36 @@ https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-c
38
38
 
39
39
  That bundle is built from the same `.claude-plugin` metadata in this repo and is meant for people who want a ready-to-install artifact instead of building locally.
40
40
 
41
+ ### Review packet zip
42
+
43
+ Anthropic's submission flow may ask for a GitHub link or a zip that preserves the plugin folder structure. The review-ready source zip lives on GitHub Releases:
44
+
45
+ https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-claude-plugin-review.zip
46
+
41
47
  ### Anthropic directory path
42
48
 
43
49
  If Anthropic approves the listing, install from Claude Desktop via `Settings -> Extensions`.
44
50
 
45
51
  Directory inclusion is an external review process. Do not claim listing or approval before it is real.
46
52
 
53
+ Submission forms:
54
+
55
+ - https://claude.ai/settings/plugins/submit
56
+ - https://platform.claude.com/plugins/submit
57
+
58
+ ### Repo marketplace while review is pending
59
+
60
+ Claude Code users do not need to wait for the official directory. Anthropic's plugin docs allow adding a repository marketplace directly when the repo contains `.claude-plugin/marketplace.json`.
61
+
62
+ Inside Claude Code, run:
63
+
64
+ ```text
65
+ /plugin marketplace add IgorGanapolsky/ThumbGate
66
+ /plugin install thumbgate@thumbgate-marketplace
67
+ ```
68
+
69
+ That uses the marketplace metadata already published in this repository while Anthropic reviews the official directory submission.
70
+
47
71
  ### MCPB bundle build
48
72
 
49
73
  Maintainers can build the local Claude Desktop bundle directly from this repo:
@@ -131,4 +155,5 @@ For complete privacy information, see: https://thumbgate-production.up.railway.a
131
155
 
132
156
  - Local Claude metadata lives in `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`.
133
157
  - The MCPB bundle is built with `npm run build:claude-mcpb`.
158
+ - The review packet zip is built with `npm run build:claude-review-zip`.
134
159
  - Anthropic directory requirements and the internal publish checklist live in `docs/CLAUDE_DESKTOP_EXTENSION.md`.
@@ -13,7 +13,7 @@
13
13
  "source": "npm",
14
14
  "package": "thumbgate"
15
15
  },
16
- "version": "1.3.0",
16
+ "version": "1.4.0",
17
17
  "author": {
18
18
  "name": "Igor Ganapolsky"
19
19
  },
package/README.md CHANGED
@@ -1,164 +1,128 @@
1
1
  # ThumbGate
2
2
 
3
- Make your AI coding agent self-improving — and authentically yours. ThumbGate turns thumbs-up and thumbs-down into a learned control plane for autonomous development: pre-action gates, a trained intervention policy, workflow governance, and isolated execution guidance for high-risk runs. Every gate enforces your team's actual standards, not generic AI patterns.
3
+ **Thumbs up or thumbs down and your AI coding agent never makes the same mistake twice.**
4
4
 
5
5
  [![CI](https://github.com/IgorGanapolsky/ThumbGate/actions/workflows/ci.yml/badge.svg)](https://github.com/IgorGanapolsky/ThumbGate/actions/workflows/ci.yml)
6
6
  [![npm](https://img.shields.io/npm/v/thumbgate)](https://www.npmjs.com/package/thumbgate)
7
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
8
8
  [![Start Sprint](https://img.shields.io/badge/Workflow%20Hardening%20Sprint-Start%20Intake%20→-16a34a?style=for-the-badge)](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=badge_cta#workflow-sprint-intake)
9
9
 
10
- **[Workflow Hardening Sprint](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=top_cta#workflow-sprint-intake)** · **[Live Dashboard](https://thumbgate-production.up.railway.app/dashboard?utm_source=github&utm_medium=readme&utm_campaign=top_cta)** · **[Setup Guide](https://thumbgate-production.up.railway.app/guide?utm_source=github&utm_medium=readme&utm_campaign=top_cta)** · **[Install Codex Plugin](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip)** · **[Pro Page](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=pro_page)**
10
+ **[Workflow Hardening Sprint](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=top_cta#workflow-sprint-intake)** · **[Use in ChatGPT](adapters/chatgpt/INSTALL.md)** · **[Install Claude Desktop Extension](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-claude-desktop.mcpb)** · **[Claude Plugin Guide](docs/CLAUDE_DESKTOP_EXTENSION.md)** · **[Install Codex Plugin](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip)** · **[Live Dashboard](https://thumbgate-production.up.railway.app/dashboard?utm_source=github&utm_medium=readme&utm_campaign=top_cta)** · **[Pro Page](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=pro_page)**
11
11
 
12
- **Popular buyer questions:** **[How to stop repeated AI agent mistakes](https://thumbgate-production.up.railway.app/guides/stop-repeated-ai-agent-mistakes?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)** · **[Cursor guardrails](https://thumbgate-production.up.railway.app/guides/cursor-agent-guardrails?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)** · **[Codex CLI guardrails](https://thumbgate-production.up.railway.app/guides/codex-cli-guardrails?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)** · **[Gemini CLI memory + enforcement](https://thumbgate-production.up.railway.app/guides/gemini-cli-feedback-memory?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)**
12
+ **Popular buyer questions:** **[Stop repeated AI agent mistakes](https://thumbgate-production.up.railway.app/guides/stop-repeated-ai-agent-mistakes?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)** · **[Cursor guardrails](https://thumbgate-production.up.railway.app/guides/cursor-agent-guardrails?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)** · **[Codex CLI guardrails](https://thumbgate-production.up.railway.app/guides/codex-cli-guardrails?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)** · **[Gemini CLI memory + enforcement](https://thumbgate-production.up.railway.app/guides/gemini-cli-feedback-memory?utm_source=github&utm_medium=readme&utm_campaign=buyer_questions)**
13
13
 
14
- **Running Codex?** **[Download the standalone Codex plugin bundle](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip)** · **[Open the Codex install guide](plugins/codex-profile/INSTALL.md)**
14
+ **Running Claude Desktop?** **[Download Claude bundle](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-claude-desktop.mcpb)** · **[Install + submission guide](docs/CLAUDE_DESKTOP_EXTENSION.md)** · **[Review packet zip](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-claude-plugin-review.zip)**
15
15
 
16
- ### Get Started
16
+ **Running Codex?** **[Download the standalone Codex plugin bundle](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip)** · **[Codex install guide](plugins/codex-profile/INSTALL.md)**
17
17
 
18
- **Best first paid motion for teams:** the **Workflow Hardening Sprint**.
18
+ **Running ChatGPT?** Search GPT Store for `ThumbGate` by Igor Ganapolsky. Regular users reply with 👍/👎 or "thumbs up/down" on answers, save the lesson, prevent repeated bad answers, and reinforce the answers that worked. Developers can import the prepared **[GPT Actions OpenAPI spec](adapters/chatgpt/openapi.yaml)** with the **[ChatGPT install guide](adapters/chatgpt/INSTALL.md)**.
19
19
 
20
- [![Start Workflow Hardening Sprint](https://img.shields.io/badge/>>%20Start%20Intake%20→%20Workflow%20Hardening%20Sprint-16a34a?style=for-the-badge)](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=get_started#workflow-sprint-intake)
20
+ **Official directory pending review?** Claude Code users can install today with `/plugin marketplace add IgorGanapolsky/ThumbGate` then `/plugin install thumbgate@thumbgate-marketplace`.
21
21
 
22
- One workflow. One owner. One proof review. That is the fastest path to a paid team engagement because it qualifies a real blocker before anyone tries to sell a full rollout.
22
+ ---
23
23
 
24
- **Best first technical motion:** install the local CLI and let `init` wire the hooks and MCP transport for the agent you already use.
24
+ ## What problem does this solve?
25
25
 
26
- **Best first Codex motion:** install the published Codex plugin bundle if you want ThumbGate to show up as a first-class Codex plugin instead of wiring MCP by hand.
26
+ AI agents repeat mistakes. You fix the same problem in session after session force-push to main, broken migrations, unauthorized file edits because the agent has no memory of your feedback.
27
27
 
28
- - Standalone download: `https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip`
29
- - Install guide: `plugins/codex-profile/INSTALL.md`
28
+ ```
29
+ ┌─────────────────────────────────────────────────────────────┐
30
+ │ THE PROBLEM │
31
+ │ │
32
+ │ Session 1: Agent breaks something. You fix it. │
33
+ │ Session 2: Agent breaks it again. You fix it again. │
34
+ │ Session 3: Same thing. Again. │
35
+ │ │
36
+ │ THE SOLUTION │
37
+ │ │
38
+ │ Session 1: Agent breaks something. You 👎 it. │
39
+ │ Session 2: ⛔ Gate blocks the mistake before it happens. │
40
+ │ Session 3+: Never see it again. │
41
+ └─────────────────────────────────────────────────────────────┘
42
+ ```
30
43
 
31
- Free stays for individual developers. The commercial path is enterprise-first: Team pricing anchors at **$99/seat/mo with a 3-seat minimum**, and the public paid motion starts with the Workflow Hardening Sprint so one blocker gets qualified before a wider rollout. [See pricing →](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=pricing_link#pricing)
44
+ ThumbGate is the **control plane** for AI coding agents turning your feedback into **enforced rules**, not suggestions.
32
45
 
33
- **Paid path for individual operators:** [ThumbGate Pro](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=pro_page) remains the self-serve side lane for the personal local dashboard, DPO export, and review-ready evidence. It is useful when one operator wants proof and debugging help without the team rollout motion.
46
+ ---
34
47
 
35
- **Open Source (Self-Hosted):**
48
+ ## How It Works in 3 Steps
36
49
 
37
- ```bash
38
- npx thumbgate init
39
50
  ```
51
+ STEP 1 STEP 2 STEP 3
52
+ ──────── ──────── ────────
40
53
 
41
- ## Enterprise Story
42
-
43
- ThumbGate is the control plane for AI coding agents:
44
-
45
- - Feedback becomes enforcement, so repeated failures stop at the gate instead of reappearing in review.
46
- - Workflow Sentinel scores blast radius before execution, so risky PR, release, and publish flows are visible early.
47
- - High-risk local actions can be routed into Docker Sandboxes, while hosted team automations use a signed isolated sandbox lane.
48
- - Team rollout stays tied to [Verification Evidence](docs/VERIFICATION_EVIDENCE.md) instead of trust-me operator claims.
49
- - AI agent outputs stay grounded in your team's actual standards — not generic patterns — because every gate enforces human judgment before the action executes.
50
-
51
- ## Release Confidence
54
+ You react ThumbGate learns The gate holds
52
55
 
53
- Enterprise buyers do not just need a safer runtime. They need legible publishes.
56
+ 👎 on a bad ──► Feedback becomes ──► Next time the
57
+ agent action a saved lesson agent tries the
58
+ and a block rule same thing:
59
+ 👍 on a good ──► Good pattern gets ⛔ BLOCKED
60
+ agent action reinforced (or ✅ allowed)
61
+ ```
54
62
 
55
- - Release-relevant PRs must carry a `.changeset/*.md` entry, so every shipped package version has a customer-readable explanation before publish.
56
- - [SemVer Policy](docs/SEMVER_POLICY.md) and version-sync checks keep `package.json`, `CHANGELOG.md`, plugin manifests, and installer metadata aligned.
57
- - CI enforces changeset coverage, version sync, tests, coverage, proof lanes, and operational integrity before merge.
58
- - Final close-out requires verifying the exact `main` merge commit, with proof anchored in [Verification Evidence](docs/VERIFICATION_EVIDENCE.md).
63
+ That's it. No manual rule-writing. No config files to maintain. Your reactions teach the agent what your team actually wants.
59
64
 
60
- See [Release Confidence](docs/RELEASE_CONFIDENCE.md) for the full trust chain.
65
+ ---
61
66
 
62
67
  ## Before / After
63
68
 
64
69
  ```
65
- WITHOUT THUMBGATE WITH THUMBGATE
66
-
67
- Session 1: Session 1:
68
- Agent force-pushes to main. Agent force-pushes to main.
69
- You correct it. You 👎 it.
70
-
71
- Session 2: Session 2:
72
- Agent force-pushes again. ⛔ Gate blocks force-push.
73
- It learned nothing. Agent uses safe push instead.
74
-
75
- Session 3: Session 3+:
76
- Same mistake. Again. Permanently fixed.
70
+ WITHOUT THUMBGATEWITH THUMBGATE
71
+ ───────────────────────────────┼───────────────────────────────
72
+ Session 1:Session 1:
73
+ Agent force-pushes to main.Agent force-pushes to main.
74
+ You correct it manually.You 👎 it.
75
+
76
+ Session 2:Session 2:
77
+ Agent force-pushes again.⛔ Gate blocks force-push.
78
+ It learned nothing.Agent uses safe push instead.
79
+
80
+ Session 3:Session 3+:
81
+ Same mistake. Again.Permanently fixed.
82
+ And again. │
77
83
  ```
78
84
 
79
- ## How It Works
85
+ ---
86
+
87
+ ## The Feedback Loop
80
88
 
81
89
  ```
82
- YOU THUMBGATE YOUR AGENT
83
- │ │
84
- 👎 "broke prod"
85
- ├───────────────────────►│
86
- distill + validate
87
- ┌─────────────────┐
88
- lesson + rule
89
- │ │ │ created │ │
90
- │ │ └─────────────────┘ │
91
- │ │ │
92
- │ │ PreToolUse hook fires │
93
- │ │◄───────────────────────────┤ tries same mistake
94
- │ │ ⛔ BLOCKED │
95
- │ ├───────────────────────────►│ forced to try safe path
96
- │ │ │
97
- │ 👍 "good fix" │ │
98
- ├───────────────────────►│ │
99
- │ │ reinforced ✅ │
100
- │ │ │
90
+ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
91
+ │ Capture │───►│ Learn │───►│ Remember │───►│ Rule │───►│ Gate
92
+ │ │ │ │ │ │ │
93
+ │ 👍 / 👎 │ │ Feedback │ │ Stored │ Auto- │ │ Blocks │
94
+ │ becomes │ │ lessons │ │ generated │ bad │
95
+ │ a lesson │ │ & search │ │ from │ │ actions
96
+ │ │ │ │ feedback live
97
+ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
101
98
  ```
102
99
 
103
- ## Use Cases
104
-
105
- - **Stop AI agent force-push to main** — Prevent lost commits with a pre-action gate that blocks `git push --force` on protected branches
106
- - **Prevent repeated database migration failures** — Each mistake becomes a searchable lesson that fires before the next migration attempt
107
- - **Block unauthorized file edits** — Control which files agents can modify with path-based gates
108
- - **Memory across sessions** — Agent remembers feedback from yesterday's mistakes without any manual rule-writing
109
- - **Shared team safety** — One developer's thumbs-down protects the whole team from the same mistake
110
- - **Auto-improving without human feedback** — Self-distillation mode evaluates agent outcomes and generates lessons automatically
111
-
112
- ## FAQ
113
-
114
- **Is ThumbGate a model fine-tuning tool?**
115
- No. ThumbGate doesn't update model weights. It works by capturing feedback into structured lessons, injecting relevant context at runtime, and blocking bad actions via PreToolUse hooks.
116
-
117
- **How is this different from CLAUDE.md or .cursorrules?**
118
- CLAUDE.md files are suggestions that agents can ignore. ThumbGate gates are enforcement — they physically block the action before it executes via PreToolUse hooks. Gates also auto-generate from feedback instead of requiring manual rule-writing.
100
+ ---
119
101
 
120
- **Does it work with my agent?**
121
- Yes. ThumbGate is MCP-compatible and works with Claude Code, Cursor, Codex, Gemini CLI, Amp, OpenCode, and any agent that supports PreToolUse hooks or MCP. Codex now has a standalone plugin bundle at `https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip` in addition to the repo-local profile.
102
+ ## Get Started
122
103
 
123
- **What's the self-distillation mode?**
124
- ThumbGate can auto-evaluate agent action outcomes (test failures, reverted edits, error patterns) and generate prevention rules without any human feedback. Your agent gets smarter every session automatically.
104
+ **Best first paid motion for teams:** the **Workflow Hardening Sprint** — qualify one repeated failure before committing to a full rollout. **[Start intake →](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=team_rollout#workflow-sprint-intake)**
125
105
 
126
- **Is it free?**
127
- Free tier: 3 feedback captures/day, 5 lesson searches/day, 5 built-in gates. Pro is $19/mo or $149/yr for solo operators who need the personal local dashboard and exports. Team rollout starts intake-first at $99/seat/mo with a 3-seat minimum when shared lessons, org visibility, and approval boundaries matter.
106
+ **Best first technical motion:** install the CLI-first and let `init` wire hooks for the agent you already use.
128
107
 
129
- ## The Loop
130
-
131
- ```
132
- ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
133
- │ Capture │────►│ Distill │────►│ Remember │────►│ Rule │────►│ Gate │
134
- │ 👍 / 👎 │ │ history- │ │ SQLite + │ │ auto-gen │ │ PreTool │
135
- │ │ │ aware │ │ FTS5 DB │ │ from │ │ Use hook │
136
- │ │ │ │ │ │ │ failures │ │ enforces │
137
- └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
138
- ```
108
+ **Paid path for individual operators:** [ThumbGate Pro](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=pro_page) is the self-serve side lane for a personal dashboard and export-ready evidence.
139
109
 
140
- ## Quick Start (Self-Hosted)
110
+ ---
141
111
 
142
- ThumbGate is CLI-first. MCP is the compatibility transport, and `npx thumbgate init` wires it for the agent instead of making the transport the product.
112
+ ## Quick Start
143
113
 
144
114
  ```bash
145
- npx thumbgate init # auto-detect agent + wire hooks
146
- npx thumbgate doctor # health check
147
- npx thumbgate lessons # inspect learned lessons
148
- npx thumbgate dashboard # local dashboard
115
+ npx thumbgate init # detects your agent and wires everything up
116
+ npx thumbgate doctor # health check
117
+ npx thumbgate lessons # see what's been learned
118
+ npx thumbgate dashboard # open local dashboard
149
119
  ```
150
120
 
151
- Or wire MCP directly: `claude mcp add thumbgate -- npx -y thumbgate serve`
152
-
153
- Works with **Claude Code, Cursor, Codex, Gemini, Amp, OpenCode**, and any MCP-compatible agent.
154
-
155
- Codex standalone plugin bundle: `https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-codex-plugin.zip`
121
+ Or wire MCP directly: `claude mcp add thumbgate -- npx --yes --package thumbgate thumbgate serve`
156
122
 
157
- Codex install guide: `plugins/codex-profile/INSTALL.md`
123
+ Works with **Claude Code, Cursor, Codex, Gemini CLI, Amp, OpenCode**, and any MCP-compatible agent.
158
124
 
159
- > **Need shared enforcement, auditability, approval boundaries, and rollout proof for a team workflow?** [Start with the Workflow Hardening Sprint →](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=quickstart_cta#workflow-sprint-intake)
160
- >
161
- > **Need a personal dashboard and DPO export for yourself?** [See ThumbGate Pro →](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=quickstart_cta_pro)
125
+ ---
162
126
 
163
127
  ## Install for Your Agent
164
128
 
@@ -166,13 +130,13 @@ Codex install guide: `plugins/codex-profile/INSTALL.md`
166
130
  ```bash
167
131
  npx thumbgate init --agent claude-code
168
132
  ```
169
- Wires PreToolUse hooks automatically. Works immediately.
133
+ Wires hooks automatically. Works immediately.
170
134
 
171
135
  ### Cursor
172
136
  ```bash
173
137
  npx thumbgate init --agent cursor
174
138
  ```
175
- Installs as a Cursor extension with 4 skills: capture-feedback, prevention-rules, search-lessons, recall-context.
139
+ Installs as a Cursor extension with 4 skills: capture feedback, manage rules, search lessons, recall context.
176
140
 
177
141
  ### Codex
178
142
  ```bash
@@ -203,100 +167,163 @@ Add to your `claude_desktop_config.json`:
203
167
  "mcpServers": {
204
168
  "thumbgate": {
205
169
  "command": "npx",
206
- "args": ["--yes", "thumbgate", "serve"]
170
+ "args": ["--yes", "--package", "thumbgate", "thumbgate", "serve"]
207
171
  }
208
172
  }
209
173
  }
210
174
  ```
175
+ Or [download the packaged extension bundle](https://github.com/IgorGanapolsky/ThumbGate/releases/latest/download/thumbgate-claude-desktop.mcpb) and install directly.
211
176
 
212
- ## Built-in Gates
177
+ ---
213
178
 
214
- ```
215
- ┌─────────────────────────────────────────────────────────┐
216
- │ ENFORCEMENT LAYER │
217
- │ │
218
- │ ⛔ force-push → blocks git push --force │
219
- │ ⛔ protected-branch → blocks direct push to main │
220
- │ ⛔ unresolved-threads → blocks push with open reviews │
221
- │ ⛔ package-lock-reset → blocks destructive lock edits │
222
- │ ⛔ env-file-edit → blocks .env secret exposure │
223
- │ │
224
- │ + custom gates in config/gates/custom.json │
225
- └─────────────────────────────────────────────────────────┘
226
- ```
179
+ ## Use Cases
180
+
181
+ - **Stop force-push to main** — A gate blocks `git push --force` on protected branches before it runs
182
+ - **Prevent repeated migration failures** — Each mistake becomes a searchable lesson that fires before the next attempt
183
+ - **Block unauthorized file edits** — Control which files agents can touch with path-based rules
184
+ - **Memory across sessions** The agent remembers your feedback from yesterday without any manual rule-writing
185
+ - **Shared team safety** — One developer's thumbs-down protects the whole team from the same mistake
186
+ - **Auto-improving without feedback** — Self-improvement mode evaluates outcomes and generates rules automatically
187
+
188
+ ---
227
189
 
228
190
  ## Feedback Sessions
229
191
 
192
+ Give the agent more context when a thumbs-down isn't enough:
193
+
230
194
  ```
231
195
  👎 thumbs down
232
196
  └─► open_feedback_session
233
- └─► "you lied about deployment" (append_feedback_context)
234
- └─► "tests were actually failing" (append_feedback_context)
197
+ └─► "you lied about deployment" (append_feedback_context)
198
+ └─► "tests were actually failing" (append_feedback_context)
235
199
  └─► finalize_feedback_session
236
200
  └─► lesson inferred from full conversation
237
201
  ```
238
202
 
239
- History-aware distillation turns vague negative signals into concrete lessons. In the current Claude auto-capture path, ThumbGate can reuse up to 8 prior recorded conversation entries plus the failed tool call, then keep a linked 60-second follow-up session open for later clarification.
203
+ ThumbGate uses up to 8 prior conversation entries to turn vague, history-aware negative signals into specific, actionable lessons. A 60-second follow-up window stays open for additional context via `open_feedback_session` → `append_feedback_context` → `finalize_feedback_session`.
240
204
 
241
205
  Free and self-hosted users can invoke `search_lessons` directly through MCP, and via the CLI with `npx thumbgate lessons`.
242
206
 
243
- ## Buying Paths
207
+ ---
208
+
209
+ ## Built-in Gates
244
210
 
245
211
  ```
246
- ┌──────────────┬──────────────────────────────┬──────────────────────┐
247
- FREE │ TEAM $99/seat/mo (min 3) PRO $19/mo or $149/yr│
248
- ├──────────────┼──────────────────────────────┼──────────────────────┤
249
- Local CLI │ Workflow hardening sprint Personal dashboard │
250
- enforcement Shared hosted lesson DB │ DPO export
251
- 3 captures │ Org dashboard │ Review-ready exports
252
- 5 searches │ Approval + audit proof
253
- Unlimited │ Isolated execution guidance
254
- recall │ │
255
- └──────────────┴──────────────────────────────┴──────────────────────┘
212
+ ┌─────────────────────────────────────────────────────────┐
213
+ ENFORCEMENT LAYER
214
+ │ │
215
+ force-push → blocks git push --force
216
+ protected-branch → blocks direct push to main
217
+ unresolved-threads → blocks push with open reviews
218
+ package-lock-reset → blocks destructive lock edits
219
+ env-file-edit → blocks .env secret exposure
220
+
221
+ │ + custom gates in config/gates/custom.json │
222
+ └─────────────────────────────────────────────────────────┘
256
223
  ```
257
224
 
258
- Free is the CLI-first adoption wedge: 3 daily feedback captures, 5 daily lesson searches, unlimited recall, and gating. History-aware distillation turns vague feedback into concrete lessons, and feedback sessions (`open_feedback_session` → `append_feedback_context` → `finalize_feedback_session`) keep later clarification linked to one record. The current Claude auto-capture path uses up to 8 prior recorded entries for vague thumbs-down signals; the follow-up session stays open for 60 seconds and resets when more context is appended.
225
+ ---
226
+
227
+ ## Pricing
228
+
229
+ ```
230
+ ┌──────────────────┬──────────────────────────────┬──────────────────────┐
231
+ │ FREE │ TEAM $99/seat/mo (min 3) │ PRO $19/mo · $149/yr│
232
+ ├──────────────────┼──────────────────────────────┼──────────────────────┤
233
+ │ Local CLI │ Workflow Hardening Sprint │ Personal dashboard │
234
+ │ Enforced gates │ Shared hosted lesson DB │ Export feedback data │
235
+ │ 3 captures/day │ Org-wide dashboard │ Review-ready exports │
236
+ │ 5 searches/day │ Approval + audit proof │ │
237
+ │ Unlimited recall │ Isolated execution guidance │ │
238
+ └──────────────────┴──────────────────────────────┴──────────────────────┘
239
+ ```
259
240
 
260
- It does not update model weights in frontier LLMs. ThumbGate improves runtime behavior by training a local sidecar intervention policy from feedback, gate audits, and diagnostics, then using that policy to strengthen recall, verification, and enforcement decisions on future runs.
241
+ **[Start Workflow Hardening Sprint](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=top_cta#workflow-sprint-intake)** · **[Live Dashboard](https://thumbgate-production.up.railway.app/dashboard?utm_source=github&utm_medium=readme&utm_campaign=top_cta)** · **[See Pro](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=pro_page)**
261
242
 
262
- The fastest commercial path is not a generic self-serve subscription pitch. It is the Workflow Hardening Sprint: qualify one repeated failure in one valuable workflow, prove the control plane on that surface, then expand into Team seats when shared enforcement matters. Pro stays available as the side lane for a solo operator who needs a personal dashboard and export-ready evidence, but it is not the headline buying motion.
243
+ **Where to start:**
244
+ - **Teams:** Begin with the Workflow Hardening Sprint — qualify one real repeated failure before committing to a full rollout
245
+ - **Solo operators:** ThumbGate Pro adds a personal dashboard and export-ready evidence
246
+ - **Individuals & open source:** Free CLI tier, self-hosted
263
247
 
264
- **[Start Workflow Hardening Sprint](https://thumbgate-production.up.railway.app/?utm_source=github&utm_medium=readme&utm_campaign=team_rollout#workflow-sprint-intake)** | **[Live Dashboard](https://thumbgate-production.up.railway.app/dashboard?utm_source=github&utm_medium=readme&utm_campaign=thumbgate)** | **[See Pro](https://thumbgate-production.up.railway.app/pro?utm_source=github&utm_medium=readme&utm_campaign=thumbgate)**
248
+ ---
265
249
 
266
250
  ## Tech Stack
267
251
 
268
252
  ```
269
- ┌─────────────────────────────────────────────────────────┐
270
- STORAGE INTELLIGENCE ENFORCEMENT
271
-
272
- SQLite + FTS5 MemAlign dual PreToolUse │
273
- LanceDB vectors recall hook engine
274
- JSONL logs Thompson Sampling Gates config
275
- ContextFS Hook wiring
276
- ├───────────────────┼───────────────────┼──────────────────┤
277
- INTERFACES BILLING EXECUTION
278
- │ │ │ │
279
- MCP stdio Stripe Railway
280
- HTTP API Cloudflare
281
- CLI Workers
282
- Node.js >=18 Docker
283
- Sandboxes │
284
- └───────────────────┴───────────────────┴──────────────────┘
253
+ ┌──────────────────────┬──────────────────────┬──────────────────────┐
254
+ STORAGE INTELLIGENCE ENFORCEMENT
255
+
256
+ SQLite + FTS5 MemAlign dual recall PreToolUse hook
257
+ LanceDB vectors Thompson Sampling │ engine
258
+ JSONL logs (adaptive lesson Gates config
259
+ File-based context │ selection) Hook wiring
260
+ │ │ │ │
261
+
262
+ ├──────────────────────┼──────────────────────┼──────────────────────┤
263
+ INTERFACES BILLING EXECUTION
264
+
265
+ MCP stdio Stripe Railway
266
+ HTTP API Cloudflare Workers
267
+ CLI Docker Sandboxes │
268
+ │ Node.js >=18 │ │ │
269
+ └──────────────────────┴──────────────────────┴──────────────────────┘
285
270
  ```
286
271
 
272
+ ---
273
+
274
+ ## FAQ
275
+
276
+ **Is ThumbGate a model fine-tuning tool?**
277
+ No. ThumbGate does not update model weights in frontier LLMs. It captures your feedback, stores lessons, injects context at runtime, and blocks bad actions before they execute.
278
+
279
+ **How is this different from CLAUDE.md or .cursorrules?**
280
+ Those are suggestions the agent can ignore. ThumbGate gates are enforced — they physically block the action before it runs. They also auto-generate from feedback instead of requiring manual writing.
281
+
282
+ **Does it work with my agent?**
283
+ Yes. It's MCP-compatible and works with Claude Code, Claude Desktop, Cursor, Codex, Gemini CLI, Amp, OpenCode, and any agent that supports MCP or pre-action hooks.
284
+
285
+ **What's self-improvement mode?**
286
+ ThumbGate can watch for failure signals (test failures, reverted edits, error patterns) and auto-generate prevention rules — no thumbs-down required. Your agent gets smarter every session.
287
+
288
+ **Is it free?**
289
+ Free tier: **3 daily feedback captures**, **5 daily lesson searches**, unlimited recall, enforced gates. History-aware distillation turns vague feedback into specific lessons. Pro is $19/mo or $149/yr for a personal dashboard and exports. Team rollout starts at $99/seat/mo (3-seat minimum) with shared hosted lesson DB, org dashboard, approval + audit proof, and isolated execution guidance.
290
+
291
+ ---
292
+
293
+ ## Enterprise Story
294
+
295
+ ThumbGate is the control plane for AI coding agents:
296
+
297
+ - Feedback becomes enforcement — repeated failures stop at the gate instead of reappearing in review.
298
+ - **Workflow Sentinel** scores blast radius before execution, so risky PR, release, and publish flows are visible early.
299
+ - High-risk local actions route into **Docker Sandboxes**; hosted team automations use a signed isolated sandbox lane.
300
+ - Team rollout stays tied to [Verification Evidence](docs/VERIFICATION_EVIDENCE.md) instead of trust-me operator claims.
301
+
302
+ ## Release Confidence
303
+
304
+ - Every PR must carry a **Changeset** entry — each shipped version has a customer-readable explanation before publish.
305
+ - Version-sync checks keep `package.json`, `CHANGELOG.md`, plugin manifests, and installer metadata aligned.
306
+ - Final close-out requires verifying the exact `main` merge commit, with proof anchored in [Verification Evidence](docs/VERIFICATION_EVIDENCE.md).
307
+
308
+ See [Release Confidence](docs/RELEASE_CONFIDENCE.md) for the full trust chain.
309
+
310
+ ---
311
+
287
312
  ## Docs
288
313
 
289
314
  - [Commercial Truth](docs/COMMERCIAL_TRUTH.md) — pricing, claims, what we don't say
290
- - [Changeset Strategy](docs/CHANGESET_STRATEGY.md) — how release notes, version bumps, and customer-facing change records are enforced
291
- - [First Dollar Playbook](docs/FIRST_DOLLAR_PLAYBOOK.md) — the operator loop for turning one painful workflow into the next booked pilot
292
- - [Release Confidence](docs/RELEASE_CONFIDENCE.md) — how Changesets, SemVer, sync checks, proof lanes, and exact-merge verification make publishes inspectable
315
+ - [Changeset Strategy](docs/CHANGESET_STRATEGY.md) — how release notes and version bumps are enforced
316
+ - [First Dollar Playbook](docs/FIRST_DOLLAR_PLAYBOOK.md) — turning one painful workflow into the next booked pilot
317
+ - [Release Confidence](docs/RELEASE_CONFIDENCE.md) — how changesets, version checks, and proof lanes make publishes inspectable
293
318
  - [SemVer Policy](docs/SEMVER_POLICY.md) — stable vs prerelease channel rules
294
319
  - [Verification Evidence](docs/VERIFICATION_EVIDENCE.md) — proof artifacts
295
320
  - [WORKFLOW.md](WORKFLOW.md) — agent-run contract (scope, hard stops, proof commands)
296
- - [ready-for-agent issue template](.github/ISSUE_TEMPLATE/ready-for-agent.yml) — intake for agent tasks
321
+ - [Ready-for-agent issue template](.github/ISSUE_TEMPLATE/ready-for-agent.yml) — intake for agent tasks
297
322
 
298
323
  Pro overlay: [`thumbgate-pro`](https://github.com/IgorGanapolsky/thumbgate-pro) — separate repo/package inheriting from this base.
299
324
 
325
+ ---
326
+
300
327
  ## License
301
328
 
302
329
  MIT. See [LICENSE](LICENSE).