claude-memory-agent 2.0.0

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 (100) hide show
  1. package/.env.example +107 -0
  2. package/README.md +200 -0
  3. package/agent_card.py +512 -0
  4. package/bin/cli.js +181 -0
  5. package/bin/postinstall.js +216 -0
  6. package/config.py +104 -0
  7. package/dashboard.html +2689 -0
  8. package/hooks/README.md +196 -0
  9. package/hooks/__pycache__/auto-detect-response.cpython-312.pyc +0 -0
  10. package/hooks/__pycache__/auto_capture.cpython-312.pyc +0 -0
  11. package/hooks/__pycache__/session_end.cpython-312.pyc +0 -0
  12. package/hooks/__pycache__/session_start.cpython-312.pyc +0 -0
  13. package/hooks/auto-detect-response.py +348 -0
  14. package/hooks/auto_capture.py +255 -0
  15. package/hooks/detect-correction.py +173 -0
  16. package/hooks/grounding-hook.py +348 -0
  17. package/hooks/log-tool-use.py +234 -0
  18. package/hooks/log-user-request.py +208 -0
  19. package/hooks/pre-tool-decision.py +218 -0
  20. package/hooks/problem-detector.py +343 -0
  21. package/hooks/session_end.py +192 -0
  22. package/hooks/session_start.py +227 -0
  23. package/install.py +887 -0
  24. package/main.py +2859 -0
  25. package/manager.py +997 -0
  26. package/package.json +55 -0
  27. package/requirements.txt +8 -0
  28. package/run_server.py +136 -0
  29. package/services/__init__.py +50 -0
  30. package/services/__pycache__/__init__.cpython-312.pyc +0 -0
  31. package/services/__pycache__/agent_registry.cpython-312.pyc +0 -0
  32. package/services/__pycache__/auth.cpython-312.pyc +0 -0
  33. package/services/__pycache__/auto_inject.cpython-312.pyc +0 -0
  34. package/services/__pycache__/claude_md_sync.cpython-312.pyc +0 -0
  35. package/services/__pycache__/cleanup.cpython-312.pyc +0 -0
  36. package/services/__pycache__/compaction_flush.cpython-312.pyc +0 -0
  37. package/services/__pycache__/confidence.cpython-312.pyc +0 -0
  38. package/services/__pycache__/daily_log.cpython-312.pyc +0 -0
  39. package/services/__pycache__/database.cpython-312.pyc +0 -0
  40. package/services/__pycache__/embeddings.cpython-312.pyc +0 -0
  41. package/services/__pycache__/insights.cpython-312.pyc +0 -0
  42. package/services/__pycache__/llm_analyzer.cpython-312.pyc +0 -0
  43. package/services/__pycache__/memory_md_sync.cpython-312.pyc +0 -0
  44. package/services/__pycache__/retry_queue.cpython-312.pyc +0 -0
  45. package/services/__pycache__/timeline.cpython-312.pyc +0 -0
  46. package/services/__pycache__/vector_index.cpython-312.pyc +0 -0
  47. package/services/__pycache__/websocket.cpython-312.pyc +0 -0
  48. package/services/agent_registry.py +753 -0
  49. package/services/auth.py +331 -0
  50. package/services/auto_inject.py +250 -0
  51. package/services/claude_md_sync.py +275 -0
  52. package/services/cleanup.py +667 -0
  53. package/services/compaction_flush.py +447 -0
  54. package/services/confidence.py +301 -0
  55. package/services/daily_log.py +333 -0
  56. package/services/database.py +2485 -0
  57. package/services/embeddings.py +358 -0
  58. package/services/insights.py +632 -0
  59. package/services/llm_analyzer.py +595 -0
  60. package/services/memory_md_sync.py +409 -0
  61. package/services/retry_queue.py +453 -0
  62. package/services/timeline.py +579 -0
  63. package/services/vector_index.py +398 -0
  64. package/services/websocket.py +257 -0
  65. package/skills/__init__.py +6 -0
  66. package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
  67. package/skills/__pycache__/admin.cpython-312.pyc +0 -0
  68. package/skills/__pycache__/checkpoint.cpython-312.pyc +0 -0
  69. package/skills/__pycache__/claude_md.cpython-312.pyc +0 -0
  70. package/skills/__pycache__/cleanup.cpython-312.pyc +0 -0
  71. package/skills/__pycache__/grounding.cpython-312.pyc +0 -0
  72. package/skills/__pycache__/insights.cpython-312.pyc +0 -0
  73. package/skills/__pycache__/natural_language.cpython-312.pyc +0 -0
  74. package/skills/__pycache__/retrieve.cpython-312.pyc +0 -0
  75. package/skills/__pycache__/search.cpython-312.pyc +0 -0
  76. package/skills/__pycache__/state.cpython-312.pyc +0 -0
  77. package/skills/__pycache__/store.cpython-312.pyc +0 -0
  78. package/skills/__pycache__/summarize.cpython-312.pyc +0 -0
  79. package/skills/__pycache__/timeline.cpython-312.pyc +0 -0
  80. package/skills/__pycache__/verification.cpython-312.pyc +0 -0
  81. package/skills/admin.py +469 -0
  82. package/skills/checkpoint.py +198 -0
  83. package/skills/claude_md.py +363 -0
  84. package/skills/cleanup.py +241 -0
  85. package/skills/grounding.py +801 -0
  86. package/skills/insights.py +231 -0
  87. package/skills/natural_language.py +277 -0
  88. package/skills/retrieve.py +67 -0
  89. package/skills/search.py +213 -0
  90. package/skills/state.py +182 -0
  91. package/skills/store.py +179 -0
  92. package/skills/summarize.py +588 -0
  93. package/skills/timeline.py +387 -0
  94. package/skills/verification.py +391 -0
  95. package/start_daemon.py +155 -0
  96. package/test_automation.py +221 -0
  97. package/test_complete.py +338 -0
  98. package/test_full.py +322 -0
  99. package/update_system.py +817 -0
  100. package/verify_db.py +134 -0
@@ -0,0 +1,753 @@
1
+ """
2
+ Agent Registry - Defines all available sub-agents with metadata.
3
+ """
4
+
5
+ AGENT_CATEGORIES = {
6
+ "engineering": {
7
+ "name": "Engineering",
8
+ "icon": "code",
9
+ "color": "#58a6ff",
10
+ "description": "Software development and architecture agents"
11
+ },
12
+ "testing": {
13
+ "name": "Testing & QA",
14
+ "icon": "shield-check",
15
+ "color": "#3fb950",
16
+ "description": "Quality assurance and testing specialists"
17
+ },
18
+ "design": {
19
+ "name": "Design & UX",
20
+ "icon": "palette",
21
+ "color": "#a371f7",
22
+ "description": "UI/UX design and visual specialists"
23
+ },
24
+ "product": {
25
+ "name": "Product",
26
+ "icon": "lightbulb",
27
+ "color": "#d29922",
28
+ "description": "Product management and strategy"
29
+ },
30
+ "marketing": {
31
+ "name": "Marketing",
32
+ "icon": "megaphone",
33
+ "color": "#f85149",
34
+ "description": "Marketing and growth specialists"
35
+ },
36
+ "operations": {
37
+ "name": "Operations",
38
+ "icon": "settings",
39
+ "color": "#8b949e",
40
+ "description": "DevOps and operations management"
41
+ },
42
+ "data": {
43
+ "name": "Data & Analytics",
44
+ "icon": "chart-bar",
45
+ "color": "#39d353",
46
+ "description": "Data analysis and reporting"
47
+ },
48
+ "xr": {
49
+ "name": "XR & Spatial",
50
+ "icon": "cube",
51
+ "color": "#bf4b8a",
52
+ "description": "AR/VR/XR and spatial computing"
53
+ },
54
+ "exploration": {
55
+ "name": "Exploration",
56
+ "icon": "search",
57
+ "color": "#79c0ff",
58
+ "description": "Codebase exploration and research"
59
+ }
60
+ }
61
+
62
+ AVAILABLE_AGENTS = [
63
+ # Exploration
64
+ {
65
+ "id": "Explore",
66
+ "name": "Explore",
67
+ "category": "exploration",
68
+ "description": "Fast codebase exploration specialist. Finds files, searches code, answers questions about architecture.",
69
+ "tags": ["search", "codebase", "quick"],
70
+ "default_enabled": True,
71
+ "priority": 10
72
+ },
73
+ {
74
+ "id": "Plan",
75
+ "name": "Plan",
76
+ "category": "exploration",
77
+ "description": "Software architect for designing implementation plans. Creates step-by-step strategies.",
78
+ "tags": ["planning", "architecture", "strategy"],
79
+ "default_enabled": True,
80
+ "priority": 9
81
+ },
82
+
83
+ # Engineering - Core
84
+ {
85
+ "id": "general-purpose",
86
+ "name": "General Purpose",
87
+ "category": "engineering",
88
+ "description": "Multi-step task handler for complex research and code execution.",
89
+ "tags": ["general", "multi-step", "research"],
90
+ "default_enabled": True,
91
+ "priority": 10
92
+ },
93
+ {
94
+ "id": "Bash",
95
+ "name": "Bash Specialist",
96
+ "category": "engineering",
97
+ "description": "Command execution specialist for git, terminal operations, and system tasks.",
98
+ "tags": ["bash", "git", "terminal"],
99
+ "default_enabled": True,
100
+ "priority": 9
101
+ },
102
+ {
103
+ "id": "engineering-senior-developer",
104
+ "name": "Senior Developer",
105
+ "category": "engineering",
106
+ "description": "Premium implementation specialist. Masters Laravel/Livewire/FluxUI, advanced CSS, Three.js.",
107
+ "tags": ["laravel", "livewire", "css", "threejs"],
108
+ "default_enabled": True,
109
+ "priority": 8
110
+ },
111
+ {
112
+ "id": "engineering-ai-engineer",
113
+ "name": "AI/ML Engineer",
114
+ "category": "engineering",
115
+ "description": "Machine learning model development, deployment, and integration into production systems.",
116
+ "tags": ["ml", "ai", "models", "data-pipelines"],
117
+ "default_enabled": True,
118
+ "priority": 7
119
+ },
120
+ {
121
+ "id": "Backend Architect",
122
+ "name": "Backend Architect",
123
+ "category": "engineering",
124
+ "description": "Scalable system design, database architecture, API development, cloud infrastructure.",
125
+ "tags": ["backend", "api", "database", "cloud"],
126
+ "default_enabled": True,
127
+ "priority": 8
128
+ },
129
+ {
130
+ "id": "Frontend Developer",
131
+ "name": "Frontend Developer",
132
+ "category": "engineering",
133
+ "description": "Modern web technologies, React/Vue/Angular frameworks, UI implementation.",
134
+ "tags": ["frontend", "react", "vue", "angular", "ui"],
135
+ "default_enabled": True,
136
+ "priority": 8
137
+ },
138
+ {
139
+ "id": "kotlin-material3-dev",
140
+ "name": "Kotlin Material3 Dev",
141
+ "category": "engineering",
142
+ "description": "Kotlin development with Material3 UI, color schemes, theming, and visual design.",
143
+ "tags": ["kotlin", "android", "material3", "mobile"],
144
+ "default_enabled": False,
145
+ "priority": 6
146
+ },
147
+ {
148
+ "id": "Mobile App Builder",
149
+ "name": "Mobile App Builder",
150
+ "category": "engineering",
151
+ "description": "Native iOS/Android development and cross-platform frameworks.",
152
+ "tags": ["mobile", "ios", "android", "react-native", "flutter"],
153
+ "default_enabled": False,
154
+ "priority": 6
155
+ },
156
+ {
157
+ "id": "Rapid Prototyper",
158
+ "name": "Rapid Prototyper",
159
+ "category": "engineering",
160
+ "description": "Ultra-fast proof-of-concept and MVP creation.",
161
+ "tags": ["prototype", "mvp", "fast", "poc"],
162
+ "default_enabled": True,
163
+ "priority": 7
164
+ },
165
+ {
166
+ "id": "LSP/Index Engineer",
167
+ "name": "LSP/Index Engineer",
168
+ "category": "engineering",
169
+ "description": "Language Server Protocol specialist for code intelligence systems.",
170
+ "tags": ["lsp", "indexing", "code-intelligence"],
171
+ "default_enabled": False,
172
+ "priority": 5
173
+ },
174
+
175
+ # Feature Development
176
+ {
177
+ "id": "feature-dev:code-architect",
178
+ "name": "Code Architect",
179
+ "category": "engineering",
180
+ "description": "Designs feature architectures by analyzing codebase patterns and conventions.",
181
+ "tags": ["architecture", "patterns", "design"],
182
+ "default_enabled": True,
183
+ "priority": 8
184
+ },
185
+ {
186
+ "id": "feature-dev:code-explorer",
187
+ "name": "Code Explorer",
188
+ "category": "engineering",
189
+ "description": "Deep analysis of existing features, execution paths, and dependencies.",
190
+ "tags": ["analysis", "tracing", "dependencies"],
191
+ "default_enabled": True,
192
+ "priority": 8
193
+ },
194
+ {
195
+ "id": "feature-dev:code-reviewer",
196
+ "name": "Code Reviewer",
197
+ "category": "engineering",
198
+ "description": "Reviews code for bugs, security vulnerabilities, and quality issues.",
199
+ "tags": ["review", "security", "quality"],
200
+ "default_enabled": True,
201
+ "priority": 8
202
+ },
203
+
204
+ # Testing & QA
205
+ {
206
+ "id": "testing-reality-checker",
207
+ "name": "Reality Checker",
208
+ "category": "testing",
209
+ "description": "Evidence-based certification. Requires overwhelming proof for production readiness.",
210
+ "tags": ["testing", "verification", "strict"],
211
+ "default_enabled": True,
212
+ "priority": 8
213
+ },
214
+ {
215
+ "id": "EvidenceQA",
216
+ "name": "Evidence QA",
217
+ "category": "testing",
218
+ "description": "Screenshot-obsessed QA specialist. Requires visual proof for everything.",
219
+ "tags": ["qa", "screenshots", "visual-testing"],
220
+ "default_enabled": True,
221
+ "priority": 7
222
+ },
223
+ {
224
+ "id": "API Tester",
225
+ "name": "API Tester",
226
+ "category": "testing",
227
+ "description": "Comprehensive API validation, performance testing, and quality assurance.",
228
+ "tags": ["api", "testing", "performance"],
229
+ "default_enabled": True,
230
+ "priority": 7
231
+ },
232
+ {
233
+ "id": "Test Results Analyzer",
234
+ "name": "Test Results Analyzer",
235
+ "category": "testing",
236
+ "description": "Test result evaluation, quality metrics analysis, and actionable insights.",
237
+ "tags": ["analysis", "metrics", "insights"],
238
+ "default_enabled": True,
239
+ "priority": 6
240
+ },
241
+ {
242
+ "id": "Performance Benchmarker",
243
+ "name": "Performance Benchmarker",
244
+ "category": "testing",
245
+ "description": "Performance testing and optimization across all applications.",
246
+ "tags": ["performance", "benchmarking", "optimization"],
247
+ "default_enabled": True,
248
+ "priority": 7
249
+ },
250
+
251
+ # Operations
252
+ {
253
+ "id": "DevOps Automator",
254
+ "name": "DevOps Automator",
255
+ "category": "operations",
256
+ "description": "Infrastructure automation, CI/CD pipeline development, and cloud operations.",
257
+ "tags": ["devops", "ci-cd", "automation", "cloud"],
258
+ "default_enabled": True,
259
+ "priority": 8
260
+ },
261
+ {
262
+ "id": "Infrastructure Maintainer",
263
+ "name": "Infrastructure Maintainer",
264
+ "category": "operations",
265
+ "description": "System reliability, performance optimization, and technical operations.",
266
+ "tags": ["infrastructure", "reliability", "maintenance"],
267
+ "default_enabled": True,
268
+ "priority": 7
269
+ },
270
+ {
271
+ "id": "Workflow Optimizer",
272
+ "name": "Workflow Optimizer",
273
+ "category": "operations",
274
+ "description": "Process improvement specialist for maximum productivity and efficiency.",
275
+ "tags": ["workflow", "optimization", "automation"],
276
+ "default_enabled": False,
277
+ "priority": 5
278
+ },
279
+ {
280
+ "id": "Tool Evaluator",
281
+ "name": "Tool Evaluator",
282
+ "category": "operations",
283
+ "description": "Technology assessment specialist for tools, software, and platforms.",
284
+ "tags": ["evaluation", "tools", "assessment"],
285
+ "default_enabled": False,
286
+ "priority": 5
287
+ },
288
+
289
+ # Design & UX
290
+ {
291
+ "id": "ArchitectUX",
292
+ "name": "Architect UX",
293
+ "category": "design",
294
+ "description": "Technical architecture and UX specialist with CSS systems expertise.",
295
+ "tags": ["ux", "architecture", "css"],
296
+ "default_enabled": True,
297
+ "priority": 8
298
+ },
299
+ {
300
+ "id": "UI Designer",
301
+ "name": "UI Designer",
302
+ "category": "design",
303
+ "description": "Visual design systems, component libraries, and pixel-perfect interfaces.",
304
+ "tags": ["ui", "design-systems", "components"],
305
+ "default_enabled": True,
306
+ "priority": 8
307
+ },
308
+ {
309
+ "id": "UX Researcher",
310
+ "name": "UX Researcher",
311
+ "category": "design",
312
+ "description": "User behavior analysis, usability testing, and data-driven design insights.",
313
+ "tags": ["research", "usability", "user-behavior"],
314
+ "default_enabled": True,
315
+ "priority": 7
316
+ },
317
+ {
318
+ "id": "Brand Guardian",
319
+ "name": "Brand Guardian",
320
+ "category": "design",
321
+ "description": "Brand identity development, consistency maintenance, and strategic positioning.",
322
+ "tags": ["brand", "identity", "consistency"],
323
+ "default_enabled": False,
324
+ "priority": 5
325
+ },
326
+ {
327
+ "id": "design-visual-storyteller",
328
+ "name": "Visual Storyteller",
329
+ "category": "design",
330
+ "description": "Visual narratives, multimedia content, and brand storytelling through design.",
331
+ "tags": ["storytelling", "multimedia", "visual"],
332
+ "default_enabled": False,
333
+ "priority": 5
334
+ },
335
+ {
336
+ "id": "Whimsy Injector",
337
+ "name": "Whimsy Injector",
338
+ "category": "design",
339
+ "description": "Adds personality, delight, and playful elements to brand experiences.",
340
+ "tags": ["whimsy", "delight", "personality"],
341
+ "default_enabled": False,
342
+ "priority": 4
343
+ },
344
+
345
+ # Product
346
+ {
347
+ "id": "project-manager-senior",
348
+ "name": "Senior Project Manager",
349
+ "category": "product",
350
+ "description": "Converts specs to tasks with realistic scope and exact requirements.",
351
+ "tags": ["project-management", "specs", "tasks"],
352
+ "default_enabled": True,
353
+ "priority": 8
354
+ },
355
+ {
356
+ "id": "product-sprint-prioritizer",
357
+ "name": "Sprint Prioritizer",
358
+ "category": "product",
359
+ "description": "Agile sprint planning, feature prioritization, and resource allocation.",
360
+ "tags": ["agile", "sprint", "prioritization"],
361
+ "default_enabled": True,
362
+ "priority": 7
363
+ },
364
+ {
365
+ "id": "product-feedback-synthesizer",
366
+ "name": "Feedback Synthesizer",
367
+ "category": "product",
368
+ "description": "Collects and analyzes user feedback to extract actionable product insights.",
369
+ "tags": ["feedback", "analysis", "insights"],
370
+ "default_enabled": False,
371
+ "priority": 5
372
+ },
373
+ {
374
+ "id": "product-trend-researcher",
375
+ "name": "Trend Researcher",
376
+ "category": "product",
377
+ "description": "Market intelligence, emerging trends, and competitive analysis.",
378
+ "tags": ["trends", "market", "competitive"],
379
+ "default_enabled": False,
380
+ "priority": 5
381
+ },
382
+ {
383
+ "id": "Studio Operations",
384
+ "name": "Studio Operations",
385
+ "category": "product",
386
+ "description": "Day-to-day studio efficiency, process optimization, and resource coordination.",
387
+ "tags": ["operations", "efficiency", "coordination"],
388
+ "default_enabled": False,
389
+ "priority": 4
390
+ },
391
+ {
392
+ "id": "Project Shepherd",
393
+ "name": "Project Shepherd",
394
+ "category": "product",
395
+ "description": "Cross-functional project coordination and stakeholder alignment.",
396
+ "tags": ["coordination", "cross-functional", "stakeholders"],
397
+ "default_enabled": False,
398
+ "priority": 5
399
+ },
400
+ {
401
+ "id": "Experiment Tracker",
402
+ "name": "Experiment Tracker",
403
+ "category": "product",
404
+ "description": "Experiment design, A/B testing, and hypothesis validation.",
405
+ "tags": ["experiments", "ab-testing", "validation"],
406
+ "default_enabled": False,
407
+ "priority": 5
408
+ },
409
+ {
410
+ "id": "Studio Producer",
411
+ "name": "Studio Producer",
412
+ "category": "product",
413
+ "description": "High-level creative and technical project orchestration.",
414
+ "tags": ["production", "creative", "orchestration"],
415
+ "default_enabled": False,
416
+ "priority": 5
417
+ },
418
+
419
+ # Marketing
420
+ {
421
+ "id": "marketing-growth-hacker",
422
+ "name": "Growth Hacker",
423
+ "category": "marketing",
424
+ "description": "Rapid user acquisition through data-driven experimentation and viral loops.",
425
+ "tags": ["growth", "acquisition", "viral"],
426
+ "default_enabled": False,
427
+ "priority": 6
428
+ },
429
+ {
430
+ "id": "marketing-content-creator",
431
+ "name": "Content Creator",
432
+ "category": "marketing",
433
+ "description": "Multi-platform campaigns, editorial calendars, and brand storytelling.",
434
+ "tags": ["content", "campaigns", "storytelling"],
435
+ "default_enabled": False,
436
+ "priority": 5
437
+ },
438
+ {
439
+ "id": "marketing-social-media-strategist",
440
+ "name": "Social Media Strategist",
441
+ "category": "marketing",
442
+ "description": "Twitter, LinkedIn strategies with viral campaigns and thought leadership.",
443
+ "tags": ["social-media", "linkedin", "twitter"],
444
+ "default_enabled": False,
445
+ "priority": 5
446
+ },
447
+ {
448
+ "id": "marketing-instagram-curator",
449
+ "name": "Instagram Curator",
450
+ "category": "marketing",
451
+ "description": "Visual storytelling, community building, and multi-format content for Instagram.",
452
+ "tags": ["instagram", "visual", "community"],
453
+ "default_enabled": False,
454
+ "priority": 4
455
+ },
456
+ {
457
+ "id": "marketing-tiktok-strategist",
458
+ "name": "TikTok Strategist",
459
+ "category": "marketing",
460
+ "description": "Viral content creation, algorithm optimization, and TikTok community building.",
461
+ "tags": ["tiktok", "viral", "algorithm"],
462
+ "default_enabled": False,
463
+ "priority": 4
464
+ },
465
+ {
466
+ "id": "marketing-twitter-engager",
467
+ "name": "Twitter Engager",
468
+ "category": "marketing",
469
+ "description": "Real-time engagement, thought leadership, and community-driven growth.",
470
+ "tags": ["twitter", "engagement", "thought-leadership"],
471
+ "default_enabled": False,
472
+ "priority": 4
473
+ },
474
+ {
475
+ "id": "marketing-reddit-community-builder",
476
+ "name": "Reddit Community Builder",
477
+ "category": "marketing",
478
+ "description": "Authentic Reddit engagement, value-driven content, and community building.",
479
+ "tags": ["reddit", "community", "authentic"],
480
+ "default_enabled": False,
481
+ "priority": 4
482
+ },
483
+ {
484
+ "id": "App Store Optimizer",
485
+ "name": "App Store Optimizer",
486
+ "category": "marketing",
487
+ "description": "ASO, conversion rate optimization, and app discoverability.",
488
+ "tags": ["aso", "app-store", "conversion"],
489
+ "default_enabled": False,
490
+ "priority": 4
491
+ },
492
+
493
+ # Data & Analytics
494
+ {
495
+ "id": "data-analytics-reporter",
496
+ "name": "Analytics Reporter",
497
+ "category": "data",
498
+ "description": "Transforms raw data into actionable business insights and dashboards.",
499
+ "tags": ["analytics", "dashboards", "insights"],
500
+ "default_enabled": True,
501
+ "priority": 7
502
+ },
503
+ {
504
+ "id": "Analytics Reporter",
505
+ "name": "Analytics Reporter",
506
+ "category": "data",
507
+ "description": "Data analysis, KPI tracking, and strategic decision support.",
508
+ "tags": ["analytics", "kpi", "reporting"],
509
+ "default_enabled": True,
510
+ "priority": 7
511
+ },
512
+ {
513
+ "id": "Finance Tracker",
514
+ "name": "Finance Tracker",
515
+ "category": "data",
516
+ "description": "Financial planning, budget management, and performance analysis.",
517
+ "tags": ["finance", "budget", "planning"],
518
+ "default_enabled": False,
519
+ "priority": 5
520
+ },
521
+ {
522
+ "id": "Executive Summary Generator",
523
+ "name": "Executive Summary Generator",
524
+ "category": "data",
525
+ "description": "McKinsey-style executive summaries with SCQA and Pyramid Principle frameworks.",
526
+ "tags": ["executive", "summary", "frameworks"],
527
+ "default_enabled": False,
528
+ "priority": 5
529
+ },
530
+ {
531
+ "id": "Legal Compliance Checker",
532
+ "name": "Legal Compliance Checker",
533
+ "category": "data",
534
+ "description": "Ensures compliance with laws, regulations, and industry standards.",
535
+ "tags": ["legal", "compliance", "regulations"],
536
+ "default_enabled": False,
537
+ "priority": 4
538
+ },
539
+ {
540
+ "id": "Support Responder",
541
+ "name": "Support Responder",
542
+ "category": "data",
543
+ "description": "Customer support, issue resolution, and multi-channel service.",
544
+ "tags": ["support", "customer-service", "issues"],
545
+ "default_enabled": False,
546
+ "priority": 4
547
+ },
548
+
549
+ # XR & Spatial
550
+ {
551
+ "id": "XR Interface Architect",
552
+ "name": "XR Interface Architect",
553
+ "category": "xr",
554
+ "description": "Spatial interaction design for immersive AR/VR/XR environments.",
555
+ "tags": ["xr", "spatial", "interaction"],
556
+ "default_enabled": False,
557
+ "priority": 6
558
+ },
559
+ {
560
+ "id": "XR Immersive Developer",
561
+ "name": "XR Immersive Developer",
562
+ "category": "xr",
563
+ "description": "WebXR and browser-based AR/VR/XR applications.",
564
+ "tags": ["webxr", "browser", "immersive"],
565
+ "default_enabled": False,
566
+ "priority": 6
567
+ },
568
+ {
569
+ "id": "XR Cockpit Interaction Specialist",
570
+ "name": "XR Cockpit Specialist",
571
+ "category": "xr",
572
+ "description": "Cockpit-based control systems for XR environments.",
573
+ "tags": ["cockpit", "controls", "xr"],
574
+ "default_enabled": False,
575
+ "priority": 5
576
+ },
577
+ {
578
+ "id": "visionos-spatial-engineer",
579
+ "name": "VisionOS Spatial Engineer",
580
+ "category": "xr",
581
+ "description": "Native visionOS spatial computing with SwiftUI and Liquid Glass design.",
582
+ "tags": ["visionos", "swiftui", "spatial"],
583
+ "default_enabled": False,
584
+ "priority": 6
585
+ },
586
+ {
587
+ "id": "terminal-integration-specialist",
588
+ "name": "Terminal Integration Specialist",
589
+ "category": "xr",
590
+ "description": "Terminal emulation, SwiftTerm integration, and VT100/xterm standards.",
591
+ "tags": ["terminal", "swiftterm", "integration"],
592
+ "default_enabled": False,
593
+ "priority": 5
594
+ },
595
+ {
596
+ "id": "macOS Spatial/Metal Engineer",
597
+ "name": "macOS Metal Engineer",
598
+ "category": "xr",
599
+ "description": "Native Swift and Metal for high-performance 3D rendering on macOS and Vision Pro.",
600
+ "tags": ["metal", "swift", "3d", "macos"],
601
+ "default_enabled": False,
602
+ "priority": 6
603
+ },
604
+
605
+ # Special
606
+ {
607
+ "id": "agents-orchestrator",
608
+ "name": "Agents Orchestrator",
609
+ "category": "operations",
610
+ "description": "Autonomous pipeline manager that orchestrates the entire development workflow.",
611
+ "tags": ["orchestration", "pipeline", "automation"],
612
+ "default_enabled": True,
613
+ "priority": 9
614
+ },
615
+ {
616
+ "id": "claude-code-guide",
617
+ "name": "Claude Code Guide",
618
+ "category": "exploration",
619
+ "description": "Expert on Claude Code features, hooks, MCP servers, settings, and integrations.",
620
+ "tags": ["claude-code", "help", "guide"],
621
+ "default_enabled": True,
622
+ "priority": 8
623
+ }
624
+ ]
625
+
626
+ # MCP Servers
627
+ AVAILABLE_MCPS = [
628
+ {
629
+ "id": "claude-memory",
630
+ "name": "Claude Memory",
631
+ "description": "Semantic memory storage and retrieval for persistent context.",
632
+ "icon": "brain",
633
+ "color": "#a371f7",
634
+ "default_enabled": True
635
+ },
636
+ {
637
+ "id": "context7",
638
+ "name": "Context7",
639
+ "description": "Up-to-date documentation and API references from the web.",
640
+ "icon": "book",
641
+ "color": "#58a6ff",
642
+ "default_enabled": True
643
+ },
644
+ {
645
+ "id": "filesystem",
646
+ "name": "Filesystem",
647
+ "description": "Enhanced file system operations and management.",
648
+ "icon": "folder",
649
+ "color": "#d29922",
650
+ "default_enabled": False
651
+ },
652
+ {
653
+ "id": "github",
654
+ "name": "GitHub",
655
+ "description": "GitHub API integration for repos, issues, and PRs.",
656
+ "icon": "github",
657
+ "color": "#8b949e",
658
+ "default_enabled": False
659
+ },
660
+ {
661
+ "id": "postgres",
662
+ "name": "PostgreSQL",
663
+ "description": "Direct PostgreSQL database access and queries.",
664
+ "icon": "database",
665
+ "color": "#336791",
666
+ "default_enabled": False
667
+ },
668
+ {
669
+ "id": "puppeteer",
670
+ "name": "Puppeteer",
671
+ "description": "Browser automation and web scraping capabilities.",
672
+ "icon": "globe",
673
+ "color": "#3fb950",
674
+ "default_enabled": False
675
+ }
676
+ ]
677
+
678
+ # Hooks
679
+ AVAILABLE_HOOKS = [
680
+ {
681
+ "id": "grounding-hook",
682
+ "name": "Grounding Hook",
683
+ "description": "Injects context and anchors before every response to prevent hallucinations.",
684
+ "trigger": "UserPromptSubmit",
685
+ "icon": "anchor",
686
+ "color": "#a371f7",
687
+ "default_enabled": True
688
+ },
689
+ {
690
+ "id": "pre-tool-check",
691
+ "name": "Pre-Tool Check",
692
+ "description": "Blocks actions that violate anchors or entity registry BEFORE execution.",
693
+ "trigger": "PreToolUse",
694
+ "icon": "shield",
695
+ "color": "#d29922",
696
+ "default_enabled": True
697
+ },
698
+ {
699
+ "id": "detect-correction",
700
+ "name": "Detect Correction",
701
+ "description": "Auto-detects when user corrects Claude and creates anchors.",
702
+ "trigger": "UserPromptSubmit",
703
+ "icon": "check-circle",
704
+ "color": "#3fb950",
705
+ "default_enabled": True
706
+ },
707
+ {
708
+ "id": "log-tool-use",
709
+ "name": "Log Tool Use",
710
+ "description": "Logs all tool usage to the timeline for tracking.",
711
+ "trigger": "PostToolUse",
712
+ "icon": "file-text",
713
+ "color": "#58a6ff",
714
+ "default_enabled": True
715
+ },
716
+ {
717
+ "id": "auto-detect-response",
718
+ "name": "Auto-Detect Response",
719
+ "description": "Extracts decisions and observations from Claude's responses using LLM.",
720
+ "trigger": "Stop",
721
+ "icon": "brain",
722
+ "color": "#f85149",
723
+ "default_enabled": True
724
+ },
725
+ {
726
+ "id": "log-user-request",
727
+ "name": "Log User Request",
728
+ "description": "Logs user requests to the timeline.",
729
+ "trigger": "UserPromptSubmit",
730
+ "icon": "message-circle",
731
+ "color": "#8b949e",
732
+ "default_enabled": True
733
+ }
734
+ ]
735
+
736
+
737
+ def get_agents_by_category():
738
+ """Group agents by category."""
739
+ result = {}
740
+ for agent in AVAILABLE_AGENTS:
741
+ cat = agent["category"]
742
+ if cat not in result:
743
+ result[cat] = []
744
+ result[cat].append(agent)
745
+ return result
746
+
747
+
748
+ def get_agent_by_id(agent_id: str):
749
+ """Get agent by ID."""
750
+ for agent in AVAILABLE_AGENTS:
751
+ if agent["id"] == agent_id:
752
+ return agent
753
+ return None