@triedotdev/mcp 1.0.91 → 1.0.92

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 (38) hide show
  1. package/README.md +1 -621
  2. package/dist/{agent-smith-Q52DFQET.js → agent-smith-QYDXPFPJ.js} +2 -2
  3. package/dist/{agent-smith-runner-BMT3FN7T.js → agent-smith-runner-GXGDJTSR.js} +2 -2
  4. package/dist/cache-manager-7SKX3IGO.js +10 -0
  5. package/dist/cache-manager-7SKX3IGO.js.map +1 -0
  6. package/dist/{chunk-LAGXOPXN.js → chunk-3HDWOSLX.js} +39 -18
  7. package/dist/chunk-3HDWOSLX.js.map +1 -0
  8. package/dist/{chunk-7IEGGW4L.js → chunk-5DQLHWTT.js} +114 -342
  9. package/dist/chunk-5DQLHWTT.js.map +1 -0
  10. package/dist/chunk-76Q5DMYV.js +159 -0
  11. package/dist/chunk-76Q5DMYV.js.map +1 -0
  12. package/dist/chunk-HFQ5ORON.js +279 -0
  13. package/dist/chunk-HFQ5ORON.js.map +1 -0
  14. package/dist/{chunk-XEQRB4XX.js → chunk-KWDNYWOR.js} +2 -2
  15. package/dist/chunk-KWDNYWOR.js.map +1 -0
  16. package/dist/chunk-MURGTWG4.js +279 -0
  17. package/dist/chunk-MURGTWG4.js.map +1 -0
  18. package/dist/{chunk-3EZ2ETKG.js → chunk-R6YM6YSV.js} +43 -368
  19. package/dist/chunk-R6YM6YSV.js.map +1 -0
  20. package/dist/{chunk-6OJRG7MM.js → chunk-ZOKQJZKN.js} +6 -4
  21. package/dist/{chunk-6OJRG7MM.js.map → chunk-ZOKQJZKN.js.map} +1 -1
  22. package/dist/cli/main.js +15 -10
  23. package/dist/cli/main.js.map +1 -1
  24. package/dist/cli/yolo-daemon.js +14 -6
  25. package/dist/cli/yolo-daemon.js.map +1 -1
  26. package/dist/git-5WJHCMNO.js +29 -0
  27. package/dist/git-5WJHCMNO.js.map +1 -0
  28. package/dist/index.js +16 -12
  29. package/dist/index.js.map +1 -1
  30. package/dist/workers/agent-worker.js +3 -2
  31. package/dist/workers/agent-worker.js.map +1 -1
  32. package/package.json +2 -2
  33. package/dist/chunk-3EZ2ETKG.js.map +0 -1
  34. package/dist/chunk-7IEGGW4L.js.map +0 -1
  35. package/dist/chunk-LAGXOPXN.js.map +0 -1
  36. package/dist/chunk-XEQRB4XX.js.map +0 -1
  37. /package/dist/{agent-smith-Q52DFQET.js.map → agent-smith-QYDXPFPJ.js.map} +0 -0
  38. /package/dist/{agent-smith-runner-BMT3FN7T.js.map → agent-smith-runner-GXGDJTSR.js.map} +0 -0
package/README.md CHANGED
@@ -6,7 +6,7 @@
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.
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
@@ -665,626 +665,6 @@ Too many false positives: Use trie bad to train Trie, and consider adjusting sco
665
665
 
666
666
  Hooks not working: Reinstall with trie init. Make sure you have write permissions to .git/hooks/.
667
667
 
668
- this is what our github readme should say
669
- # Trie: Trainable AI Agent for Maintaining AI-Generated Codebases
670
-
671
- **A trainable AI agent that watches all of your codebases, learns from your incidents, and prevents repeat bugs before they ship.**
672
-
673
- [![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)
674
-
675
- ## What Trie Does
676
-
677
- - **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.
678
- - **Sets and tracks goals**: "Reduce login bugs by 50%" then actually measures progress and celebrates wins
679
- - **Tests your theories**: "Mondays have more bugs" — Trie validates with real data and builds confidence over time
680
- - **Learns from your incidents**: Train it on your specific patterns, not generic rules that don't fit your prompting
681
- - **Predicts "Gotchas" proactively**: Ingests Linear tickets and correlates them with past failures to warn you before you even push code
682
-
683
- ## Goal
684
-
685
- Trie exists so you can maintain multiple codebases as one person without losing your mind.
686
-
687
- 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.
688
-
689
- 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.
690
-
691
- **Your thinking and planning keep up with code generation. Your decisions persist across tools. Your edge cases don't get forgotten.**
692
-
693
- ## Quick Start
694
-
695
- ### 1. Install Trie
696
-
697
- Make sure you have Node.js installed, then:
698
-
699
- ```bash
700
- # Install Trie globally
701
- npm install -g trie
702
-
703
- # Set up in your project
704
- cd your-project
705
- trie init
706
- ```
707
-
708
- ### 2. Run Your First Scan
709
-
710
- ```bash
711
- # Scan your entire codebase
712
- trie scan
713
-
714
- # Quick health check
715
- trie status
716
- ```
717
-
718
- ### 3. Start Teaching Trie
719
-
720
- When bugs happen, tell Trie about them:
721
-
722
- ```bash
723
- # Report a specific incident
724
- trie tell "Users can't log in after password reset"
725
-
726
- # Train Trie from your history (reverts/bugfixes)
727
- trie learn
728
-
729
- # Give feedback on patterns (staged files)
730
- trie ok # Pattern is good
731
- trie bad # Pattern is bad
732
- ```
733
-
734
- ## Why Trie Exists
735
-
736
- 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.
737
-
738
- **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.
739
-
740
- 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.
741
-
742
- 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.
743
-
744
- ## Key Features
745
-
746
- ### Smart Memory
747
- - **Git-based storage** - Your project's memory travels with your code in `.trie/` folder
748
- - **Cross-project learning** - Patterns discovered in one project help prevent bugs in others
749
- - **Incident tracking** - Build a searchable history of what went wrong and why
750
- - **Decision memory** - Remembers architectural choices and tradeoffs across Cursor, Claude Code, CLI, and CI/CD
751
- - **Context that travels** - Your thinking and planning keep up with code generation across all your tools
752
-
753
- ### Intelligent Analysis
754
- - **26 built-in scouts** - Automated analyzers for security, performance, accessibility, and more
755
- - **Custom skills** - Add external analyzers from the community
756
- - **Risk scoring** - Intelligent priority ranking based on your actual incident history
757
- - **Edge case detection** - Identifies recurring issues and patterns you've hit before
758
- - **System coherence** - Tracks relationships between files, changes, incidents, fixes, and decisions
759
-
760
- ### Development Integration
761
- - **Git hooks** - Automatic checks before commits and pushes
762
- - **Watch mode** - Real-time monitoring while you code
763
- - **Fast performance** - Sub-500ms checks, won't slow down your workflow
764
-
765
- ### Developer Experience
766
- - **Plain English warnings** - "This auth change broke twice before" instead of cryptic codes
767
- - **Multiple interfaces** - CLI, MCP tools for Claude/Cursor, visual dashboards
768
- - **Flexible workflow** - Works with any editor, any git workflow, any deployment setup
769
-
770
- ## How It Works
771
-
772
- ### The Guardian System
773
-
774
- Trie uses a "Guardian Agent" architecture:
775
-
776
- 1. **Scouts** continuously analyze your code for potential issues
777
- 2. **Guardian** receives scout reports and decides what matters based on your history
778
- 3. **Memory Tree** stores incident patterns using a trie data structure for fast lookups
779
- 4. **Learning Loop** improves predictions based on your feedback
780
-
781
- ### Memory That Travels
782
-
783
- ```
784
- your-project/
785
- ├── .trie/
786
- │ ├── memory/ # Incident history
787
- │ ├── patterns/ # Learned patterns
788
- │ ├── context.json # Project knowledge graph
789
- │ ├── context.db # SQLite graph (decisions, relationships)
790
- │ └── config.json # Settings
791
- ├── src/
792
- └── .git/
793
- ```
794
-
795
- The `.trie/` folder commits with your code, so your project's intelligence is preserved and shared across:
796
- - Local development
797
- - CI/CD pipelines
798
- - Team members
799
- - Different machines
800
-
801
- ### Decision Memory Across Tools
802
-
803
- Trie maintains a **Context Graph** that tracks decisions, tradeoffs, and architectural choices:
804
-
805
- - **Decision nodes** store why you made certain choices and what tradeoffs were considered
806
- - **Cross-tool access** - Cursor, Claude Code, CLI, and CI/CD all read from the same `.trie/` folder
807
- - **Context trail** - Knows which environment ran which analysis and when
808
- - **Relationship tracking** - Files ↔ Changes ↔ Incidents ↔ Fixes ↔ Decisions
809
-
810
- 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.
811
-
812
- ## Core Workflow
813
-
814
- ### 1. Teaching Phase
815
- ```bash
816
- # Something breaks in production
817
- trie tell "Payment processing failed for EU customers"
818
-
819
- # Trie learns: "payments/" + "EU" + "failed" = high risk pattern
820
- # Also records: decision context, affected files, tradeoffs made
821
- ```
822
-
823
- ### 2. Prevention Phase
824
- ```bash
825
- # Later, you modify payment code
826
- git add src/payments/eu-handler.js
827
- git commit -m "Update EU payment logic"
828
-
829
- # Trie warns: "This area broke 2 weeks ago with EU payments. Consider extra testing."
830
- # Context: Remembers the decision you made last time, the edge case that caused the issue
831
- ```
832
-
833
- ### 3. Feedback Loop
834
- ```bash
835
- # Warning was helpful
836
- trie ok
837
-
838
- # Warning was wrong
839
- trie bad
840
-
841
- # Trie adjusts confidence for similar future warnings
842
- # Also updates: decision patterns, edge case recognition, tradeoff understanding
843
- ```
844
-
845
- ### 4. Maintenance Phase
846
-
847
- This is where Trie shines. As your app grows and you handle edge cases:
848
-
849
- ```bash
850
- # Working in Cursor, you make a decision about error handling
851
- # Trie records it in the context graph
852
-
853
- # Switch to Claude Code later
854
- # Same context graph, same decisions remembered
855
-
856
- # Push from terminal
857
- # Git hooks check against your full history of decisions and incidents
858
-
859
- # CI/CD runs
860
- # Same checks, same memory, same coherence
861
- ```
862
-
863
- **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.
864
-
865
- ## Advanced Features
866
-
867
- ### Goals & Hypotheses
868
- Set improvement goals and test theories:
869
-
870
- ```bash
871
- # Set a goal
872
- trie goal add "Reduce authentication bugs by 50%"
873
-
874
- # Add a hypothesis
875
- trie hypothesis add "Code reviews reduce bug rate"
876
-
877
- # Trie tracks progress and validates hypotheses over time
878
- ```
879
-
880
- ### Watch Mode
881
- Real-time monitoring with visual dashboard:
882
-
883
- ```bash
884
- trie watch
885
- ```
886
-
887
- Interactive panels for goals, memory, scout activity, and more.
888
-
889
- **Running in Background:**
890
- To keep `trie watch` running in the background, use `screen` or `tmux`:
891
-
892
- ```bash
893
- # Using screen
894
- screen -S trie-watch
895
- trie watch
896
- # Press Ctrl+A then D to detach
897
- # Reattach with: screen -r trie-watch
898
-
899
- # Using tmux
900
- tmux new -s trie-watch
901
- trie watch
902
- # Press Ctrl+B then D to detach
903
- # Reattach with: tmux attach -t trie-watch
904
- ```
905
-
906
- This allows you to keep the guardian running while using other terminals. The interactive dashboard will be available when you reattach.
907
-
908
- ### JIT Defect Prediction ("Gotchas")
909
- Trie connects to your issue tracker and project history to predict problems *while you work*:
910
-
911
- ```bash
912
- # 1. Connect Linear
913
- trie linear auth <your-api-key>
914
- trie linear sync
915
-
916
- # 2. Learn from history automatically
917
- trie learn
918
-
919
- # 3. Predict for current changes
920
- trie gotcha
921
- ```
922
-
923
- Trie will warn you if your current task correlates with historical regressions or high-risk signatures.
924
-
925
- ### Integration with AI Coding Tools
926
-
927
- Trie provides MCP (Model Context Protocol) tools for seamless integration with Claude, Cursor, and other AI assistants:
928
-
929
- - `trie_scan` - Analyze code with AI-friendly output
930
- - `trie_check` - Quick risk assessment
931
- - `trie_tell` - Report incidents
932
- - `trie_memory` - Search incident history
933
- - `trie_fix` - Apply suggested fixes
934
-
935
- ## Built-in Scouts
936
-
937
- Trie includes 26 specialized analyzers:
938
-
939
- ### Security & Compliance
940
- - **Security Scout** - Vulnerabilities, injection risks, secrets
941
- - **Privacy Scout** - PII handling, GDPR/HIPAA compliance
942
- - **Legal Scout** - Regulatory compliance patterns
943
- - **SOC2 Scout** - Access controls, audit trails
944
-
945
- ### Code Quality
946
- - **Bug Scout** - Common bugs, edge cases, null safety
947
- - **Architecture Scout** - SOLID principles, scalability issues
948
- - **Types Scout** - Type errors, missing annotations
949
- - **Clean Scout** - AI-generated code cleanup
950
-
951
- ### User Experience
952
- - **Accessibility Scout** - WCAG compliance, screen readers
953
- - **UX Scout** - User journey analysis, usability issues
954
- - **Design Scout** - Visual consistency, design systems
955
-
956
- ### Operations
957
- - **DevOps Scout** - Configuration issues, deployment patterns
958
- - **Performance Scout** - Speed bottlenecks, optimization opportunities
959
-
960
- [View all scouts →](#built-in-scouts)
961
-
962
- ## Installation & Setup
963
-
964
- ### Requirements
965
- - Node.js 16 or higher
966
- - Git repository
967
-
968
- ### Installation
969
- ```bash
970
- # Install globally
971
- npm install -g trie
972
-
973
- # Or use npx for one-time runs
974
- npx trie scan
975
- ```
976
-
977
- ### Project Setup
978
- ```bash
979
- # Initialize in your project
980
- cd your-project
981
- trie init
982
-
983
- # This creates:
984
- # - .trie/ directory with initial config
985
- # - Git hooks for automatic checking
986
- # - Bootstrap files (optional)
987
- ```
988
-
989
- ### API Key Configuration
990
- Trie works best with these keys:
991
-
992
- 1. **ANTHROPIC_API_KEY**: Enables AI-powered analysis and explanations.
993
- 2. **LINEAR_API_KEY**: Enables JIT defect prediction by syncing your active tickets.
994
-
995
- #### 1. Set via Environment (Recommended for MCP)
996
- Add these to your `.env` file or shell config:
997
-
998
- ```bash
999
- export ANTHROPIC_API_KEY=sk-ant-...
1000
- export LINEAR_API_KEY=lin_api_...
1001
- ```
1002
-
1003
- #### 2. Set via CLI (Persistent per project)
1004
- ```bash
1005
- trie linear auth <your-key>
1006
- ```
1007
-
1008
- #### 3. Set in MCP Config (Cursor/Claude Code)
1009
- Add to your MCP server configuration:
1010
-
1011
- ```json
1012
- {
1013
- "mcpServers": {
1014
- "trie": {
1015
- "command": "npx",
1016
- "args": ["-y", "@triedotdev/mcp"],
1017
- "env": {
1018
- "ANTHROPIC_API_KEY": "your-key",
1019
- "LINEAR_API_KEY": "your-key"
1020
- }
1021
- }
1022
- }
1023
- }
1024
- ```
1025
-
1026
- ### AI Tool Integration
1027
-
1028
- **For Claude (MCP)**:
1029
- Add to your MCP settings:
1030
- ```json
1031
- {
1032
- "mcpServers": {
1033
- "trie": {
1034
- "command": "trie",
1035
- "args": ["mcp"],
1036
- "env": {
1037
- "ANTHROPIC_API_KEY": "your-api-key-here",
1038
- "LINEAR_API_KEY": "your-key"
1039
- }
1040
- }
1041
- }
1042
- }
1043
- ```
1044
-
1045
- **For Cursor**:
1046
- Cursor has built-in MCP support. Add the above configuration to your Cursor MCP settings.
1047
-
1048
- **Note**: VS Code extension is coming soon.
1049
-
1050
- ## CLI Reference
1051
-
1052
- ### Basic Commands
1053
- ```bash
1054
- trie init # Set up Trie in your project
1055
- trie scan # Analyze codebase with intelligent skill selection
1056
- trie status # View project health and memory stats
1057
- trie learn # Train Trie from history or feedback
1058
- trie gotcha # Predict problems with current changes
1059
- ```
1060
-
1061
- ### Memory Management
1062
- ```bash
1063
- trie memory search "auth" # Search incident history
1064
- trie memory stats # View memory statistics
1065
- trie memory purge smart # Clean up old/resolved issues
1066
- trie learn # Extract patterns from reverts/fixes
1067
- ```
1068
-
1069
- ### Goals & Learning
1070
- ```bash
1071
- trie goal add "<goal>" # Set improvement goal
1072
- trie hypothesis add "<theory>" # Test a hypothesis
1073
- trie goal list # View progress
1074
- trie linear sync # Sync Linear tickets for intent context
1075
- ```
1076
-
1077
- ### Feedback & Training
1078
- ```bash
1079
- trie ok # Pattern is good (alias: learn ok)
1080
- trie bad # Pattern is bad (alias: learn bad)
1081
- trie learn # Learn from your git history
1082
- trie pause # Disable warnings for 1 hour
1083
- ```
1084
-
1085
- ### Pattern Sharing
1086
- Save, validate, and share patterns that worked well across projects:
1087
-
1088
- ```bash
1089
- # Save patterns (auto-detects type: file structure, code pattern, or detection rule)
1090
- trie patterns save "auth/login.ts" "This error handling prevented 3 bugs"
1091
- trie patterns save "auth/*" "This folder structure worked well"
1092
- trie patterns save security "This scout caught issues early"
1093
-
1094
- # List saved patterns
1095
- trie patterns list
1096
- trie patterns list --validated # Only validated patterns
1097
-
1098
- # Validate a pattern (mark as "worked great")
1099
- trie patterns validate pattern-abc123 "Worked great in production"
1100
-
1101
- # Export patterns to share
1102
- trie patterns export my-patterns.json --validated
1103
-
1104
- # Import patterns into another project
1105
- cd ../another-project
1106
- trie patterns import ../source-project/patterns.json
1107
- ```
1108
-
1109
- **Smart Pattern Detection:**
1110
- - **File structure patterns** - Architecture decisions (`path/*`, `*.ts`)
1111
- - **Code patterns** - Specific fixes/approaches that worked (`path/to/file.ts`)
1112
- - **Detection rules** - Scout configurations that caught issues (`security`, `privacy`)
1113
-
1114
- Saved patterns are automatically applied during `trie scan` and `trie watch` runs.
1115
-
1116
- ### Watch Mode
1117
- ```bash
1118
- trie watch # Start interactive monitoring dashboard
1119
-
1120
- # Run in background with screen/tmux:
1121
- screen -S trie-watch && trie watch # Detach: Ctrl+A, D
1122
- tmux new -s trie-watch && trie watch # Detach: Ctrl+B, D
1123
- ```
1124
-
1125
- ## Configuration
1126
-
1127
- ### Scan Behavior
1128
- Create `.trie/config.json`:
1129
- ```json
1130
- {
1131
- "scanOptions": {
1132
- "maxConcurrency": 4,
1133
- "timeoutMs": 30000,
1134
- "includeNodeModules": false
1135
- },
1136
- "autoEscalation": {
1137
- "enabled": true,
1138
- "webhookUrl": "https://hooks.slack.com/...",
1139
- "quietHours": { "start": "21:00", "end": "08:00" }
1140
- }
1141
- }
1142
- ```
1143
-
1144
- ### Git Hooks
1145
- Installed automatically with `trie init`:
1146
-
1147
- - **pre-commit** - Quick scan of staged files
1148
- - **post-commit** - Update context graph
1149
- - **pre-push** - Block critical issues (can be bypassed)
1150
-
1151
- To bypass:
1152
- ```bash
1153
- git push --no-verify # Skip all hooks
1154
- TRIE_BYPASS=1 git push # Skip Trie but log bypass
1155
- ```
1156
-
1157
- ## CI/CD Integration
1158
-
1159
- ### GitHub Actions
1160
- ```bash
1161
- # Generate workflow file
1162
- trie ci github
1163
-
1164
- # Creates .github/workflows/trie.yml with:
1165
- # - Full codebase scan
1166
- # - Memory caching for speed
1167
- # - SARIF upload for GitHub Security tab
1168
- ```
1169
-
1170
- ### Custom CI
1171
- ```bash
1172
- # In your CI pipeline
1173
- npm install -g trie
1174
- trie scan --output=sarif > trie-results.sarif
1175
- ```
1176
-
1177
- ## Memory System
1178
-
1179
- ### Local Memory
1180
- Each project stores its own memory in `.trie/memory/`:
1181
- - Incident reports and patterns
1182
- - Risk scores and confidence levels
1183
- - Performance over time
1184
-
1185
- ### Cross-Project Memory
1186
- Global patterns stored in `~/.trie/memory/`:
1187
- - Patterns that apply across projects
1188
- - Skill effectiveness data
1189
- - Your personal coding patterns
1190
-
1191
- ### Git Worktrees
1192
- Trie is worktree-aware and shares a single `.trie/` across linked worktrees by default.
1193
-
1194
- If you want isolated memory per worktree, set:
1195
- ```
1196
- TRIE_WORKTREE_MODE=isolated
1197
- ```
1198
-
1199
- ### Memory Management
1200
- ```bash
1201
- # View capacity (default: 10,000 issues)
1202
- trie memory stats
1203
-
1204
- # Smart cleanup (removes resolved + old low-priority)
1205
- trie memory purge smart
1206
-
1207
- # Remove all resolved issues
1208
- trie memory purge resolved
1209
-
1210
- # Remove issues older than 90 days
1211
- trie memory purge old --days=90
1212
- ```
1213
-
1214
- **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).
1215
-
1216
- ## Custom Skills
1217
-
1218
- ### Adding External Skills
1219
- ```bash
1220
- # From skill repositories
1221
- trie skill install vercel/ai-best-practices
1222
- trie skill install anthropic/typescript-patterns
1223
-
1224
- # From any GitHub repo
1225
- trie skill install username/repo-name
1226
- ```
1227
-
1228
- ### Security & Safe Installation
1229
-
1230
- **Trie automatically scans all skills for security risks before installation.**
1231
-
1232
- When installing skills:
1233
- - Skills are scanned for malicious patterns
1234
- - Critical risks flagged with strong warnings
1235
- - High risks flagged with warnings
1236
- - **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)
1237
-
1238
- ```bash
1239
- # View audit logs
1240
- trie audit logs
1241
-
1242
- # View security info for installed skill
1243
- trie skills info skill-name
1244
- ```
1245
-
1246
- **Best Practices:**
1247
- - Only install from trusted sources (verified organizations)
1248
- - Review security warnings and all .md carefully before using
1249
- - Check audit logs periodically: `trie audit stats` (and investigate anything unexpected with `trie audit skill <name>`)
1250
-
1251
- ### Creating Your Own Skills
1252
- ```bash
1253
- # Create from documentation
1254
- trie skill create my-skill --doc=./coding-standards.md
1255
-
1256
- # This creates a custom analyzer based on your documentation
1257
- ```
1258
-
1259
- ### Skill Format
1260
- Skills are simple markdown files with detection rules:
1261
-
1262
- ```markdown
1263
- # My Custom Skill
1264
-
1265
- ## Detection Rules
1266
- - File patterns: `*.js`, `*.ts`
1267
- - Code patterns: `console.log`, `debugger`
1268
-
1269
- ## Analysis
1270
- Look for debugging statements left in production code.
1271
-
1272
- ## Fix Suggestions
1273
- Remove or replace with proper logging.
1274
- ```
1275
-
1276
- ## Troubleshooting
1277
-
1278
- ### Common Issues
1279
-
1280
- **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.
1281
-
1282
- **Scans are slow**: Reduce concurrency with `--max-concurrency=2` or exclude large directories in config.
1283
-
1284
- **Too many false positives**: Use `trie bad` to train Trie, and consider adjusting scout sensitivity in config.
1285
-
1286
- **Hooks not working**: Reinstall with `trie init`. Make sure you have write permissions to `.git/hooks/`.
1287
-
1288
668
  ### Getting Help
1289
669
  - Issues: [Report bugs and request features](https://x.com/louiskishfy)
1290
670
  - Twitter: [@louiskishfy](https://x.com/louiskishfy) for quick questions
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  AgentSmithSkill,
3
3
  PATTERN_HUNTER_CONFIGS
4
- } from "./chunk-XEQRB4XX.js";
4
+ } from "./chunk-KWDNYWOR.js";
5
5
  import "./chunk-74NPKTZV.js";
6
6
  import "./chunk-RDOJCRKJ.js";
7
7
  import "./chunk-D25EIBPO.js";
@@ -11,4 +11,4 @@ export {
11
11
  AgentSmithSkill,
12
12
  PATTERN_HUNTER_CONFIGS
13
13
  };
14
- //# sourceMappingURL=agent-smith-Q52DFQET.js.map
14
+ //# sourceMappingURL=agent-smith-QYDXPFPJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AgentSmithSkill
3
- } from "./chunk-XEQRB4XX.js";
3
+ } from "./chunk-KWDNYWOR.js";
4
4
  import {
5
5
  getAIStatusMessage,
6
6
  isAIAvailable,
@@ -570,4 +570,4 @@ ${getAIStatusMessage()}`);
570
570
  export {
571
571
  runAgentSmith
572
572
  };
573
- //# sourceMappingURL=agent-smith-runner-BMT3FN7T.js.map
573
+ //# sourceMappingURL=agent-smith-runner-GXGDJTSR.js.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ CacheManager
3
+ } from "./chunk-HFQ5ORON.js";
4
+ import "./chunk-RDOJCRKJ.js";
5
+ import "./chunk-D25EIBPO.js";
6
+ import "./chunk-DGUM43GV.js";
7
+ export {
8
+ CacheManager
9
+ };
10
+ //# sourceMappingURL=cache-manager-7SKX3IGO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}