@triedotdev/mcp 1.0.93 → 1.0.97

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.
Files changed (84) hide show
  1. package/README.md +145 -137
  2. package/dist/chunk-APMV77PU.js +313 -0
  3. package/dist/chunk-APMV77PU.js.map +1 -0
  4. package/dist/{chunk-MZI46HQT.js → chunk-B3MNN3XB.js} +13 -18
  5. package/dist/{chunk-MZI46HQT.js.map → chunk-B3MNN3XB.js.map} +1 -1
  6. package/dist/{chunk-5Z7O66DE.js → chunk-F4NJ4CBP.js} +2 -2
  7. package/dist/{chunk-YTJXD664.js → chunk-FNCCZ3XB.js} +1222 -75
  8. package/dist/chunk-FNCCZ3XB.js.map +1 -0
  9. package/dist/chunk-G76DYVGX.js +136 -0
  10. package/dist/chunk-G76DYVGX.js.map +1 -0
  11. package/dist/chunk-HSNE46VE.js +956 -0
  12. package/dist/chunk-HSNE46VE.js.map +1 -0
  13. package/dist/{chunk-LVVG2DMW.js → chunk-IXO4G4D3.js} +2 -2
  14. package/dist/{chunk-LP4MVJDW.js → chunk-JDHR5BDR.js} +2 -3
  15. package/dist/chunk-NIASHOAB.js +1304 -0
  16. package/dist/chunk-NIASHOAB.js.map +1 -0
  17. package/dist/{chunk-NMGINYYX.js → chunk-OVRG5RP3.js} +6 -7
  18. package/dist/chunk-OVRG5RP3.js.map +1 -0
  19. package/dist/{chunk-T5UOH56R.js → chunk-R3I2GCZC.js} +3 -3
  20. package/dist/{chunk-RDOJCRKJ.js → chunk-R4AAPFXC.js} +2 -2
  21. package/dist/{chunk-R6AUYN3R.js → chunk-SLL2MDJD.js} +786 -4668
  22. package/dist/chunk-SLL2MDJD.js.map +1 -0
  23. package/dist/cli/create-agent.js +931 -7
  24. package/dist/cli/create-agent.js.map +1 -1
  25. package/dist/cli/main.js +151 -383
  26. package/dist/cli/main.js.map +1 -1
  27. package/dist/cli/yolo-daemon.js +13 -20
  28. package/dist/cli/yolo-daemon.js.map +1 -1
  29. package/dist/{goal-manager-ESJCJXFS.js → goal-manager-LAOT4QQX.js} +6 -6
  30. package/dist/guardian-agent-M352CBE5.js +19 -0
  31. package/dist/index.js +1025 -1550
  32. package/dist/index.js.map +1 -1
  33. package/dist/{issue-store-JZ2LCQEG.js → issue-store-W2X33X2X.js} +4 -4
  34. package/dist/{progress-PH6NNWZM.js → progress-PQVEM7BR.js} +2 -2
  35. package/dist/{vibe-code-signatures-K4UIWKJZ.js → vibe-code-signatures-ELEWJFGZ.js} +3 -3
  36. package/dist/{vulnerability-signatures-ZKVLMBRG.js → vulnerability-signatures-EIJQX2TS.js} +3 -3
  37. package/dist/workers/agent-worker.js +2 -11
  38. package/dist/workers/agent-worker.js.map +1 -1
  39. package/package.json +2 -2
  40. package/dist/agent-smith-QYDXPFPJ.js +0 -14
  41. package/dist/agent-smith-runner-GXGDJTSR.js +0 -573
  42. package/dist/agent-smith-runner-GXGDJTSR.js.map +0 -1
  43. package/dist/cache-manager-7SKX3IGO.js +0 -10
  44. package/dist/chunk-74NPKTZV.js +0 -141
  45. package/dist/chunk-74NPKTZV.js.map +0 -1
  46. package/dist/chunk-BG2BHWCC.js +0 -10879
  47. package/dist/chunk-BG2BHWCC.js.map +0 -1
  48. package/dist/chunk-CUXXRM3T.js +0 -2124
  49. package/dist/chunk-CUXXRM3T.js.map +0 -1
  50. package/dist/chunk-D25EIBPO.js +0 -183
  51. package/dist/chunk-D25EIBPO.js.map +0 -1
  52. package/dist/chunk-F55XBLIA.js +0 -536
  53. package/dist/chunk-F55XBLIA.js.map +0 -1
  54. package/dist/chunk-HFQ5ORON.js +0 -279
  55. package/dist/chunk-HFQ5ORON.js.map +0 -1
  56. package/dist/chunk-IOUOVBJZ.js +0 -175
  57. package/dist/chunk-IOUOVBJZ.js.map +0 -1
  58. package/dist/chunk-KWDNYWOR.js +0 -2270
  59. package/dist/chunk-KWDNYWOR.js.map +0 -1
  60. package/dist/chunk-LT7MKIXU.js +0 -266
  61. package/dist/chunk-LT7MKIXU.js.map +0 -1
  62. package/dist/chunk-MURGTWG4.js +0 -279
  63. package/dist/chunk-MURGTWG4.js.map +0 -1
  64. package/dist/chunk-NMGINYYX.js.map +0 -1
  65. package/dist/chunk-R6AUYN3R.js.map +0 -1
  66. package/dist/chunk-SJFJ6GLR.js +0 -955
  67. package/dist/chunk-SJFJ6GLR.js.map +0 -1
  68. package/dist/chunk-YTJXD664.js.map +0 -1
  69. package/dist/git-PZV3BBYI.js +0 -29
  70. package/dist/guardian-agent-ZHJXLBOU.js +0 -21
  71. package/dist/progress-PH6NNWZM.js.map +0 -1
  72. package/dist/vibe-code-signatures-K4UIWKJZ.js.map +0 -1
  73. package/dist/vulnerability-signatures-ZKVLMBRG.js.map +0 -1
  74. /package/dist/{chunk-5Z7O66DE.js.map → chunk-F4NJ4CBP.js.map} +0 -0
  75. /package/dist/{chunk-LVVG2DMW.js.map → chunk-IXO4G4D3.js.map} +0 -0
  76. /package/dist/{chunk-LP4MVJDW.js.map → chunk-JDHR5BDR.js.map} +0 -0
  77. /package/dist/{chunk-T5UOH56R.js.map → chunk-R3I2GCZC.js.map} +0 -0
  78. /package/dist/{chunk-RDOJCRKJ.js.map → chunk-R4AAPFXC.js.map} +0 -0
  79. /package/dist/{agent-smith-QYDXPFPJ.js.map → goal-manager-LAOT4QQX.js.map} +0 -0
  80. /package/dist/{cache-manager-7SKX3IGO.js.map → guardian-agent-M352CBE5.js.map} +0 -0
  81. /package/dist/{git-PZV3BBYI.js.map → issue-store-W2X33X2X.js.map} +0 -0
  82. /package/dist/{goal-manager-ESJCJXFS.js.map → progress-PQVEM7BR.js.map} +0 -0
  83. /package/dist/{guardian-agent-ZHJXLBOU.js.map → vibe-code-signatures-ELEWJFGZ.js.map} +0 -0
  84. /package/dist/{issue-store-JZ2LCQEG.js.map → vulnerability-signatures-EIJQX2TS.js.map} +0 -0
package/README.md CHANGED
@@ -1,26 +1,41 @@
1
- # Trie: Trainable AI Agent for Maintaining AI-Generated Codebases
1
+ # Trie: Trainable AI Agent for AI-Generated Codebases
2
2
 
3
- **A trainable AI agent that watches all of your codebases, learns from your incidents, and prevents repeat bugs before they ship.**
3
+ **Your autonomous agent that learns from every incident, extracts decisions from every change, and predicts problems before they happen.**
4
4
 
5
5
  [![Download Workspace](https://img.shields.io/badge/Download-Trie%20Workspace-blue)](https://www.trie.dev) [![Follow on X](https://img.shields.io/badge/Follow-@louiskishfy-1DA1F2?logo=x)](https://x.com/louiskishfy)
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. Unlike running skills with Claude Code, Trie will check for anything malicious before you run them.
10
- - **Sets and tracks goals**: "Reduce login bugs by 50%" then actually measures progress and celebrates wins
11
- - **Tests your theories**: "Mondays have more bugs" Trie validates with real data and builds confidence over time
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
9
+ Trie is an **autonomous, trainable AI agent** that maintains a decision ledger for your codebase:
10
+
11
+ - **🤖 Autonomous Operation**: Run `trie watch` and the agent monitors your codebase 24/7
12
+ - **🧠 Intelligent Extraction**: Automatically extracts decisions, facts, blockers from every change
13
+ - **📊 Decision Ledger**: Builds institutional knowledge that travels from Cursor CLI CI/CD
14
+ - **🎯 Predictive Intelligence**: `trie gotcha` queries the ledger to predict problems before they happen
15
+ - **📈 Continuous Learning**: Feed it incidents with `trie tell`, teach it patterns with your history
16
+
17
+ The agent learns from every incident, decision, and fix. When you ship, Trie remembers. When something breaks, Trie learns. Over time, your agent gets better at predicting what will go wrong before it does.
14
18
 
15
19
  ## Goal
16
20
 
17
- Trie exists so you can maintain multiple codebases as one person without losing your mind.
21
+ **Trie is your personal AI agent that maintains multiple codebases without losing context.**
22
+
23
+ Every bug you fix teaches the agent a pattern that protects all your projects. Every incident you report becomes institutional knowledge that travels with your code. Every decision you make—and the tradeoffs you considered—gets extracted and stored automatically by the agent.
24
+
25
+ Instead of burning tokens on the same questions across different repos or forgetting why you architected something a certain way six months ago, **your agent remembers for you**. Instead of losing track of edge cases and tradeoffs as you switch between tools, **your agent maintains system coherence**.
26
+
27
+ The result is faster development with fewer production fires, because **your agent gets smarter every time something breaks** instead of starting from zero in every conversation.
18
28
 
19
- Every bug you fix teaches Trie a pattern that protects all your projects. Every incident you report becomes institutional knowledge that travels with your code. Every decision you make—and the tradeoffs you considered—gets remembered across Cursor, Claude, VS Code, CLI, and CI/CD.
29
+ ### How the Agent Works
20
30
 
21
- Instead of burning tokens on the same questions across different repos or forgetting why you architected something a certain way six months ago, Trie remembers for you. Instead of losing track of edge cases and tradeoffs as you switch between tools, Trie maintains system coherence. The result is faster development with fewer production fires, because your personal AI agent gets smarter every time something breaks instead of starting from zero in every conversation.
31
+ 1. **`trie watch`** - Start the agent, it monitors your codebase autonomously
32
+ 2. **Agent Extracts** - Every file change → extract decisions, facts, blockers
33
+ 3. **Agent Stores** - Builds decision ledger with rich metadata and tag expansion
34
+ 4. **`trie gotcha`** - Agent queries ledger to predict problems in your current changes
35
+ 5. **`trie tell`** - Feed agent incidents to improve its predictions
36
+ 6. **Agent Learns** - Gets better at predicting what matters in YOUR codebase
22
37
 
23
- **Your thinking and planning keep up with code generation. Your decisions persist across tools. Your edge cases don't get forgotten.**
38
+ **Your thinking and planning keep up with code generation. Your decisions persist across tools. Your edge cases don't get forgotten. Your agent handles it all.**
24
39
 
25
40
  ## Quick Start
26
41
 
@@ -37,30 +52,49 @@ cd your-project
37
52
  trie init
38
53
  ```
39
54
 
40
- ### 2. Run Your First Scan
55
+ ### 2. Start the Agent
56
+
57
+ The agent runs autonomously, watching your codebase and building the decision ledger:
41
58
 
42
59
  ```bash
43
- # Scan your entire codebase
44
- trie scan
60
+ # Start the autonomous agent
61
+ trie watch
45
62
 
46
- # Quick health check
47
- trie status
63
+ # The agent now:
64
+ # - Watches file changes in real-time
65
+ # - Extracts decisions, facts, blockers from every change
66
+ # - Builds decision ledger automatically
67
+ # - Predicts problems based on historical patterns
48
68
  ```
49
69
 
50
- ### 3. Start Teaching Trie
70
+ ### 3. Teach the Agent
51
71
 
52
- When bugs happen, tell Trie about them:
72
+ When bugs happen, teach the agent:
53
73
 
54
74
  ```bash
55
- # Report a specific incident
56
- trie tell "Users can't log in after password reset"
75
+ # Report a specific incident (agent extracts structured signals)
76
+ trie tell "Users can't log in after password reset - bcrypt config was wrong"
57
77
 
58
- # Train Trie from your history (reverts/bugfixes)
78
+ # Train agent from your git history (reverts/bugfixes)
59
79
  trie learn
60
80
 
61
- # Give feedback on patterns (staged files)
62
- trie ok # Pattern is good
63
- trie bad # Pattern is bad
81
+ # Query what the agent knows
82
+ trie gotcha # Predicts problems in your current changes
83
+ ```
84
+
85
+ ### 4. Let the Agent Work
86
+
87
+ The agent learns continuously:
88
+ - Every commit → Extracts decisions
89
+ - Every incident → Learns patterns
90
+ - Every fix → Updates predictions
91
+ - Every change → Queries ledger for "gotchas"
92
+
93
+ **Set `ANTHROPIC_API_KEY` for full signal extraction** (Claude Haiku for fast, cheap extraction)
94
+
95
+ # Give feedback on predictions
96
+ trie ok # Prediction was helpful
97
+ trie bad # Prediction was wrong
64
98
  ```
65
99
 
66
100
  ## Why Trie Exists
@@ -85,8 +119,6 @@ Trie remembers your decisions across tools, tracks the tradeoffs you've made, an
85
119
 
86
120
  ### Intelligent Analysis
87
121
 
88
- - 26 built-in scouts - Automated analyzers for security, performance, accessibility, and more.
89
- - Custom skills - Add external analyzers from the community.
90
122
  - Risk scoring - Intelligent priority ranking based on your actual incident history.
91
123
  - Edge case detection - Identifies recurring issues and patterns you've hit before.
92
124
  - System coherence - Tracks relationships between files, changes, incidents, fixes, and decisions.
@@ -109,8 +141,8 @@ Trie remembers your decisions across tools, tracks the tradeoffs you've made, an
109
141
 
110
142
  Trie uses a "Guardian Agent" architecture:
111
143
 
112
- - Scouts continuously analyze your code for potential issues.
113
- - Guardian receives scout reports and decides what matters based on your history.
144
+ - Analyzes your code for potential issues based on your incident history.
145
+ - Guardian decides what matters based on your history.
114
146
  - Memory Tree stores incident patterns using a trie data structure for fast lookups.
115
147
  - Learning Loop improves predictions based on your feedback.
116
148
 
@@ -119,10 +151,13 @@ Trie uses a "Guardian Agent" architecture:
119
151
  ```
120
152
  your-project/
121
153
  ├── .trie/
154
+ │ ├── hot/ # In-memory current session
155
+ │ ├── warm/ # Queryable decisions DB
156
+ │ │ └── decisions.db # SQLite database
157
+ │ ├── cold/ # Archived history
122
158
  │ ├── memory/ # Incident history
123
159
  │ ├── patterns/ # Learned patterns
124
160
  │ ├── context.json # Project knowledge graph
125
- │ ├── context.db # SQLite graph (decisions, relationships)
126
161
  │ └── config.json # Settings
127
162
  ├── src/
128
163
  └── .git/
@@ -146,6 +181,61 @@ Relationship tracking - Files ↔ Changes ↔ Incidents ↔ Fixes ↔ Decisions
146
181
 
147
182
  When you switch from Cursor to Claude Code to terminal, Trie remembers. Your thinking and planning keep up with code generation because every tool shares the same memory.
148
183
 
184
+ ### Signal Extraction: Context Without Pollution
185
+
186
+ **The Problem**: Agents drown in raw data. Dumping 10,000 lines of logs, 500 Slack messages, and 200 commits into context is expensive and ineffective.
187
+
188
+ **Trie's Solution**: Extract signal, not noise.
189
+
190
+ #### Three-Tier Architecture
191
+
192
+ ```
193
+ HOT (In-Memory)
194
+ └─ Current session data
195
+ └─ Active decisions being worked on
196
+
197
+ WARM (Queryable DB)
198
+ └─ Recent decisions, facts, blockers
199
+ └─ Agents query what they need: "decisions related to auth in last 30 days"
200
+ └─ Fast retrieval, targeted results
201
+
202
+ COLD (Archived)
203
+ └─ Full history, indexed but dormant
204
+ └─ Moves here after 90 days of low access
205
+ ```
206
+
207
+ #### How Extraction Works
208
+
209
+ 1. **Raw Input** → You report an incident or commit code
210
+ 2. **Extraction** → Cheap model (Haiku) pulls out structured signals:
211
+ - **Decisions**: "Chose bcrypt over sha256 for password hashing"
212
+ - **Facts**: "Stripe requires TLS 1.2+ for EU transactions"
213
+ - **Blockers**: "Missing VAT validation blocks EU checkout"
214
+ - **Questions**: "Should we cache session tokens?"
215
+
216
+ 3. **Storage** → Structured data goes to WARM storage with embeddings
217
+ 4. **Query** → Agents ask: `trie_get_decisions(relatedTo: "payments")`
218
+ 5. **Targeted Context** → Agent gets 5 relevant decisions, not 5,000 raw logs
219
+
220
+ #### MCP Query Tools
221
+
222
+ Agents don't get dumps—they **query** for what they need:
223
+
224
+ ```typescript
225
+ // Agent queries decision ledger
226
+ trie_get_decisions({
227
+ relatedTo: "auth/validator.ts",
228
+ since: "30d",
229
+ limit: 5
230
+ })
231
+
232
+ // Returns targeted context:
233
+ // 1. "Always validate email before Stripe checkout" (3 weeks ago)
234
+ // 2. "EU customers need VAT validation" (2 months ago)
235
+ ```
236
+
237
+ **Why this matters**: Context management IS the product. Agents get the right information at the right moment, not everything dumped at once.
238
+
149
239
  ## Core Workflow
150
240
 
151
241
  ### 0. Planning Phase
@@ -242,7 +332,7 @@ Real-time monitoring with visual dashboard:
242
332
  trie watch
243
333
  ```
244
334
 
245
- Interactive panels for goals, memory, scout activity, and more.
335
+ Interactive panels for goals, memory, analysis activity, and more.
246
336
 
247
337
  Running in Background: To keep trie watch running in the background, use screen or tmux:
248
338
 
@@ -284,40 +374,19 @@ Trie will warn you if your current task correlates with historical regressions o
284
374
 
285
375
  Trie provides MCP (Model Context Protocol) tools for seamless integration with Claude, Cursor, and other AI assistants:
286
376
 
287
- trie_scan - Analyze code with AI-friendly output
377
+ **Core Tools:**
378
+ trie_tell - Report incidents and extract structured signals
288
379
  trie_check - Quick risk assessment
289
- trie_tell - Report incidents
290
380
  trie_memory - Search incident history
291
381
  trie_fix - Apply suggested fixes
292
382
 
293
- ## Built-in Scouts
294
-
295
- Trie includes 26 specialized analyzers:
296
-
297
- ### Security & Compliance
298
-
299
- Security Scout - Vulnerabilities, injection risks, secrets
300
- Privacy Scout - PII handling, GDPR/HIPAA compliance
301
- Legal Scout - Regulatory compliance patterns
302
- SOC2 Scout - Access controls, audit trails
303
-
304
- ### Code Quality
305
-
306
- Bug Scout - Common bugs, edge cases, null safety
307
- Architecture Scout - SOLID principles, scalability issues
308
- Types Scout - Type errors, missing annotations
309
- Clean Scout - AI-generated code cleanup
383
+ **Query Tools (NEW - Signal Extraction):**
384
+ trie_get_decisions - Query decisions with filters (tags, time, file)
385
+ trie_get_blockers - Get active blockers only
386
+ trie_get_related_decisions - Find related context
387
+ trie_query_context - Natural language queries across all signal types
310
388
 
311
- ### User Experience
312
-
313
- Accessibility Scout - WCAG compliance, screen readers
314
- UX Scout - User journey analysis, usability issues
315
- Design Scout - Visual consistency, design systems
316
-
317
- ### Operations
318
-
319
- DevOps Scout - Configuration issues, deployment patterns
320
- Performance Scout - Speed bottlenecks, optimization opportunities
389
+ **Why query tools matter**: Instead of dumping everything into context, agents ask for exactly what they need. This prevents context pollution and keeps agents focused on relevant signal.
321
390
 
322
391
  ## Installation & Setup
323
392
 
@@ -419,7 +488,7 @@ Note: VS Code extension is coming soon.
419
488
 
420
489
  ```bash
421
490
  trie init # Set up Trie in your project
422
- trie scan # Analyze codebase with intelligent skill selection
491
+ trie tell # Report incidents (extracts decisions, facts, blockers)
423
492
  trie status # View project health and memory stats
424
493
  trie learn # Train Trie from history or feedback
425
494
  trie gotcha # Predict problems with current changes
@@ -466,6 +535,8 @@ tmux new -s trie-watch && trie watch # Detach: Ctrl+B, D
466
535
 
467
536
  ### Scan Behavior
468
537
 
538
+ > **Note**: Trie no longer uses traditional "scans". Instead, it extracts structured signals from incidents, commits, and conversations. Configuration below is for legacy compatibility.
539
+
469
540
  Create .trie/config.json:
470
541
 
471
542
  ```json
@@ -524,11 +595,11 @@ Trie sends notifications to Slack for team collaboration:
524
595
  ```
525
596
 
526
597
  **What Trie sends to Slack:**
527
- - Scan completion notifications with issue counts
528
- - Critical security alerts (immediate)
598
+ - Decision extractions from incidents
599
+ - Active blockers
600
+ - Risk predictions from gotcha
529
601
  - Daily/weekly team summaries
530
- - Escalation notifications for overdue issues
531
- - Bulk fix notifications
602
+ - Critical decision changes
532
603
 
533
604
  ## CI/CD Integration
534
605
 
@@ -539,9 +610,9 @@ Trie sends notifications to Slack for team collaboration:
539
610
  trie ci github
540
611
 
541
612
  # Creates .github/workflows/trie.yml with:
542
- # - Full codebase scan
613
+ # - Decision ledger queries
543
614
  # - Memory caching for speed
544
- # - SARIF upload for GitHub Security tab
615
+ # - Risk prediction on PRs
545
616
  ```
546
617
 
547
618
  ### Custom CI
@@ -549,7 +620,10 @@ trie ci github
549
620
  ```bash
550
621
  # In your CI pipeline
551
622
  npm install -g trie
552
- trie scan --output=sarif > trie-results.sarif
623
+ # Query decision ledger for risks
624
+ trie gotcha
625
+ # Check memory for related incidents
626
+ trie memory search "deployment"
553
627
  ```
554
628
 
555
629
  ## Memory System
@@ -567,7 +641,6 @@ Performance over time
567
641
  Global patterns stored in ~/.trie/memory/:
568
642
 
569
643
  Patterns that apply across projects
570
- Skill effectiveness data
571
644
  Your personal coding patterns
572
645
 
573
646
  ### Memory Management
@@ -588,82 +661,17 @@ trie memory purge old --days=90
588
661
 
589
662
  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).
590
663
 
591
- ## Custom Skills
592
-
593
- ### Adding External Skills
594
-
595
- ```bash
596
- # From skill repositories
597
- trie skill install vercel/ai-best-practices
598
- trie skill install anthropic/typescript-patterns
599
-
600
- # From any GitHub repo
601
- trie skill install username/repo-name
602
- ```
603
-
604
- ### Security & Safe Installation
605
-
606
- Trie automatically scans all skills for security risks before installation.
607
-
608
- When installing skills:
609
-
610
- Skills are scanned for malicious patterns
611
- Critical risks flagged with strong warnings
612
- High risks flagged with warnings
613
- 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)
614
-
615
- ```bash
616
- # View audit logs
617
- trie audit logs
618
-
619
- # View security info for installed skill
620
- trie skills info skill-name
621
- ```
622
-
623
- Best Practices:
624
-
625
- Only install from trusted sources (verified organizations)
626
- Review security warnings and all .md carefully before using
627
- Check audit logs periodically: trie audit stats (and investigate anything unexpected with trie audit skill <name>)
628
-
629
- ### Creating Your Own Skills
630
-
631
- ```bash
632
- # Create from documentation
633
- trie skill create my-skill --doc=./coding-standards.md
634
-
635
- # This creates a custom analyzer based on your documentation
636
- ```
637
-
638
- ### Skill Format
639
-
640
- Skills are simple markdown files with detection rules:
641
-
642
- ```markdown
643
- # My Custom Skill
644
-
645
- ## Detection Rules
646
- - File patterns: `*.js`, `*.ts`
647
- - Code patterns: `console.log`, `debugger`
648
-
649
- ## Analysis
650
- Look for debugging statements left in production code.
651
-
652
- ## Fix Suggestions
653
- Remove or replace with proper logging.
654
- ```
655
-
656
664
  ## Troubleshooting
657
665
 
658
666
  ### Common Issues
659
667
 
660
- Trie not finding issues: Your codebase might be very clean, or you haven't taught Trie about your specific patterns yet. Try trie tell to report some known issues.
668
+ **Trie not finding issues**: You haven't taught Trie about your specific patterns yet. Use `trie tell` to report incidents and build your decision ledger.
661
669
 
662
- Scans are slow: Reduce concurrency with --max-concurrency=2 or exclude large directories in config.
670
+ **Memory queries returning empty**: The warm storage is empty. Report some incidents with `trie tell` or run `trie learn` to extract from git history.
663
671
 
664
- Too many false positives: Use trie bad to train Trie, and consider adjusting scout sensitivity in config.
672
+ **Query tools not working**: Make sure you've initialized Trie with `trie init` and have ANTHROPIC_API_KEY set for signal extraction.
665
673
 
666
- Hooks not working: Reinstall with trie init. Make sure you have write permissions to .git/hooks/.
674
+ **Hooks not working**: Reinstall with `trie init`. Make sure you have write permissions to .git/hooks/.
667
675
 
668
676
  ### Getting Help
669
677
  - Issues: [Report bugs and request features](https://x.com/louiskishfy)