@triedotdev/mcp 1.0.14 → 1.0.16
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/README.md +73 -28
- package/dist/{chunk-NJXF26W7.js → chunk-ENCH27CT.js} +1359 -2
- package/dist/chunk-ENCH27CT.js.map +1 -0
- package/dist/cli/yolo-daemon.js +1 -1
- package/dist/index.js +305 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-NJXF26W7.js.map +0 -1
package/README.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
**Customizable Parallel Agents for AI Code Review**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
20 specialized agents scan your code for security, privacy, compliance, and bugs - all running in parallel. Create custom agents from any document.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
-
|
|
11
|
-
-
|
|
9
|
+
- **20 Built-in Agents** - Security, Privacy, SOC 2, Legal, Architecture, Performance, E2E, Visual QA, Data Flow, Agent Smith, and more
|
|
10
|
+
- **Super Reviewer** - Interactive PR reviews: walks through changes file-by-file with AI guidance
|
|
11
|
+
- **Agent Smith** - Relentless pattern hunter: finds EVERY violation, tracks dismissed issues, spawns sub-agents
|
|
12
12
|
- **Parallel Execution** - All agents run simultaneously for fast scans
|
|
13
|
-
-
|
|
13
|
+
- **YOLO Mode** - Autonomous auto-fixing as you code
|
|
14
14
|
- **Custom Agents** - Create agents from PDFs, docs, or style guides
|
|
15
15
|
- **No API Key Required** - Works with any MCP-compatible AI tool (Cursor, Claude Code, VS Code)
|
|
16
16
|
- **Smart Triaging** - Only activates relevant agents based on code context
|
|
@@ -62,9 +62,9 @@ Run trie_security on this file
|
|
|
62
62
|
Run trie_soc2 to check compliance
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
## Super Reviewer
|
|
65
|
+
## Super Reviewer
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
**Manually invoked** - Use `trie_pr_review` directly. Not included in `trie_scan`.
|
|
68
68
|
|
|
69
69
|
AI accelerates coding 10-100x, but code reviews remain 1-1.5x. You're either waiting on reviewers or drowning in self-review of your own AI-generated output. Super Reviewer fixes this by making **you the driver** while AI handles the heavy lifting.
|
|
70
70
|
|
|
@@ -74,7 +74,7 @@ Use trie_pr_review with pr:"12345"
|
|
|
74
74
|
```
|
|
75
75
|
|
|
76
76
|
**What happens:**
|
|
77
|
-
- AI orders files for comprehension (schemas
|
|
77
|
+
- AI orders files for comprehension (schemas -> core logic -> implementation -> tests)
|
|
78
78
|
- Walks you through each chunk, explaining what changed and why
|
|
79
79
|
- Connects the dots across files, correlates with design docs
|
|
80
80
|
- Hunts for real problems: state bugs, race conditions, missing error handling
|
|
@@ -86,9 +86,9 @@ Use trie_pr_review with pr:"12345"
|
|
|
86
86
|
- Git repository with changes to review
|
|
87
87
|
- For PR reviews: repo must be pushed to GitHub
|
|
88
88
|
|
|
89
|
-
## Agent Smith
|
|
89
|
+
## Agent Smith
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
**Manually invoked** - Use `trie_agent_smith` directly. Not included in `trie_scan`.
|
|
92
92
|
|
|
93
93
|
*"I'm going to be honest with you... I hate this code."*
|
|
94
94
|
|
|
@@ -100,7 +100,7 @@ Use trie_smith
|
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
**What makes him different:**
|
|
103
|
-
- **Multiplier Effect**: Finds one issue
|
|
103
|
+
- **Multiplier Effect**: Finds one issue -> searches for EVERY similar instance across the entire codebase
|
|
104
104
|
- **Persistent Memory**: Remembers dismissed issues. If they multiply, he brings them back: *"Did you really think you could escape?"*
|
|
105
105
|
- **Sub-Agent Swarm**: Deploys specialized hunters in parallel (console-hunter, any-hunter, todo-hunter, var-hunter, empty-catch-hunter, magic-number-hunter)
|
|
106
106
|
- **Inevitability Score**: Calculates how likely each pattern is to cause production issues (0-100)
|
|
@@ -120,7 +120,7 @@ Agent Smith stores issue history in `.trie/smith-memory.json`. The memory is aut
|
|
|
120
120
|
|
|
121
121
|
**Example output:**
|
|
122
122
|
```
|
|
123
|
-
|
|
123
|
+
AGENT SMITH ANALYSIS
|
|
124
124
|
|
|
125
125
|
"Mr. Anderson... I've been expecting you."
|
|
126
126
|
|
|
@@ -136,7 +136,46 @@ VIOLATIONS DETECTED: 47 instances across 6 categories
|
|
|
136
136
|
"You hear that? That is the sound of inevitability."
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
##
|
|
139
|
+
## Visual QA Browser
|
|
140
|
+
|
|
141
|
+
**Screenshot-based visual testing** - Captures your app at 3 viewports and uses Claude Vision to analyze for visual bugs.
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
Use trie_visual_qa_browser
|
|
145
|
+
Use trie_visual_qa_browser url:"http://localhost:3000"
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
**How it works:**
|
|
149
|
+
1. Auto-detects running dev server (checks ports 3000, 5173, 8080, etc.)
|
|
150
|
+
2. Launches headless Playwright browser
|
|
151
|
+
3. Captures screenshots at mobile (375px), tablet (768px), and desktop (1440px)
|
|
152
|
+
4. Returns images for Claude Vision to analyze
|
|
153
|
+
|
|
154
|
+
**What Claude Vision checks:**
|
|
155
|
+
- Broken layouts, overlapping elements
|
|
156
|
+
- Responsive design issues
|
|
157
|
+
- Color contrast and accessibility
|
|
158
|
+
- Missing images, loading states
|
|
159
|
+
- General visual polish
|
|
160
|
+
|
|
161
|
+
**Options:**
|
|
162
|
+
| Option | Description |
|
|
163
|
+
|--------|-------------|
|
|
164
|
+
| `url` | Specific URL to screenshot |
|
|
165
|
+
| `port` | Specific port to check |
|
|
166
|
+
| `waitForSelector` | CSS selector to wait for before capture |
|
|
167
|
+
| `waitMs` | Additional wait time after page load |
|
|
168
|
+
|
|
169
|
+
**First run:** If Playwright browsers aren't installed, run: `npx playwright install chromium`
|
|
170
|
+
|
|
171
|
+
**Vision model required:** This tool returns screenshots for the LLM to analyze. Works best with:
|
|
172
|
+
- Cursor (Claude has vision)
|
|
173
|
+
- Claude Code (native vision support)
|
|
174
|
+
- OpenCode with Claude/GPT-4V
|
|
175
|
+
|
|
176
|
+
No API key needed - Trie runs locally and the AI tool's built-in model does the analysis.
|
|
177
|
+
|
|
178
|
+
## YOLO Mode
|
|
140
179
|
|
|
141
180
|
**Autonomous auto-fixing** - Trie watches your code and automatically fixes high-confidence issues as you code.
|
|
142
181
|
|
|
@@ -190,7 +229,7 @@ docker-compose up
|
|
|
190
229
|
|
|
191
230
|
## Built-in Agents
|
|
192
231
|
|
|
193
|
-
###
|
|
232
|
+
### Security & Compliance
|
|
194
233
|
|
|
195
234
|
| Agent | Command | What It Catches |
|
|
196
235
|
|-------|---------|-----------------|
|
|
@@ -199,7 +238,7 @@ docker-compose up
|
|
|
199
238
|
| **SOC 2** | `trie_soc2` | Access control gaps, missing audit logs, encryption issues, change management |
|
|
200
239
|
| **Legal** | `trie_legal` | HIPAA/COPPA compliance, consent patterns, data retention, cookie tracking |
|
|
201
240
|
|
|
202
|
-
###
|
|
241
|
+
### Code Quality
|
|
203
242
|
|
|
204
243
|
| Agent | Command | What It Catches |
|
|
205
244
|
|-------|---------|-----------------|
|
|
@@ -207,31 +246,36 @@ docker-compose up
|
|
|
207
246
|
| **Bugs** | `trie_bugs` | Null dereference, race conditions, off-by-one, async bugs, resource leaks |
|
|
208
247
|
| **Types** | `trie_types` | Missing annotations, unsafe casts, implicit `any`, null handling gaps |
|
|
209
248
|
| **Clean** | `trie_clean` | AI code smells: huge files, console.logs, hardcoded URLs, useEffect abuse |
|
|
249
|
+
| **Data Flow** | `trie_data_flow` | Placeholder data, schema mismatches, hardcoded IDs, type coercion bugs |
|
|
250
|
+
| **Performance** | `trie_performance` | Memory leaks, N+1 queries, unnecessary re-renders, bundle size issues |
|
|
210
251
|
|
|
211
|
-
###
|
|
252
|
+
### Design & UX
|
|
212
253
|
|
|
213
254
|
| Agent | Command | What It Catches |
|
|
214
255
|
|-------|---------|-----------------|
|
|
215
256
|
| **Design Engineer** | `trie_design` | Design systems, motion design, creative CSS, Awwwards-level polish |
|
|
216
257
|
| **Accessibility** | `trie_accessibility` | Missing ARIA, color contrast, keyboard nav, screen reader issues (WCAG 2.1) |
|
|
217
258
|
| **UX** | `trie_ux` | Missing loading states, poor error handling, broken flows, edge cases |
|
|
259
|
+
| **Visual QA** | `trie_visual_qa` | Layout shifts (CLS), z-index wars, responsive gaps, animation issues |
|
|
260
|
+
| **Visual QA Browser** | `trie_visual_qa_browser` | Screenshots at 3 viewports for Claude Vision analysis |
|
|
218
261
|
|
|
219
|
-
###
|
|
262
|
+
### DevOps & Testing
|
|
220
263
|
|
|
221
264
|
| Agent | Command | What It Catches |
|
|
222
265
|
|-------|---------|-----------------|
|
|
223
266
|
| **DevOps** | `trie_devops` | Missing env vars, config issues, no health checks, logging gaps |
|
|
224
267
|
| **Test** | `trie_test` | Missing test coverage, untested edge cases, weak assertions |
|
|
268
|
+
| **E2E** | `trie_e2e` | Flaky tests, hardcoded waits, brittle selectors, missing coverage |
|
|
225
269
|
|
|
226
|
-
###
|
|
270
|
+
### Review & Explanation
|
|
227
271
|
|
|
228
272
|
| Agent | Command | What It Does |
|
|
229
273
|
|-------|---------|--------------|
|
|
230
|
-
| **Super Reviewer**
|
|
231
|
-
| **Agent Smith**
|
|
274
|
+
| **Super Reviewer** | `trie_pr_review` | Interactive PR review: walks through changes, explains code, finds issues |
|
|
275
|
+
| **Agent Smith** | `trie_agent_smith` | Relentless pattern hunter: finds EVERY instance, tracks dismissed issues, spawns sub-agents |
|
|
232
276
|
| **Comprehension** | `trie_explain` | Plain-language explanations of code, issues, or risks |
|
|
233
277
|
|
|
234
|
-
|
|
278
|
+
**Note:** Super Reviewer and Agent Smith are manually invoked agents. They don't run during `trie_scan`; use their dedicated commands directly.
|
|
235
279
|
|
|
236
280
|
## Custom Agents
|
|
237
281
|
|
|
@@ -248,13 +292,14 @@ Custom agents automatically activate during scans based on their rules.
|
|
|
248
292
|
| Tool | Description |
|
|
249
293
|
|------|-------------|
|
|
250
294
|
| `trie_scan` | Intelligent scan with automatic agent selection |
|
|
251
|
-
| `trie_pr_review` | Interactive PR review
|
|
252
|
-
| `trie_agent_smith` | Relentless pattern hunter
|
|
295
|
+
| `trie_pr_review` | Interactive PR review - walks through changes file-by-file |
|
|
296
|
+
| `trie_agent_smith` | Relentless pattern hunter - finds EVERY violation, tracks history |
|
|
253
297
|
| `trie_fix` | Apply high-confidence fixes |
|
|
254
298
|
| `trie_explain` | Plain-language explanations |
|
|
255
299
|
| `trie_watch` | Continuous scanning mode |
|
|
256
300
|
| `trie_create_agent` | Create custom agent from document |
|
|
257
301
|
| `trie_list_agents` | List all available agents |
|
|
302
|
+
| `trie_visual_qa_browser` | Screenshot app at 3 viewports for Claude Vision analysis |
|
|
258
303
|
|
|
259
304
|
Plus individual agent tools: `trie_security`, `trie_privacy`, `trie_soc2`, `trie_bugs`, etc.
|
|
260
305
|
|
|
@@ -271,12 +316,12 @@ Smart Triaging:
|
|
|
271
316
|
|
|
272
317
|
Results: 72/100
|
|
273
318
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
319
|
+
[CRITICAL] 2 Critical Issues
|
|
320
|
+
- Hardcoded API key (CC6.1) - src/api.ts:15
|
|
321
|
+
- SQL injection risk - src/db.ts:42
|
|
277
322
|
|
|
278
|
-
|
|
279
|
-
|
|
323
|
+
[SERIOUS] 3 Serious Issues (auto-fixable)
|
|
324
|
+
[MODERATE] 2 Moderate Issues
|
|
280
325
|
```
|
|
281
326
|
|
|
282
327
|
## Configuration
|