@triedotdev/mcp 1.0.11 → 1.0.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/README.md CHANGED
@@ -2,12 +2,13 @@
2
2
 
3
3
  **Customizable Parallel Agents for AI Code Review**
4
4
 
5
- 15 specialized agents scan your code for security, privacy, compliance, and bugs—all running in parallel. Create custom agents from any document.
5
+ 17 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
- - **15 Built-in Agents** - Security, Privacy, SOC 2, Legal, Architecture, Design Engineer, and more
9
+ - **17 Built-in Agents** - Security, Privacy, SOC 2, Legal, Architecture, Design Engineer, Agent Smith, and more
10
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
11
12
  - **Parallel Execution** - All agents run simultaneously for fast scans
12
13
  - **🔥 YOLO Mode** - Autonomous auto-fixing as you code
13
14
  - **Custom Agents** - Create agents from PDFs, docs, or style guides
@@ -63,6 +64,8 @@ Run trie_soc2 to check compliance
63
64
 
64
65
  ## Super Reviewer 🔍
65
66
 
67
+ ⭐ **Manually invoked** — Use `trie_pr_review` directly. Not included in `trie_scan`.
68
+
66
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.
67
70
 
68
71
  ```
@@ -83,6 +86,56 @@ Use trie_pr_review with pr:"12345"
83
86
  - Git repository with changes to review
84
87
  - For PR reviews: repo must be pushed to GitHub
85
88
 
89
+ ## Agent Smith 🕴️
90
+
91
+ ⭐ **Manually invoked** — Use `trie_agent_smith` directly. Not included in `trie_scan`.
92
+
93
+ *"I'm going to be honest with you... I hate this code."*
94
+
95
+ Agent Smith is the relentless, self-replicating code enforcer. He hunts down violations with machine precision, remembers issues you dismissed, and spawns sub-agents to overwhelm problems.
96
+
97
+ ```
98
+ Use trie_agent_smith
99
+ Use trie_smith
100
+ ```
101
+
102
+ **What makes him different:**
103
+ - **Multiplier Effect**: Finds one issue → searches for EVERY similar instance across the entire codebase
104
+ - **Persistent Memory**: Remembers dismissed issues. If they multiply, he brings them back: *"Did you really think you could escape?"*
105
+ - **Sub-Agent Swarm**: Deploys specialized hunters in parallel (console-hunter, any-hunter, todo-hunter, var-hunter, empty-catch-hunter, magic-number-hunter)
106
+ - **Inevitability Score**: Calculates how likely each pattern is to cause production issues (0-100)
107
+ - **Philosophical Analysis**: Explains WHY the code is wrong, not just that it's wrong
108
+
109
+ **Memory Management:**
110
+
111
+ Agent Smith stores issue history in `.trie/smith-memory.json`. The memory is automatically optimized:
112
+ - Max 500 tracked issues (oldest pruned first)
113
+ - Old resolved issues auto-pruned after 30 days
114
+ - Locations limited to 5 per issue
115
+
116
+ | Command | Description |
117
+ |---------|-------------|
118
+ | `trie_agent_smith show_stats:true` | Show memory statistics (issue count, file size) |
119
+ | `trie_agent_smith clear_memory:true` | Clear all memory for a fresh start |
120
+
121
+ **Example output:**
122
+ ```
123
+ 🕴️ AGENT SMITH ANALYSIS
124
+
125
+ "Mr. Anderson... I've been expecting you."
126
+
127
+ VIOLATIONS DETECTED: 47 instances across 6 categories
128
+
129
+ ┌─────────────────────────────────────────┐
130
+ │ console-hunter: 23 instances (score: 65)│
131
+ │ any-hunter: 12 instances (score: 72) │
132
+ │ todo-hunter: 8 instances (score: 58) │
133
+ │ empty-catch-hunter: 4 instances (85) ⚠️ │
134
+ └─────────────────────────────────────────┘
135
+
136
+ "You hear that? That is the sound of inevitability."
137
+ ```
138
+
86
139
  ## YOLO Mode 🔥
87
140
 
88
141
  **Autonomous auto-fixing** - Trie watches your code and automatically fixes high-confidence issues as you code.
@@ -174,9 +227,12 @@ docker-compose up
174
227
 
175
228
  | Agent | Command | What It Does |
176
229
  |-------|---------|--------------|
177
- | **Super Reviewer** | `trie_pr_review` | Interactive PR review: walks through changes, explains code, finds issues |
230
+ | **Super Reviewer** | `trie_pr_review` | Interactive PR review: walks through changes, explains code, finds issues |
231
+ | **Agent Smith** ⭐ | `trie_agent_smith` | Relentless pattern hunter: finds EVERY instance, tracks dismissed issues, spawns sub-agents |
178
232
  | **Comprehension** | `trie_explain` | Plain-language explanations of code, issues, or risks |
179
233
 
234
+ > ⭐ **Manually invoked agents** — Super Reviewer and Agent Smith are special-purpose agents designed for explicit invocation. They don't run during `trie_scan`; use their dedicated commands directly.
235
+
180
236
  ## Custom Agents
181
237
 
182
238
  Create specialized agents from any document:
@@ -193,6 +249,7 @@ Custom agents automatically activate during scans based on their rules.
193
249
  |------|-------------|
194
250
  | `trie_scan` | Intelligent scan with automatic agent selection |
195
251
  | `trie_pr_review` | Interactive PR review — walks through changes file-by-file |
252
+ | `trie_agent_smith` | Relentless pattern hunter — finds EVERY violation, tracks history |
196
253
  | `trie_fix` | Apply high-confidence fixes |
197
254
  | `trie_explain` | Plain-language explanations |
198
255
  | `trie_watch` | Continuous scanning mode |
@@ -0,0 +1,10 @@
1
+ import {
2
+ AgentSmithAgent,
3
+ SUB_AGENT_PATTERNS
4
+ } from "./chunk-4OGYWKMD.js";
5
+ import "./chunk-DGUM43GV.js";
6
+ export {
7
+ AgentSmithAgent,
8
+ SUB_AGENT_PATTERNS
9
+ };
10
+ //# sourceMappingURL=agent-smith-LBQ5PNAK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}