@triedotdev/mcp 1.0.82 → 1.0.83

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
@@ -16,9 +16,11 @@
16
16
 
17
17
  Trie exists so you can maintain multiple codebases as one person without losing your mind.
18
18
 
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.
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 Code, CLI, and CI/CD.
20
20
 
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. 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.
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.
22
+
23
+ **Your thinking and planning keep up with code generation. Your decisions persist across tools. Your edge cases don't get forgotten.**
22
24
 
23
25
  ## Quick Start
24
26
 
@@ -65,7 +67,11 @@ trie bad # Pattern is bad
65
67
 
66
68
  Building apps with AI tools like Cursor and Claude Code is incredibly fast - but maintaining them alone is a nightmare. You fix a bug and forget why it happened. The same issues keep coming back. Your codebase grows faster than your memory of it.
67
69
 
68
- Trie solves this by being your persistent memory. It keeps a ledger so it remembers what broke before, learns patterns across your projects, and warns you before you ship risky code. Tools like Cursor Bugbot are great, but just flagging issues isn't going to help you avoid similar patterns in the future. With Trie, you'll find quickly that you end up architecting apps and prompting better.
70
+ **The real challenge isn't generating code—it's maintaining it.** Real software has countless edge cases. Every architectural decision involves tradeoffs. As you switch between Cursor, Claude Code, terminal, and CI/CD, context gets lost. You make a decision in one tool, forget it in another, and repeat the same mistakes.
71
+
72
+ You shipped an MVP. You've got traction. Maybe even paying customers. Now you're in the maintenance phase—where the hard work happens. Where you handle edge cases, make tradeoffs, and keep the system coherent as it grows. Where you need your thinking and planning to keep pace with rapid code generation.
73
+
74
+ Trie remembers your decisions across tools, tracks the tradeoffs you've made, and maintains system coherence as your codebase evolves. It solves this by being your persistent memory. It keeps a ledger so it remembers what broke before, learns patterns across your projects, and warns you before you ship risky code. Tools like Cursor Bugbot are great, but just flagging issues isn't going to help you avoid similar patterns in the future. With Trie, you'll find quickly that you end up architecting apps and prompting better.
69
75
 
70
76
  ## Key Features
71
77
 
@@ -73,11 +79,15 @@ Trie solves this by being your persistent memory. It keeps a ledger so it rememb
73
79
  - **Git-based storage** - Your project's memory travels with your code in `.trie/` folder
74
80
  - **Cross-project learning** - Patterns discovered in one project help prevent bugs in others
75
81
  - **Incident tracking** - Build a searchable history of what went wrong and why
82
+ - **Decision memory** - Remembers architectural choices and tradeoffs across Cursor, Claude Code, CLI, and CI/CD
83
+ - **Context that travels** - Your thinking and planning keep up with code generation across all your tools
76
84
 
77
85
  ### Intelligent Analysis
78
86
  - **26 built-in scouts** - Automated analyzers for security, performance, accessibility, and more
79
87
  - **Custom skills** - Add external analyzers from the community
80
88
  - **Risk scoring** - Intelligent priority ranking based on your actual incident history
89
+ - **Edge case detection** - Identifies recurring issues and patterns you've hit before
90
+ - **System coherence** - Tracks relationships between files, changes, incidents, fixes, and decisions
81
91
 
82
92
  ### Development Integration
83
93
  - **Git hooks** - Automatic checks before commits and pushes
@@ -108,6 +118,7 @@ your-project/
108
118
  │ ├── memory/ # Incident history
109
119
  │ ├── patterns/ # Learned patterns
110
120
  │ ├── context.json # Project knowledge graph
121
+ │ ├── context.db # SQLite graph (decisions, relationships)
111
122
  │ └── config.json # Settings
112
123
  ├── src/
113
124
  └── .git/
@@ -119,6 +130,17 @@ The `.trie/` folder commits with your code, so your project's intelligence is pr
119
130
  - Team members
120
131
  - Different machines
121
132
 
133
+ ### Decision Memory Across Tools
134
+
135
+ Trie maintains a **Context Graph** that tracks decisions, tradeoffs, and architectural choices:
136
+
137
+ - **Decision nodes** store why you made certain choices and what tradeoffs were considered
138
+ - **Cross-tool access** - Cursor, Claude Code, CLI, and CI/CD all read from the same `.trie/` folder
139
+ - **Context trail** - Knows which environment ran which analysis and when
140
+ - **Relationship tracking** - Files ↔ Changes ↔ Incidents ↔ Fixes ↔ Decisions
141
+
142
+ 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.
143
+
122
144
  ## Core Workflow
123
145
 
124
146
  ### 1. Teaching Phase
@@ -127,6 +149,7 @@ The `.trie/` folder commits with your code, so your project's intelligence is pr
127
149
  trie tell "Payment processing failed for EU customers"
128
150
 
129
151
  # Trie learns: "payments/" + "EU" + "failed" = high risk pattern
152
+ # Also records: decision context, affected files, tradeoffs made
130
153
  ```
131
154
 
132
155
  ### 2. Prevention Phase
@@ -136,6 +159,7 @@ git add src/payments/eu-handler.js
136
159
  git commit -m "Update EU payment logic"
137
160
 
138
161
  # Trie warns: "This area broke 2 weeks ago with EU payments. Consider extra testing."
162
+ # Context: Remembers the decision you made last time, the edge case that caused the issue
139
163
  ```
140
164
 
141
165
  ### 3. Feedback Loop
@@ -147,8 +171,29 @@ trie ok
147
171
  trie bad
148
172
 
149
173
  # Trie adjusts confidence for similar future warnings
174
+ # Also updates: decision patterns, edge case recognition, tradeoff understanding
175
+ ```
176
+
177
+ ### 4. Maintenance Phase
178
+
179
+ This is where Trie shines. As your app grows and you handle edge cases:
180
+
181
+ ```bash
182
+ # Working in Cursor, you make a decision about error handling
183
+ # Trie records it in the context graph
184
+
185
+ # Switch to Claude Code later
186
+ # Same context graph, same decisions remembered
187
+
188
+ # Push from terminal
189
+ # Git hooks check against your full history of decisions and incidents
190
+
191
+ # CI/CD runs
192
+ # Same checks, same memory, same coherence
150
193
  ```
151
194
 
195
+ **Edge cases, tradeoffs, and system coherence**—Trie handles the hard part that can't be automated by remembering what you decided, why you decided it, and what happened as a result.
196
+
152
197
  ## Advanced Features
153
198
 
154
199
  ### Goals & Hypotheses
package/dist/cli/main.js CHANGED
@@ -2299,7 +2299,7 @@ COMMANDS:
2299
2299
  memory Search and manage issue memory
2300
2300
  status Quick health check (project health + memory stats)
2301
2301
  project View/manage project info (.trie/PROJECT.md)
2302
- agents List all available agents
2302
+ scouts List all available scouts
2303
2303
  setup Configure API key and environment
2304
2304
 
2305
2305
  agent-smith Run Agent Smith (35 vibe code hunters)
@@ -2315,7 +2315,7 @@ EXAMPLES:
2315
2315
  trie watch # Start the guardian (watches + nudges)
2316
2316
  trie watch # Run in background: screen -S trie-watch
2317
2317
  trie scan # Scan your codebase now
2318
- trie scan --agents security,privacy # Scan with specific agents
2318
+ trie scan --scouts security,privacy # Scan with specific scouts
2319
2319
 
2320
2320
  trie tell "users couldn't log in" # Report an incident
2321
2321
  trie ok # Mark current pattern as good
@@ -2338,12 +2338,12 @@ EXAMPLES:
2338
2338
 
2339
2339
  MCP TOOLS (use via Cursor/Claude Desktop):
2340
2340
  trie_linear_sync Sync active tickets from Linear
2341
- trie_scan Intelligent scan with agent selection
2341
+ trie_scan Intelligent scan with scout selection
2342
2342
  trie_fix Generate high-confidence fix prompts
2343
2343
  trie_explain Explain code, issues, or changes
2344
2344
  trie_watch Watch mode for autonomous reporting
2345
2345
 
2346
- Individual Agents:
2346
+ Individual Scouts:
2347
2347
  trie_security Security vulnerabilities
2348
2348
  trie_privacy Privacy & GDPR compliance
2349
2349
  trie_soc2 SOC 2 Type II compliance
@@ -2356,7 +2356,7 @@ MCP TOOLS (use via Cursor/Claude Desktop):
2356
2356
  trie_devops DevOps & deployment
2357
2357
  trie_clean Clean up AI-generated code
2358
2358
 
2359
- Special Agents:
2359
+ Special Scouts:
2360
2360
  trie_agent_smith 35 vibe code hunters, cross-file detection
2361
2361
  trie_super_reviewer Interactive PR review with cross-examination
2362
2362
 
@@ -2414,10 +2414,10 @@ Ask your AI assistant: "Scan this with Trie" or "Use trie_scan"
2414
2414
  function listAgents() {
2415
2415
  console.log(`
2416
2416
  \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
2417
- \u2551 \u{1F4CB} Available Agents \u2551
2417
+ \u2551 \u{1F4CB} Available Scouts \u2551
2418
2418
  \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
2419
2419
 
2420
- BUILT-IN AGENTS:
2420
+ BUILT-IN SCOUTS:
2421
2421
  \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
2422
2422
  security Security vulnerabilities, injection risks, auth issues
2423
2423
  privacy GDPR, HIPAA, PII handling, data encryption
@@ -2685,8 +2685,11 @@ async function main() {
2685
2685
  case "save":
2686
2686
  handleCheckpointCommand(restArgs);
2687
2687
  break;
2688
+ case "scouts":
2688
2689
  case "agents":
2690
+ // Alias for backward compatibility
2689
2691
  case "list":
2692
+ case "list-scouts":
2690
2693
  case "list-agents":
2691
2694
  listAgents();
2692
2695
  break;
@@ -2758,12 +2761,12 @@ async function main() {
2758
2761
  case "agent-smith":
2759
2762
  case "smith":
2760
2763
  case "trie_agent_smith":
2761
- runScan(["--agents", "agent-smith", ...restArgs]);
2764
+ runScan(["--scouts", "agent-smith", ...restArgs]);
2762
2765
  break;
2763
2766
  case "super-reviewer":
2764
2767
  case "reviewer":
2765
2768
  case "trie_super_reviewer":
2766
- runScan(["--agents", "super-reviewer", ...restArgs]);
2769
+ runScan(["--scouts", "super-reviewer", ...restArgs]);
2767
2770
  break;
2768
2771
  case "ci":
2769
2772
  case "ci-setup":