@triedotdev/mcp 1.0.79 → 1.0.81
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 +91 -20
- package/dist/{agent-smith-XGYNJUCJ.js → agent-smith-MCKGNWPL.js} +3 -3
- package/dist/{agent-smith-runner-QHYGVRNR.js → agent-smith-runner-GP5HLL7E.js} +3 -3
- package/dist/{chunk-LNLLZQWH.js → chunk-2BXLPYHR.js} +604 -138
- package/dist/chunk-2BXLPYHR.js.map +1 -0
- package/dist/{chunk-35FAFFHE.js → chunk-75J4HQTD.js} +2 -2
- package/dist/{chunk-RRDDAD5N.js → chunk-7OVM6KEY.js} +34 -7
- package/dist/chunk-7OVM6KEY.js.map +1 -0
- package/dist/chunk-B7CLAOEK.js +532 -0
- package/dist/chunk-B7CLAOEK.js.map +1 -0
- package/dist/{chunk-Z7N7KDK3.js → chunk-DCJKNE2L.js} +2 -1
- package/dist/{chunk-P6VLSYXN.js → chunk-EWIEXQES.js} +2 -2
- package/dist/{chunk-53URTRWH.js → chunk-FW435YKY.js} +300 -440
- package/dist/chunk-FW435YKY.js.map +1 -0
- package/dist/{chunk-UPKBO5EM.js → chunk-MVWRFARH.js} +137 -559
- package/dist/chunk-MVWRFARH.js.map +1 -0
- package/dist/{chunk-EWQF6INU.js → chunk-TBRU735C.js} +2 -2
- package/dist/{chunk-AIC4HOOQ.js → chunk-U5P3O5G5.js} +3 -3
- package/dist/{chunk-6QKDEGWR.js → chunk-WGECLUDQ.js} +4 -4
- package/dist/chunk-WGECLUDQ.js.map +1 -0
- package/dist/{chunk-3RKY55HZ.js → chunk-YKG4KIY7.js} +673 -83
- package/dist/chunk-YKG4KIY7.js.map +1 -0
- package/dist/cli/main.js +296 -64
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +12 -11
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{goal-manager-NI4LJ2SX.js → goal-manager-NHPEUWFY.js} +4 -4
- package/dist/guardian-agent-GWYDNLWC.js +21 -0
- package/dist/index.js +115 -50
- package/dist/index.js.map +1 -1
- package/dist/{issue-store-MULGOF6B.js → issue-store-RKJVOKSJ.js} +2 -2
- package/dist/ui/memory-viewer.html +4 -4
- package/dist/ui/pr-review.html +4 -4
- package/dist/ui/scan-dashboard.html +4 -4
- package/dist/ui/visual-qa.html +4 -4
- package/dist/workers/agent-worker.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-3RKY55HZ.js.map +0 -1
- package/dist/chunk-53URTRWH.js.map +0 -1
- package/dist/chunk-6QKDEGWR.js.map +0 -1
- package/dist/chunk-LNLLZQWH.js.map +0 -1
- package/dist/chunk-RRDDAD5N.js.map +0 -1
- package/dist/chunk-UPKBO5EM.js.map +0 -1
- package/dist/guardian-agent-R5HX7UWJ.js +0 -17
- /package/dist/{agent-smith-XGYNJUCJ.js.map → agent-smith-MCKGNWPL.js.map} +0 -0
- /package/dist/{agent-smith-runner-QHYGVRNR.js.map → agent-smith-runner-GP5HLL7E.js.map} +0 -0
- /package/dist/{chunk-35FAFFHE.js.map → chunk-75J4HQTD.js.map} +0 -0
- /package/dist/{chunk-Z7N7KDK3.js.map → chunk-DCJKNE2L.js.map} +0 -0
- /package/dist/{chunk-P6VLSYXN.js.map → chunk-EWIEXQES.js.map} +0 -0
- /package/dist/{chunk-EWQF6INU.js.map → chunk-TBRU735C.js.map} +0 -0
- /package/dist/{chunk-AIC4HOOQ.js.map → chunk-U5P3O5G5.js.map} +0 -0
- /package/dist/{goal-manager-NI4LJ2SX.js.map → goal-manager-NHPEUWFY.js.map} +0 -0
- /package/dist/{guardian-agent-R5HX7UWJ.js.map → guardian-agent-GWYDNLWC.js.map} +0 -0
- /package/dist/{issue-store-MULGOF6B.js.map → issue-store-RKJVOKSJ.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Trie: Trainable AI Agent for Maintaining AI-
|
|
1
|
+
# Trie: Trainable AI Agent for Maintaining AI-Generated Codebases
|
|
2
2
|
|
|
3
3
|
**A trainable AI agent that watches all of your codebases, learns from your incidents, and prevents repeat bugs before they ship.**
|
|
4
4
|
|
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
## What Trie Does
|
|
8
8
|
|
|
9
|
-
- **Central skill repository**: One place for all your skills — carry context and rules across Cursor, Claude, VS Code, CLI, and CI/CD
|
|
9
|
+
- **Central skill repository**: One place for all your skills — carry context and rules across Cursor, Claude, VS Code, CLI, and CI/CD. Unlike running skills with Claude Code, Trie will check for anything malicious before you run them.
|
|
10
10
|
- **Sets and tracks goals**: "Reduce login bugs by 50%" then actually measures progress and celebrates wins
|
|
11
11
|
- **Tests your theories**: "Mondays have more bugs" — Trie validates with real data and builds confidence over time
|
|
12
12
|
- **Learns from your incidents**: Train it on your specific patterns, not generic rules that don't fit your prompting
|
|
13
|
+
- **Predicts "Gotchas" proactively**: Ingests Linear tickets and correlates them with past failures to warn you before you even push code
|
|
13
14
|
|
|
14
15
|
## Goal
|
|
15
16
|
|
|
@@ -49,15 +50,15 @@ trie status
|
|
|
49
50
|
When bugs happen, tell Trie about them:
|
|
50
51
|
|
|
51
52
|
```bash
|
|
52
|
-
# Report
|
|
53
|
-
trie tell "Users can't log in after
|
|
53
|
+
# Report a specific incident
|
|
54
|
+
trie tell "Users can't log in after password reset"
|
|
54
55
|
|
|
55
|
-
#
|
|
56
|
-
trie
|
|
56
|
+
# Train Trie from your history (reverts/bugfixes)
|
|
57
|
+
trie learn
|
|
57
58
|
|
|
58
|
-
# Give feedback on
|
|
59
|
-
trie ok #
|
|
60
|
-
trie bad #
|
|
59
|
+
# Give feedback on patterns (staged files)
|
|
60
|
+
trie ok # Pattern is good
|
|
61
|
+
trie bad # Pattern is bad
|
|
61
62
|
```
|
|
62
63
|
|
|
63
64
|
## Why Trie Exists
|
|
@@ -172,6 +173,23 @@ trie watch
|
|
|
172
173
|
|
|
173
174
|
Interactive panels for goals, memory, scout activity, and more.
|
|
174
175
|
|
|
176
|
+
### JIT Defect Prediction ("Gotchas")
|
|
177
|
+
Trie connects to your issue tracker and project history to predict problems *while you work*:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# 1. Connect Linear
|
|
181
|
+
trie linear auth <your-api-key>
|
|
182
|
+
trie linear sync
|
|
183
|
+
|
|
184
|
+
# 2. Learn from history automatically
|
|
185
|
+
trie learn
|
|
186
|
+
|
|
187
|
+
# 3. Predict for current changes
|
|
188
|
+
trie gotcha
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Trie will warn you if your current task correlates with historical regressions or high-risk signatures.
|
|
192
|
+
|
|
175
193
|
### Integration with AI Coding Tools
|
|
176
194
|
|
|
177
195
|
Trie provides MCP (Model Context Protocol) tools for seamless integration with Claude, Cursor, and other AI assistants:
|
|
@@ -237,17 +255,41 @@ trie init
|
|
|
237
255
|
```
|
|
238
256
|
|
|
239
257
|
### API Key Configuration
|
|
240
|
-
|
|
258
|
+
Trie works best with these keys:
|
|
259
|
+
|
|
260
|
+
1. **ANTHROPIC_API_KEY**: Enables AI-powered analysis and explanations.
|
|
261
|
+
2. **LINEAR_API_KEY**: Enables JIT defect prediction by syncing your active tickets.
|
|
262
|
+
|
|
263
|
+
#### 1. Set via Environment (Recommended for MCP)
|
|
264
|
+
Add these to your `.env` file or shell config:
|
|
241
265
|
|
|
242
266
|
```bash
|
|
243
|
-
|
|
244
|
-
|
|
267
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
268
|
+
export LINEAR_API_KEY=lin_api_...
|
|
269
|
+
```
|
|
245
270
|
|
|
246
|
-
|
|
247
|
-
|
|
271
|
+
#### 2. Set via CLI (Persistent per project)
|
|
272
|
+
```bash
|
|
273
|
+
trie linear auth <your-key>
|
|
248
274
|
```
|
|
249
275
|
|
|
250
|
-
|
|
276
|
+
#### 3. Set in MCP Config (Cursor/Claude Code)
|
|
277
|
+
Add to your MCP server configuration:
|
|
278
|
+
|
|
279
|
+
```json
|
|
280
|
+
{
|
|
281
|
+
"mcpServers": {
|
|
282
|
+
"trie": {
|
|
283
|
+
"command": "npx",
|
|
284
|
+
"args": ["-y", "@triedotdev/mcp"],
|
|
285
|
+
"env": {
|
|
286
|
+
"ANTHROPIC_API_KEY": "your-key",
|
|
287
|
+
"LINEAR_API_KEY": "your-key"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
```
|
|
251
293
|
|
|
252
294
|
### AI Tool Integration
|
|
253
295
|
|
|
@@ -260,7 +302,8 @@ Add to your MCP settings:
|
|
|
260
302
|
"command": "trie",
|
|
261
303
|
"args": ["mcp"],
|
|
262
304
|
"env": {
|
|
263
|
-
"ANTHROPIC_API_KEY": "your-api-key-here"
|
|
305
|
+
"ANTHROPIC_API_KEY": "your-api-key-here",
|
|
306
|
+
"LINEAR_API_KEY": "your-key"
|
|
264
307
|
}
|
|
265
308
|
}
|
|
266
309
|
}
|
|
@@ -279,8 +322,8 @@ Cursor has built-in MCP support. Add the above configuration to your Cursor MCP
|
|
|
279
322
|
trie init # Set up Trie in your project
|
|
280
323
|
trie scan # Analyze codebase with intelligent skill selection
|
|
281
324
|
trie status # View project health and memory stats
|
|
282
|
-
trie
|
|
283
|
-
trie
|
|
325
|
+
trie learn # Train Trie from history or feedback
|
|
326
|
+
trie gotcha # Predict problems with current changes
|
|
284
327
|
```
|
|
285
328
|
|
|
286
329
|
### Memory Management
|
|
@@ -288,6 +331,7 @@ trie tell "<msg>" # Report an incident to build memory
|
|
|
288
331
|
trie memory search "auth" # Search incident history
|
|
289
332
|
trie memory stats # View memory statistics
|
|
290
333
|
trie memory purge smart # Clean up old/resolved issues
|
|
334
|
+
trie learn # Extract patterns from reverts/fixes
|
|
291
335
|
```
|
|
292
336
|
|
|
293
337
|
### Goals & Learning
|
|
@@ -295,12 +339,14 @@ trie memory purge smart # Clean up old/resolved issues
|
|
|
295
339
|
trie goal add "<goal>" # Set improvement goal
|
|
296
340
|
trie hypothesis add "<theory>" # Test a hypothesis
|
|
297
341
|
trie goal list # View progress
|
|
342
|
+
trie linear sync # Sync Linear tickets for intent context
|
|
298
343
|
```
|
|
299
344
|
|
|
300
345
|
### Feedback & Training
|
|
301
346
|
```bash
|
|
302
|
-
trie ok #
|
|
303
|
-
trie bad #
|
|
347
|
+
trie ok # Pattern is good (alias: learn ok)
|
|
348
|
+
trie bad # Pattern is bad (alias: learn bad)
|
|
349
|
+
trie learn # Learn from your git history
|
|
304
350
|
trie pause # Disable warnings for 1 hour
|
|
305
351
|
```
|
|
306
352
|
|
|
@@ -390,6 +436,8 @@ trie memory purge resolved
|
|
|
390
436
|
trie memory purge old --days=90
|
|
391
437
|
```
|
|
392
438
|
|
|
439
|
+
**What happens at the 10,000 issue cap:** Trie will deduplicate new repeats, compact older issues into summaries, and if it still exceeds the cap it will prune the oldest/lowest-value issues (it does not “overwrite” in place).
|
|
440
|
+
|
|
393
441
|
## Custom Skills
|
|
394
442
|
|
|
395
443
|
### Adding External Skills
|
|
@@ -402,6 +450,29 @@ trie skill install anthropic/typescript-patterns
|
|
|
402
450
|
trie skill install username/repo-name
|
|
403
451
|
```
|
|
404
452
|
|
|
453
|
+
### Security & Safe Installation
|
|
454
|
+
|
|
455
|
+
**Trie automatically scans all skills for security risks before installation.**
|
|
456
|
+
|
|
457
|
+
When installing skills:
|
|
458
|
+
- Skills are scanned for malicious patterns
|
|
459
|
+
- Critical risks flagged with strong warnings
|
|
460
|
+
- High risks flagged with warnings
|
|
461
|
+
- **Shell commands Trie runs are logged** to `.trie/audit/` (e.g. skill install `git clone`, PR review `git/gh`, skill gating `which/where`, file picker helpers)
|
|
462
|
+
|
|
463
|
+
```bash
|
|
464
|
+
# View audit logs
|
|
465
|
+
trie audit logs
|
|
466
|
+
|
|
467
|
+
# View security info for installed skill
|
|
468
|
+
trie skills info skill-name
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
**Best Practices:**
|
|
472
|
+
- Only install from trusted sources (verified organizations)
|
|
473
|
+
- Review security warnings and all .md carefully before using
|
|
474
|
+
- Check audit logs periodically: `trie audit stats` (and investigate anything unexpected with `trie audit skill <name>`)
|
|
475
|
+
|
|
405
476
|
### Creating Your Own Skills
|
|
406
477
|
```bash
|
|
407
478
|
# Create from documentation
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentSmithSkill,
|
|
3
3
|
PATTERN_HUNTER_CONFIGS
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TBRU735C.js";
|
|
5
|
+
import "./chunk-DCJKNE2L.js";
|
|
6
6
|
import "./chunk-CM7EHNQK.js";
|
|
7
7
|
import "./chunk-MIL54SAF.js";
|
|
8
8
|
import "./chunk-DGUM43GV.js";
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
AgentSmithSkill,
|
|
12
12
|
PATTERN_HUNTER_CONFIGS
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=agent-smith-
|
|
14
|
+
//# sourceMappingURL=agent-smith-MCKGNWPL.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentSmithSkill
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TBRU735C.js";
|
|
4
4
|
import {
|
|
5
5
|
getAIStatusMessage,
|
|
6
6
|
isAIAvailable,
|
|
7
7
|
runAIAnalysis
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DCJKNE2L.js";
|
|
9
9
|
import {
|
|
10
10
|
getWorkingDirectory
|
|
11
11
|
} from "./chunk-CM7EHNQK.js";
|
|
@@ -570,4 +570,4 @@ ${getAIStatusMessage()}`);
|
|
|
570
570
|
export {
|
|
571
571
|
runAgentSmith
|
|
572
572
|
};
|
|
573
|
-
//# sourceMappingURL=agent-smith-runner-
|
|
573
|
+
//# sourceMappingURL=agent-smith-runner-GP5HLL7E.js.map
|