@triedotdev/mcp 1.0.138 → 1.0.139
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 +183 -38
- package/dist/{autonomy-config-TZ6HF4FA.js → autonomy-config-ZCOSTMPD.js} +2 -2
- package/dist/{chunk-X3F5QDER.js → chunk-4O2KRHK4.js} +934 -132
- package/dist/chunk-4O2KRHK4.js.map +1 -0
- package/dist/{chunk-J5EMP4XW.js → chunk-5KJ4UJOY.js} +9 -4
- package/dist/chunk-5KJ4UJOY.js.map +1 -0
- package/dist/chunk-62POBLFC.js +1925 -0
- package/dist/chunk-62POBLFC.js.map +1 -0
- package/dist/{chunk-GFFUDJMK.js → chunk-75ADWWUF.js} +13 -13
- package/dist/chunk-75ADWWUF.js.map +1 -0
- package/dist/{chunk-D3AS5LY7.js → chunk-7OJ6JIPL.js} +39 -604
- package/dist/chunk-7OJ6JIPL.js.map +1 -0
- package/dist/{chunk-3RRXWX3V.js → chunk-AF2APASP.js} +38 -4
- package/dist/{chunk-3RRXWX3V.js.map → chunk-AF2APASP.js.map} +1 -1
- package/dist/{chunk-QSWUPSLK.js → chunk-FH335WL5.js} +9 -1
- package/dist/chunk-FH335WL5.js.map +1 -0
- package/dist/{chunk-Y32FM3MR.js → chunk-FPEMP54L.js} +21 -15
- package/dist/chunk-FPEMP54L.js.map +1 -0
- package/dist/{chunk-EDDT4ZIH.js → chunk-GXF6JOCN.js} +21 -323
- package/dist/chunk-GXF6JOCN.js.map +1 -0
- package/dist/chunk-LD7ZEFNY.js +132 -0
- package/dist/chunk-LD7ZEFNY.js.map +1 -0
- package/dist/chunk-NKHO34UZ.js +467 -0
- package/dist/chunk-NKHO34UZ.js.map +1 -0
- package/dist/{chunk-YOKQ25IW.js → chunk-OQ4A3RDY.js} +14 -14
- package/dist/{chunk-6LLH3TBZ.js → chunk-UOSTOLU7.js} +12 -12
- package/dist/{chunk-67GSG2ST.js → chunk-XTTZAQWJ.js} +18 -15
- package/dist/chunk-XTTZAQWJ.js.map +1 -0
- package/dist/{chunk-FOCXXIXY.js → chunk-YEIJW6X6.js} +2 -2
- package/dist/chunk-YOJGSRZK.js +216 -0
- package/dist/chunk-YOJGSRZK.js.map +1 -0
- package/dist/cli/main.js +573 -59
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/yolo-daemon.js +15 -13
- package/dist/cli/yolo-daemon.js.map +1 -1
- package/dist/{client-JTU5TRLB.js → client-INNE2GGZ.js} +2 -2
- package/dist/{codebase-index-FNJ4GCBE.js → codebase-index-5SEOESWM.js} +3 -3
- package/dist/fast-analyzer-AYLZB5TW.js +216 -0
- package/dist/fast-analyzer-AYLZB5TW.js.map +1 -0
- package/dist/github-ingester-J2ZFYXVE.js +11 -0
- package/dist/{goal-manager-6BJQ36AH.js → goal-manager-ZBWKWEML.js} +3 -3
- package/dist/{goal-validator-GISXYANK.js → goal-validator-HNXXUCPW.js} +3 -3
- package/dist/{graph-X2FMRQLG.js → graph-J4OGTYCO.js} +2 -2
- package/dist/{hypothesis-K3KQJOXJ.js → hypothesis-JCUMZKTG.js} +3 -3
- package/dist/index.js +1090 -108
- package/dist/index.js.map +1 -1
- package/dist/{issue-store-BO5OWLJW.js → issue-store-LZWZIGM7.js} +2 -2
- package/dist/linear-ingester-JRDQAIAA.js +11 -0
- package/dist/linear-ingester-JRDQAIAA.js.map +1 -0
- package/dist/{trie-agent-XMSGMD7E.js → trie-agent-M6PHM6UD.js} +10 -10
- package/dist/trie-agent-M6PHM6UD.js.map +1 -0
- package/package.json +15 -8
- package/dist/chunk-67GSG2ST.js.map +0 -1
- package/dist/chunk-D3AS5LY7.js.map +0 -1
- package/dist/chunk-EDDT4ZIH.js.map +0 -1
- package/dist/chunk-GFFUDJMK.js.map +0 -1
- package/dist/chunk-J5EMP4XW.js.map +0 -1
- package/dist/chunk-QSWUPSLK.js.map +0 -1
- package/dist/chunk-X3F5QDER.js.map +0 -1
- package/dist/chunk-Y32FM3MR.js.map +0 -1
- package/dist/chunk-Z2P4WST6.js +0 -883
- package/dist/chunk-Z2P4WST6.js.map +0 -1
- /package/dist/{autonomy-config-TZ6HF4FA.js.map → autonomy-config-ZCOSTMPD.js.map} +0 -0
- /package/dist/{chunk-YOKQ25IW.js.map → chunk-OQ4A3RDY.js.map} +0 -0
- /package/dist/{chunk-6LLH3TBZ.js.map → chunk-UOSTOLU7.js.map} +0 -0
- /package/dist/{chunk-FOCXXIXY.js.map → chunk-YEIJW6X6.js.map} +0 -0
- /package/dist/{client-JTU5TRLB.js.map → client-INNE2GGZ.js.map} +0 -0
- /package/dist/{codebase-index-FNJ4GCBE.js.map → codebase-index-5SEOESWM.js.map} +0 -0
- /package/dist/{goal-manager-6BJQ36AH.js.map → github-ingester-J2ZFYXVE.js.map} +0 -0
- /package/dist/{goal-validator-GISXYANK.js.map → goal-manager-ZBWKWEML.js.map} +0 -0
- /package/dist/{graph-X2FMRQLG.js.map → goal-validator-HNXXUCPW.js.map} +0 -0
- /package/dist/{hypothesis-K3KQJOXJ.js.map → graph-J4OGTYCO.js.map} +0 -0
- /package/dist/{issue-store-BO5OWLJW.js.map → hypothesis-JCUMZKTG.js.map} +0 -0
- /package/dist/{trie-agent-XMSGMD7E.js.map → issue-store-LZWZIGM7.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,30 +1,36 @@
|
|
|
1
|
-
# Trie:
|
|
1
|
+
# Trie: Governance for Teams That Ship with AI
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**The ledger that keeps your work compliant when agents and humans ship together—so you ship the right thing every time.**
|
|
4
4
|
|
|
5
5
|
[](https://www.trie.dev) [](https://x.com/louiskishfy)
|
|
6
6
|
|
|
7
7
|
## What Trie Does
|
|
8
8
|
|
|
9
|
-
Trie
|
|
9
|
+
Trie maintains a **decision ledger** that governs work across agents and humans:
|
|
10
10
|
|
|
11
11
|
- **Autonomous Operation**: Run `trie watch` and the agent monitors your codebase 24/7
|
|
12
12
|
- **Intelligent Extraction**: Automatically extracts decisions, facts, blockers from every change
|
|
13
|
-
- **
|
|
13
|
+
- **Cryptographic governance ledger**: Stores decisions, incidents, and fixes in a tamper-evident chain—the shared memory that travels from Cursor/Claude Code → CLI → CI/CD, solving the context-across-tools problem
|
|
14
14
|
- **Predictive Intelligence**: `trie gotcha` queries the ledger to predict problems before they happen
|
|
15
15
|
- **Continuous Learning**: Feed it incidents with `trie tell`, teach it patterns with your history
|
|
16
16
|
|
|
17
|
-
The
|
|
17
|
+
The ledger learns from every incident, decision, and fix. When you ship, Trie remembers. When something breaks, Trie learns. Over time, everyone on the team—human and agent—gets better at predicting what will go wrong before it does.
|
|
18
|
+
|
|
19
|
+
### The Context-Across-Tools Problem (and How the Ledger Solves It)
|
|
20
|
+
|
|
21
|
+
**The problem**: When work happens across Cursor, Claude Code, VS Code, the terminal, and CI/CD, context fragments. An agent makes a decision in one tool; a human forgets it in another. Each environment has its own memory—or none at all. You burn tokens re-explaining the same constraints, or worse, ship code that violates decisions made elsewhere.
|
|
22
|
+
|
|
23
|
+
**The solution**: Trie stores important information in a **cryptographic governance ledger**—a tamper-evident, append-only chain of blocks. Every decision, incident, fix, and tradeoff gets written to the ledger. Because the ledger lives in your `.trie/` folder and syncs across your team, **every tool reads from the same source of truth**. Cursor, Claude, the CLI, and CI/CD all query the same blocks. No more context loss. No more conflicting memories. The ledger is the shared brain that keeps agents and humans aligned across every tool you use.
|
|
18
24
|
|
|
19
25
|
## Goal
|
|
20
26
|
|
|
21
|
-
**Trie is
|
|
27
|
+
**Trie is the governance layer for teams where agents and humans ship together.**
|
|
22
28
|
|
|
23
|
-
Every bug you fix teaches the
|
|
29
|
+
Every bug you fix teaches the ledger 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. The ledger keeps work compliant so you ship the right thing every time.
|
|
24
30
|
|
|
25
|
-
Instead of burning tokens on the same questions across different repos or forgetting why you architected something a certain way six months ago,
|
|
31
|
+
Instead of burning tokens on the same questions across different repos or forgetting why you architected something a certain way six months ago, the ledger remembers for everyone. Instead of agents and humans stepping on each other's decisions, the ledger maintains system coherence.
|
|
26
32
|
|
|
27
|
-
The result
|
|
33
|
+
The result: faster development with fewer production fires, because the ledger gets smarter every time something breaks—and every agent and human on the team benefits.
|
|
28
34
|
|
|
29
35
|
### How the Agent Works
|
|
30
36
|
|
|
@@ -35,7 +41,7 @@ The result is faster development with fewer production fires, because **your age
|
|
|
35
41
|
5. **`trie tell`** - Feed agent incidents to improve its predictions
|
|
36
42
|
6. **Agent Learns** - Gets better at predicting what matters in YOUR codebase
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
Your decisions persist across tools. Your edge cases don't get forgotten. The ledger keeps agents and humans compliant—so you ship the right thing every time.
|
|
39
45
|
|
|
40
46
|
## Quick Start
|
|
41
47
|
|
|
@@ -70,13 +76,13 @@ trie bad # Prediction was wrong
|
|
|
70
76
|
|
|
71
77
|
## Why Trie Exists
|
|
72
78
|
|
|
73
|
-
|
|
79
|
+
The real challenge isn't generating code—it's governance. When some of your teammates are agents and you're working with multiple humans, context fragments. An agent makes a decision in Cursor, a human forgets it in Claude Code, another agent ships something that breaks what you fixed last week. You're not just maintaining a codebase—you're coordinating a mixed team where work happens across tools, models, and people.
|
|
74
80
|
|
|
75
|
-
The
|
|
81
|
+
The ledger is the answer. Trie keeps a tamper-evident record of decisions, incidents, and tradeoffs so everyone—human and agent—stays compliant with what you've already learned. Ship the right thing every time. That's the competitive advantage. Software margins are compressing; pure application software is becoming a fundamentally different, worse category. The teams that can coordinate agents and humans, that can scale contributors without losing coherence, will win.
|
|
76
82
|
|
|
77
|
-
|
|
83
|
+
Cursor is building toward self-driving codebases—agents that merge PRs, manage rollouts, and monitor production. We're moving from a world where developers use agents to create diffs to one where agents ship tested features end-to-end. The closer we march toward self-driving systems and AGI, the more important governance becomes. That shift requires tooling that coordinates work across many agents and models that learn from past runs. Trie is optimized for coordination and collaboration with both humans and agents. It keeps your work compliant, scales your contributors (human and AI), and turns your decision history into durable institutional knowledge.
|
|
78
84
|
|
|
79
|
-
|
|
85
|
+
Tools like Cursor Bugbot flag issues—but flagging doesn't help you avoid similar patterns in the future. Trie remembers what broke, learns across projects, and warns before you ship risky code. You end up architecting better and prompting better because the ledger enforces coherence.
|
|
80
86
|
|
|
81
87
|
## Key Features
|
|
82
88
|
|
|
@@ -86,7 +92,8 @@ Trie remembers your decisions across tools, tracks the tradeoffs you've made, an
|
|
|
86
92
|
- Cross-project learning - Patterns discovered in one project help prevent bugs in others.
|
|
87
93
|
- Incident tracking - Build a searchable history of what went wrong and why.
|
|
88
94
|
- Decision memory - Remembers architectural choices and tradeoffs across Cursor, Claude, VS Code, CLI, and CI/CD.
|
|
89
|
-
-
|
|
95
|
+
- Cryptographic governance ledger - Chain-of-blocks, append-only, tamper-evident; solves the context-across-tools problem; every tool reads from the same source of truth.
|
|
96
|
+
- Governance that travels - The ledger keeps agents and humans compliant across all your tools.
|
|
90
97
|
|
|
91
98
|
### Intelligent Analysis
|
|
92
99
|
|
|
@@ -126,10 +133,14 @@ your-project/
|
|
|
126
133
|
│ ├── warm/ # Queryable decisions DB
|
|
127
134
|
│ │ └── decisions.db # SQLite database
|
|
128
135
|
│ ├── cold/ # Archived history
|
|
129
|
-
│ ├── memory/ # Incident history
|
|
136
|
+
│ ├── memory/ # Incident history + ledger.json (cryptographic ledger)
|
|
130
137
|
│ ├── patterns/ # Learned patterns
|
|
131
138
|
│ ├── context.json # Project knowledge graph
|
|
132
139
|
│ └── config.json # Settings
|
|
140
|
+
├── .trie-shared/ # Shared ledger for team sync (optional)
|
|
141
|
+
│ ├── active/ # Recent blocks
|
|
142
|
+
│ ├── archived/ # Compressed old blocks
|
|
143
|
+
│ └── ledger-manifest.json
|
|
133
144
|
├── src/
|
|
134
145
|
└── .git/
|
|
135
146
|
```
|
|
@@ -143,18 +154,18 @@ Different machines
|
|
|
143
154
|
|
|
144
155
|
### Decision Memory Across Tools
|
|
145
156
|
|
|
146
|
-
Trie
|
|
157
|
+
Trie solves the context-across-tools problem with a **cryptographic governance ledger**: an append-only, tamper-evident chain of blocks that stores decisions, incidents, fixes, and tradeoffs. Every tool—Cursor, Claude, VS Code, CLI, CI/CD—reads from the same ledger in `.trie/`, so there is no context fragmentation.
|
|
147
158
|
|
|
148
|
-
Decision nodes store why you made certain choices and what tradeoffs were considered
|
|
149
|
-
Cross-tool access - Cursor, Claude, VS Code, CLI, and CI/CD all read from the same
|
|
150
|
-
Context trail - Knows which environment ran which analysis and when
|
|
151
|
-
Relationship tracking - Files ↔ Changes ↔ Incidents ↔ Fixes ↔ Decisions
|
|
159
|
+
- **Decision nodes** store why you made certain choices and what tradeoffs were considered
|
|
160
|
+
- **Cross-tool access** - Cursor, Claude, VS Code, CLI, and CI/CD all read from the same `.trie/` folder
|
|
161
|
+
- **Context trail** - Knows which environment ran which analysis and when
|
|
162
|
+
- **Relationship tracking** - Files ↔ Changes ↔ Incidents ↔ Fixes ↔ Decisions
|
|
152
163
|
|
|
153
|
-
When you switch from Cursor to Claude Code to terminal
|
|
164
|
+
When you switch from Cursor to Claude Code to terminal—or when different agents and humans work in parallel—Trie remembers. Every tool shares the same ledger, so governance stays consistent.
|
|
154
165
|
|
|
155
166
|
### Signal Extraction: Context Without Pollution
|
|
156
167
|
|
|
157
|
-
|
|
168
|
+
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.
|
|
158
169
|
|
|
159
170
|
**Trie's Solution**: Extract signal, not noise.
|
|
160
171
|
|
|
@@ -181,7 +192,7 @@ When you switch from Cursor to Claude Code to terminal, Trie remembers. Your thi
|
|
|
181
192
|
|
|
182
193
|
#### MCP Query Tools
|
|
183
194
|
|
|
184
|
-
Agents don't get dumps—they
|
|
195
|
+
Agents don't get dumps—they query for what they need:
|
|
185
196
|
|
|
186
197
|
```typescript
|
|
187
198
|
// Agent queries decision ledger
|
|
@@ -196,7 +207,7 @@ trie_get_decisions({
|
|
|
196
207
|
// 2. "EU customers need VAT validation" (2 months ago)
|
|
197
208
|
```
|
|
198
209
|
|
|
199
|
-
|
|
210
|
+
Why this matters: context management IS the product. Agents get the right information at the right moment, not everything dumped at once.
|
|
200
211
|
|
|
201
212
|
## Core Workflow
|
|
202
213
|
|
|
@@ -214,7 +225,7 @@ trie status # Check overall project health
|
|
|
214
225
|
# Trie's Context Graph remembers why you made choices and what happened
|
|
215
226
|
```
|
|
216
227
|
|
|
217
|
-
|
|
228
|
+
Pro tip: The moment something goes sideways, check Trie again. Don't keep pushing—re-plan with historical context. Trie shows you what broke before, what decisions were made, and what edge cases caused issues. Use that knowledge to inform your plan, then let your AI tools implement it.
|
|
218
229
|
|
|
219
230
|
### 1. Teaching Phase
|
|
220
231
|
|
|
@@ -250,16 +261,16 @@ trie bad
|
|
|
250
261
|
# Also updates: decision patterns, edge case recognition, tradeoff understanding
|
|
251
262
|
```
|
|
252
263
|
|
|
253
|
-
### 4.
|
|
264
|
+
### 4. Governance Phase
|
|
254
265
|
|
|
255
|
-
This is where Trie shines. As your
|
|
266
|
+
This is where Trie shines. As your team grows—more humans, more agents, more tools:
|
|
256
267
|
|
|
257
268
|
```bash
|
|
258
|
-
# Working in Cursor,
|
|
259
|
-
# Trie records it in the
|
|
269
|
+
# Working in Cursor, an agent makes a decision about error handling
|
|
270
|
+
# Trie records it in the ledger
|
|
260
271
|
|
|
261
|
-
#
|
|
262
|
-
# Same
|
|
272
|
+
# A teammate switches to Claude Code later
|
|
273
|
+
# Same ledger, same decisions, same compliance
|
|
263
274
|
|
|
264
275
|
# Push from terminal
|
|
265
276
|
# Git hooks check against your full history of decisions and incidents
|
|
@@ -268,7 +279,7 @@ This is where Trie shines. As your app grows and you handle edge cases:
|
|
|
268
279
|
# Same checks, same memory, same coherence
|
|
269
280
|
```
|
|
270
281
|
|
|
271
|
-
Edge cases, tradeoffs, and system coherence—Trie handles
|
|
282
|
+
Edge cases, tradeoffs, and system coherence—Trie handles governance by remembering what was decided, why it was decided, and what happened as a result. When agents and humans ship together, the ledger keeps everyone compliant.
|
|
272
283
|
|
|
273
284
|
## Advanced Features
|
|
274
285
|
|
|
@@ -332,6 +343,116 @@ trie gotcha
|
|
|
332
343
|
|
|
333
344
|
Trie will warn you if your current task correlates with historical regressions or high-risk signatures.
|
|
334
345
|
|
|
346
|
+
### Integrations: Linear, GitHub & Cursor Cloud Agent
|
|
347
|
+
|
|
348
|
+
**Linear** — Sync active tickets for JIT defect prediction:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
trie linear auth <your-api-key>
|
|
352
|
+
trie linear sync
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
Or via MCP: `trie_linear_sync` — syncs tickets into the context graph for gotcha predictions.
|
|
356
|
+
|
|
357
|
+
**GitHub** — Sync open PRs and issues into the context graph:
|
|
358
|
+
|
|
359
|
+
```bash
|
|
360
|
+
# Via MCP (Cursor/Claude)
|
|
361
|
+
trie_github_sync
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Links PRs to changed files and to Linear tickets mentioned in PR descriptions. Requires `GITHUB_TOKEN` (repo scope for private repos, public_repo for public).
|
|
365
|
+
|
|
366
|
+
**Cursor Cloud Agent** — Dispatch high-risk issues to Cursor's cloud for verified, test-passing fixes:
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
# Via MCP
|
|
370
|
+
trie_cloud_fix action:configure apiKey:"key-..."
|
|
371
|
+
trie_cloud_fix action:dispatch issueIds:["issue-1", "issue-2"]
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
The cloud agent runs in an isolated VM, applies the fix, runs tests, captures screenshots, and opens a PR. Requires `CURSOR_API_KEY`. Use `trie_fix action:route` first to see which issues qualify.
|
|
375
|
+
|
|
376
|
+
### Fix Triage System
|
|
377
|
+
|
|
378
|
+
Trie routes each issue to one of three fix strategies based on a scoring system:
|
|
379
|
+
|
|
380
|
+
| Strategy | When | Action |
|
|
381
|
+
|----------|------|--------|
|
|
382
|
+
| **inline-auto** | Trivial, auto-fixable (score < 0) | Apply fix automatically |
|
|
383
|
+
| **local-ai** | Moderate risk (score 0–3) | `trie_fix` — local AI applies fix |
|
|
384
|
+
| **cloud-agent** | High risk (score ≥ 4) | `trie_cloud_fix` — Cursor cloud agent |
|
|
385
|
+
|
|
386
|
+
Scoring signals: Issue shape (effort, severity, CWE, OWASP), code context (tests, auth/crypto/payments), occurrence history (how often seen), pipeline context (linked PR/ticket), and user config.
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
# See routing plan before applying
|
|
390
|
+
trie_fix action:route
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
### Pipeline View
|
|
394
|
+
|
|
395
|
+
Get a consolidated view of your work across Linear, GitHub, and Trie:
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
# Via MCP
|
|
399
|
+
trie_pipeline # Full status: tickets, PRs, issues, coverage gaps
|
|
400
|
+
trie_pipeline action:coverage # Only Trie issues with no ticket/PR
|
|
401
|
+
trie_pipeline action:create_tickets issueIds:["id1","id2"] # Open Linear tickets for uncovered issues
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
### Cryptographic Governance Ledger
|
|
405
|
+
|
|
406
|
+
Trie uses a **chain-of-blocks ledger** for tamper-evident incident history and team sync. The ledger transforms from isolated per-developer chains into a collaborative, distributed cryptographic ledger that scales to teams while maintaining integrity.
|
|
407
|
+
|
|
408
|
+
**Architecture:**
|
|
409
|
+
- **Chained blocks** — Each block links to the previous via hash; genesis block starts the chain
|
|
410
|
+
- **Merkle roots** — Block contents hashed for integrity verification
|
|
411
|
+
- **Author attribution** — Each block records who added it; git commit correlation for developer attribution
|
|
412
|
+
- **Version 2 format** — Syncable blocks with backwards compatibility for v1 ledgers
|
|
413
|
+
|
|
414
|
+
**Shared storage** (`.trie-shared/`):
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
.trie-shared/
|
|
418
|
+
├── ledger-manifest.json # Global chain metadata + index
|
|
419
|
+
├── active/ # Hot storage (recent blocks)
|
|
420
|
+
│ ├── 2024-01-20.json
|
|
421
|
+
│ └── 2024-01-21.json
|
|
422
|
+
└── archived/ # Cold storage (compressed)
|
|
423
|
+
├── 2024-01.tar.gz # Monthly archives
|
|
424
|
+
└── 2023-12.tar.gz
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
**Compression & scalability:**
|
|
428
|
+
- Automatic archiving after 30 days
|
|
429
|
+
- gzip compression with configurable levels (90%+ space savings)
|
|
430
|
+
- Hot/cold storage tiers; lazy loading of archived content
|
|
431
|
+
|
|
432
|
+
**Conflict resolution:** Divergent chains merge with timestamp or longest-chain strategy; entry deduplication across developer chains.
|
|
433
|
+
|
|
434
|
+
**Git integration:** Auto-sync via `trie sync hooks --install` — pre-push and post-merge hooks keep local and shared ledgers in sync. Commit correlation and developer attribution from git history.
|
|
435
|
+
|
|
436
|
+
**Backwards compatibility:** Automatic migration of v1 ledgers; legacy detection and zero-data-loss upgrade.
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
# Sync commands
|
|
440
|
+
trie sync init # Initialize shared storage
|
|
441
|
+
trie sync pull # Pull shared updates (auto-migrates legacy)
|
|
442
|
+
trie sync push # Push local changes
|
|
443
|
+
trie sync status # Show sync state, conflicts
|
|
444
|
+
trie sync migrate # Manually migrate legacy v1 ledger
|
|
445
|
+
trie sync hooks --install # Install pre-push/post-merge auto-sync hooks
|
|
446
|
+
|
|
447
|
+
# Ledger commands
|
|
448
|
+
trie ledger verify # Validate chain integrity
|
|
449
|
+
trie ledger history # Show chain with author attribution
|
|
450
|
+
trie ledger stats # Block counts, entries, severity breakdown
|
|
451
|
+
trie ledger diff # Compare local vs shared
|
|
452
|
+
trie ledger compress # Manually archive old blocks
|
|
453
|
+
trie ledger storage # Detailed storage usage stats
|
|
454
|
+
```
|
|
455
|
+
|
|
335
456
|
### Integration with AI Coding Tools
|
|
336
457
|
|
|
337
458
|
Trie provides MCP (Model Context Protocol) tools for seamless integration with Claude, Cursor, and other AI assistants:
|
|
@@ -340,9 +461,16 @@ Trie provides MCP (Model Context Protocol) tools for seamless integration with C
|
|
|
340
461
|
trie_tell - Report incidents and extract structured signals
|
|
341
462
|
trie_check - Quick risk assessment
|
|
342
463
|
trie_memory - Search incident history
|
|
343
|
-
trie_fix - Apply suggested fixes
|
|
464
|
+
trie_fix - Apply suggested fixes (use action:route to see triage plan)
|
|
465
|
+
trie_cloud_fix - Dispatch to Cursor cloud agent for verified fixes
|
|
466
|
+
|
|
467
|
+
**Integration Tools:**
|
|
468
|
+
trie_linear_sync - Sync active Linear tickets
|
|
469
|
+
trie_github_sync - Sync open PRs and issues from GitHub
|
|
470
|
+
trie_github_branches - Fetch branches with latest commit info (which branch has latest updates)
|
|
471
|
+
trie_pipeline - Consolidated view of tickets, PRs, issues, coverage gaps
|
|
344
472
|
|
|
345
|
-
**Query Tools (
|
|
473
|
+
**Query Tools (Signal Extraction):**
|
|
346
474
|
trie_get_decisions - Query decisions with filters (tags, time, file)
|
|
347
475
|
trie_get_blockers - Get active blockers only
|
|
348
476
|
trie_get_related_decisions - Find related context
|
|
@@ -433,7 +561,9 @@ For Claude (MCP): Add to your MCP settings:
|
|
|
433
561
|
"args": ["mcp"],
|
|
434
562
|
"env": {
|
|
435
563
|
"ANTHROPIC_API_KEY": "your-api-key-here",
|
|
436
|
-
"LINEAR_API_KEY": "your-key"
|
|
564
|
+
"LINEAR_API_KEY": "your-key",
|
|
565
|
+
"GITHUB_TOKEN": "your-github-token",
|
|
566
|
+
"CURSOR_API_KEY": "your-cursor-key"
|
|
437
567
|
}
|
|
438
568
|
}
|
|
439
569
|
}
|
|
@@ -474,6 +604,23 @@ trie goal list # View progress
|
|
|
474
604
|
trie linear sync # Sync Linear tickets for intent context
|
|
475
605
|
```
|
|
476
606
|
|
|
607
|
+
### Ledger & Sync
|
|
608
|
+
|
|
609
|
+
```bash
|
|
610
|
+
trie ledger verify # Verify chain integrity
|
|
611
|
+
trie ledger history # Show blocks with author attribution
|
|
612
|
+
trie ledger stats # Block counts, entries, severity
|
|
613
|
+
trie ledger diff # Compare local vs shared ledger
|
|
614
|
+
trie ledger compress # Archive old blocks
|
|
615
|
+
trie ledger storage # Storage usage stats
|
|
616
|
+
trie sync init # Initialize shared ledger
|
|
617
|
+
trie sync pull # Pull from shared storage
|
|
618
|
+
trie sync push # Push local blocks to shared
|
|
619
|
+
trie sync status # Show sync state and conflicts
|
|
620
|
+
trie sync migrate # Migrate legacy v1 ledger
|
|
621
|
+
trie sync hooks --install # Install auto-sync git hooks
|
|
622
|
+
```
|
|
623
|
+
|
|
477
624
|
### Feedback & Training
|
|
478
625
|
|
|
479
626
|
```bash
|
|
@@ -644,8 +791,6 @@ node fix-goals.js "NO EMOJIS"
|
|
|
644
791
|
trie goal add "NO EMOJIS"
|
|
645
792
|
trie goal list
|
|
646
793
|
```
|
|
647
|
-
See [Goal Detection Fix](./docs/GOAL_DETECTION_FIX.md) for details.
|
|
648
|
-
|
|
649
794
|
### Getting Help
|
|
650
795
|
- Issues: [Report bugs and request features](https://x.com/louiskishfy)
|
|
651
796
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
shouldAutoFix,
|
|
11
11
|
shouldBlockPush,
|
|
12
12
|
trackIssueOccurrence
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5KJ4UJOY.js";
|
|
14
14
|
import "./chunk-SH7H3WRU.js";
|
|
15
15
|
import "./chunk-APMV77PU.js";
|
|
16
16
|
import "./chunk-DGUM43GV.js";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
shouldBlockPush,
|
|
28
28
|
trackIssueOccurrence
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=autonomy-config-
|
|
30
|
+
//# sourceMappingURL=autonomy-config-ZCOSTMPD.js.map
|