monomind 1.10.47 → 1.10.55

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 (414) hide show
  1. package/.claude/agents/optimization/benchmark-suite.md +2 -0
  2. package/.claude/agents/optimization/load-balancer.md +2 -0
  3. package/.claude/agents/optimization/performance-monitor.md +2 -0
  4. package/.claude/agents/optimization/resource-allocator.md +3 -1
  5. package/.claude/agents/optimization/topology-optimizer.md +2 -0
  6. package/.claude/commands/mastermind/_repeat.md +21 -0
  7. package/.claude/commands/mastermind/_taskfile.md +235 -0
  8. package/.claude/commands/mastermind/adr.md +11 -0
  9. package/.claude/commands/mastermind/approve.md +94 -0
  10. package/.claude/commands/mastermind/autodev.md +32 -0
  11. package/.claude/commands/mastermind/budget.md +7 -0
  12. package/.claude/commands/mastermind/code-review.md +317 -0
  13. package/.claude/commands/mastermind/createorg.md +40 -1
  14. package/.claude/commands/mastermind/createtask.md +383 -0
  15. package/.claude/commands/mastermind/debug.md +22 -0
  16. package/.claude/commands/mastermind/design.md +20 -0
  17. package/.claude/commands/mastermind/do.md +526 -0
  18. package/.claude/commands/mastermind/execute.md +20 -0
  19. package/.claude/commands/mastermind/finish.md +20 -0
  20. package/.claude/commands/mastermind/graph-status.md +7 -0
  21. package/.claude/commands/mastermind/help.md +118 -0
  22. package/.claude/commands/mastermind/ideate.md +261 -0
  23. package/.claude/commands/mastermind/improve.md +345 -0
  24. package/.claude/commands/mastermind/loops.md +7 -0
  25. package/.claude/commands/mastermind/master.md +186 -6
  26. package/.claude/commands/mastermind/memory.md +230 -0
  27. package/.claude/commands/mastermind/plan.md +26 -0
  28. package/.claude/commands/mastermind/receive-review.md +20 -0
  29. package/.claude/commands/mastermind/repeat.md +257 -0
  30. package/.claude/commands/mastermind/runorg.md +3 -0
  31. package/.claude/commands/mastermind/skill-builder.md +20 -0
  32. package/.claude/commands/mastermind/specialagents.md +125 -0
  33. package/.claude/commands/mastermind/swarm.md +161 -0
  34. package/.claude/commands/mastermind/taskdev.md +26 -0
  35. package/.claude/commands/mastermind/tdd.md +22 -0
  36. package/.claude/commands/mastermind/techport.md +4 -0
  37. package/.claude/commands/mastermind/understand.md +139 -0
  38. package/.claude/commands/mastermind/verify.md +22 -0
  39. package/.claude/commands/mastermind/worktree.md +20 -0
  40. package/.claude/commands/monomind/do.md +52 -0
  41. package/.claude/commands/monomind/improve.md +2 -0
  42. package/.claude/helpers/handlers/graph-status-handler.cjs +2 -1
  43. package/.claude/helpers/handlers/route-handler.cjs +61 -11
  44. package/.claude/helpers/hook-handler.cjs +19 -0
  45. package/.claude/helpers/skill-registry.json +122 -51
  46. package/.claude/helpers/statusline.cjs +1 -1
  47. package/.claude/scheduled_tasks.lock +1 -0
  48. package/.claude/skills/agent-browser-testing/SKILL.md +522 -152
  49. package/.claude/skills/github-issue-triage/SKILL.md +354 -0
  50. package/.claude/skills/github-repo-recap/SKILL.md +207 -0
  51. package/.claude/skills/mastermind/_delegation.md +83 -0
  52. package/.claude/skills/mastermind/_protocol.md +14 -0
  53. package/.claude/skills/mastermind/approve.md +15 -7
  54. package/.claude/skills/mastermind/autodev.md +534 -0
  55. package/.claude/skills/mastermind/createorg.md +21 -5
  56. package/.claude/skills/mastermind/debug.md +232 -0
  57. package/.claude/skills/mastermind/design.md +187 -0
  58. package/.claude/skills/mastermind/execute.md +104 -0
  59. package/.claude/skills/mastermind/finish.md +251 -0
  60. package/.claude/skills/mastermind/plan.md +180 -0
  61. package/.claude/skills/mastermind/receive-review.md +213 -0
  62. package/.claude/skills/mastermind/runorg.md +23 -8
  63. package/.claude/skills/mastermind/skill-builder.md +274 -0
  64. package/.claude/skills/mastermind/taskdev.md +307 -0
  65. package/.claude/skills/mastermind/tdd.md +394 -0
  66. package/.claude/skills/mastermind/verify.md +196 -0
  67. package/.claude/skills/mastermind/worktree.md +160 -132
  68. package/.claude-plugin/docs/QUICKSTART.md +0 -3
  69. package/.claude-plugin/docs/STRUCTURE.md +1 -5
  70. package/.claude-plugin/scripts/verify.sh +0 -6
  71. package/README.md +320 -253
  72. package/package.json +1 -1
  73. package/packages/@monomind/cli/README.md +320 -253
  74. package/packages/@monomind/cli/dist/src/commands/analyze.js +9 -2
  75. package/packages/@monomind/cli/dist/src/commands/completions.js +1 -1
  76. package/packages/@monomind/cli/dist/src/commands/guidance.js +7 -7
  77. package/packages/@monomind/cli/dist/src/commands/hooks.js +16 -3
  78. package/packages/@monomind/cli/dist/src/commands/index.d.ts +3 -2
  79. package/packages/@monomind/cli/dist/src/commands/index.js +7 -0
  80. package/packages/@monomind/cli/dist/src/commands/init.js +47 -13
  81. package/packages/@monomind/cli/dist/src/commands/neural.js +100 -14
  82. package/packages/@monomind/cli/dist/src/commands/platforms.d.ts +11 -0
  83. package/packages/@monomind/cli/dist/src/commands/platforms.js +195 -0
  84. package/packages/@monomind/cli/dist/src/commands/update.js +6 -6
  85. package/packages/@monomind/cli/dist/src/init/executor.js +28 -0
  86. package/packages/@monomind/cli/dist/src/init/statusline-generator.js +1 -1
  87. package/packages/@monomind/cli/dist/src/init/types.d.ts +1 -0
  88. package/packages/@monomind/cli/dist/src/mcp-server.js +92 -0
  89. package/packages/@monomind/cli/dist/src/mcp-tools/hive-mind-tools.js +52 -0
  90. package/packages/@monomind/cli/dist/src/mcp-tools/hooks-tools.js +106 -5
  91. package/packages/@monomind/cli/dist/src/mcp-tools/index.d.ts +0 -5
  92. package/packages/@monomind/cli/dist/src/mcp-tools/index.js +0 -5
  93. package/packages/@monomind/cli/dist/src/mcp-tools/monograph-tools.js +507 -5587
  94. package/packages/@monomind/cli/dist/src/mcp-tools/neural-tools.js +64 -4
  95. package/packages/@monomind/cli/dist/src/mcp-tools/security-tools.js +4 -4
  96. package/packages/@monomind/cli/dist/src/memory/intelligence.d.ts +2 -2
  97. package/packages/@monomind/cli/dist/src/memory/intelligence.js +108 -3
  98. package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +1 -1
  99. package/packages/@monomind/cli/dist/src/memory/sona-optimizer.d.ts +1 -10
  100. package/packages/@monomind/cli/dist/src/memory/sona-optimizer.js +0 -46
  101. package/packages/@monomind/cli/dist/src/runtime/headless.js +3 -3
  102. package/packages/@monomind/cli/dist/src/ruvector/diff-classifier.d.ts +0 -2
  103. package/packages/@monomind/cli/dist/src/ruvector/diff-classifier.js +2 -14
  104. package/packages/@monomind/cli/dist/src/ruvector/index.d.ts +26 -9
  105. package/packages/@monomind/cli/dist/src/ruvector/index.js +3 -21
  106. package/packages/@monomind/cli/dist/src/ruvector/ruvllm-wasm.js +2 -2
  107. package/packages/@monomind/cli/dist/src/types.d.ts +0 -15
  108. package/packages/@monomind/cli/dist/src/types.js +0 -18
  109. package/packages/@monomind/cli/dist/src/update/index.js +1 -1
  110. package/packages/@monomind/cli/dist/src/update/validator.js +8 -8
  111. package/packages/@monomind/cli/package.json +2 -2
  112. package/scripts/generate-agent-avatars.mjs +500 -0
  113. package/.claude/agents/academic/academic-anthropologist.md +0 -126
  114. package/.claude/agents/academic/academic-geographer.md +0 -128
  115. package/.claude/agents/academic/academic-historian.md +0 -124
  116. package/.claude/agents/academic/academic-narratologist.md +0 -119
  117. package/.claude/agents/academic/academic-psychologist.md +0 -119
  118. package/.claude/agents/analysis/analyze-code-quality.md +0 -58
  119. package/.claude/agents/analysis/code-analyzer.md +0 -189
  120. package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -58
  121. package/.claude/agents/consensus/performance-benchmarker.md +0 -831
  122. package/.claude/agents/data/ml/data-ml-model.md +0 -76
  123. package/.claude/agents/development/dev-backend-api.md +0 -178
  124. package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -52
  125. package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -63
  126. package/.claude/agents/game-development/blender/blender-addon-engineer.md +0 -235
  127. package/.claude/agents/game-development/game-audio-engineer.md +0 -265
  128. package/.claude/agents/game-development/game-designer.md +0 -168
  129. package/.claude/agents/game-development/godot/godot-gameplay-scripter.md +0 -335
  130. package/.claude/agents/game-development/godot/godot-multiplayer-engineer.md +0 -298
  131. package/.claude/agents/game-development/godot/godot-shader-developer.md +0 -267
  132. package/.claude/agents/game-development/level-designer.md +0 -209
  133. package/.claude/agents/game-development/narrative-designer.md +0 -244
  134. package/.claude/agents/game-development/roblox-studio/roblox-avatar-creator.md +0 -298
  135. package/.claude/agents/game-development/roblox-studio/roblox-experience-designer.md +0 -306
  136. package/.claude/agents/game-development/roblox-studio/roblox-systems-scripter.md +0 -326
  137. package/.claude/agents/game-development/technical-artist.md +0 -230
  138. package/.claude/agents/game-development/unity/unity-architect.md +0 -272
  139. package/.claude/agents/game-development/unity/unity-editor-tool-developer.md +0 -311
  140. package/.claude/agents/game-development/unity/unity-multiplayer-engineer.md +0 -322
  141. package/.claude/agents/game-development/unity/unity-shader-graph-artist.md +0 -270
  142. package/.claude/agents/game-development/unreal-engine/unreal-multiplayer-architect.md +0 -314
  143. package/.claude/agents/game-development/unreal-engine/unreal-systems-engineer.md +0 -311
  144. package/.claude/agents/game-development/unreal-engine/unreal-technical-artist.md +0 -257
  145. package/.claude/agents/game-development/unreal-engine/unreal-world-builder.md +0 -274
  146. package/.claude/agents/github/release-swarm.md +0 -597
  147. package/.claude/agents/goal/agent.md +0 -804
  148. package/.claude/agents/goal/code-goal-planner.md +0 -445
  149. package/.claude/agents/marketing/marketing-ai-citation-strategist.md +0 -171
  150. package/.claude/agents/marketing/marketing-app-store-optimizer.md +0 -322
  151. package/.claude/agents/marketing/marketing-baidu-seo-specialist.md +0 -227
  152. package/.claude/agents/marketing/marketing-bilibili-content-strategist.md +0 -200
  153. package/.claude/agents/marketing/marketing-book-co-author.md +0 -111
  154. package/.claude/agents/marketing/marketing-carousel-growth-engine.md +0 -200
  155. package/.claude/agents/marketing/marketing-china-ecommerce-operator.md +0 -284
  156. package/.claude/agents/marketing/marketing-content-creator.md +0 -67
  157. package/.claude/agents/marketing/marketing-cross-border-ecommerce.md +0 -260
  158. package/.claude/agents/marketing/marketing-douyin-strategist.md +0 -150
  159. package/.claude/agents/marketing/marketing-growth-hacker.md +0 -54
  160. package/.claude/agents/marketing/marketing-instagram-curator.md +0 -114
  161. package/.claude/agents/marketing/marketing-kuaishou-strategist.md +0 -224
  162. package/.claude/agents/marketing/marketing-linkedin-content-creator.md +0 -215
  163. package/.claude/agents/marketing/marketing-livestream-commerce-coach.md +0 -306
  164. package/.claude/agents/marketing/marketing-podcast-strategist.md +0 -278
  165. package/.claude/agents/marketing/marketing-private-domain-operator.md +0 -309
  166. package/.claude/agents/marketing/marketing-reddit-community-builder.md +0 -124
  167. package/.claude/agents/marketing/marketing-seo-specialist.md +0 -279
  168. package/.claude/agents/marketing/marketing-short-video-editing-coach.md +0 -413
  169. package/.claude/agents/marketing/marketing-social-media-strategist.md +0 -125
  170. package/.claude/agents/marketing/marketing-tiktok-strategist.md +0 -126
  171. package/.claude/agents/marketing/marketing-twitter-engager.md +0 -127
  172. package/.claude/agents/marketing/marketing-wechat-official-account.md +0 -146
  173. package/.claude/agents/marketing/marketing-weibo-strategist.md +0 -241
  174. package/.claude/agents/marketing/marketing-xiaohongshu-specialist.md +0 -139
  175. package/.claude/agents/marketing/marketing-zhihu-strategist.md +0 -163
  176. package/.claude/agents/neural/safla-neural.md +0 -74
  177. package/.claude/agents/paid-media/paid-media-auditor.md +0 -71
  178. package/.claude/agents/paid-media/paid-media-creative-strategist.md +0 -71
  179. package/.claude/agents/paid-media/paid-media-paid-social-strategist.md +0 -71
  180. package/.claude/agents/paid-media/paid-media-ppc-strategist.md +0 -71
  181. package/.claude/agents/paid-media/paid-media-programmatic-buyer.md +0 -71
  182. package/.claude/agents/paid-media/paid-media-search-query-analyst.md +0 -71
  183. package/.claude/agents/paid-media/paid-media-tracking-specialist.md +0 -71
  184. package/.claude/agents/payments/agentic-payments.md +0 -126
  185. package/.claude/agents/product/product-behavioral-nudge-engine.md +0 -81
  186. package/.claude/agents/product/product-feedback-synthesizer.md +0 -119
  187. package/.claude/agents/product/product-manager.md +0 -469
  188. package/.claude/agents/product/product-sprint-prioritizer.md +0 -154
  189. package/.claude/agents/product/product-trend-researcher.md +0 -159
  190. package/.claude/agents/project-management/project-management-experiment-tracker.md +0 -199
  191. package/.claude/agents/project-management/project-management-jira-workflow-steward.md +0 -231
  192. package/.claude/agents/project-management/project-management-project-shepherd.md +0 -195
  193. package/.claude/agents/project-management/project-management-studio-operations.md +0 -201
  194. package/.claude/agents/project-management/project-management-studio-producer.md +0 -204
  195. package/.claude/agents/project-management/project-manager-senior.md +0 -136
  196. package/.claude/agents/reasoning/agent.md +0 -804
  197. package/.claude/agents/reasoning/goal-planner.md +0 -73
  198. package/.claude/agents/sales/sales-account-strategist.md +0 -228
  199. package/.claude/agents/sales/sales-coach.md +0 -272
  200. package/.claude/agents/sales/sales-deal-strategist.md +0 -181
  201. package/.claude/agents/sales/sales-discovery-coach.md +0 -226
  202. package/.claude/agents/sales/sales-engineer.md +0 -183
  203. package/.claude/agents/sales/sales-outbound-strategist.md +0 -202
  204. package/.claude/agents/sales/sales-pipeline-analyst.md +0 -268
  205. package/.claude/agents/sales/sales-proposal-strategist.md +0 -218
  206. package/.claude/agents/sona/sona-learning-optimizer.md +0 -65
  207. package/.claude/agents/spatial-computing/macos-spatial-metal-engineer.md +0 -338
  208. package/.claude/agents/spatial-computing/terminal-integration-specialist.md +0 -71
  209. package/.claude/agents/spatial-computing/visionos-spatial-engineer.md +0 -55
  210. package/.claude/agents/specialists/memory-specialist.md +0 -298
  211. package/.claude/agents/specialists/performance-engineer.md +0 -387
  212. package/.claude/agents/specialists/queen-coordinator.md +0 -67
  213. package/.claude/agents/specialists/security-architect.md +0 -154
  214. package/.claude/agents/specialized/accounts-payable-agent.md +0 -186
  215. package/.claude/agents/specialized/corporate-training-designer.md +0 -193
  216. package/.claude/agents/specialized/data-consolidation-agent.md +0 -61
  217. package/.claude/agents/specialized/government-digital-presales-consultant.md +0 -364
  218. package/.claude/agents/specialized/healthcare-marketing-compliance.md +0 -396
  219. package/.claude/agents/specialized/recruitment-specialist.md +0 -510
  220. package/.claude/agents/specialized/report-distribution-agent.md +0 -66
  221. package/.claude/agents/specialized/sales-data-extraction-agent.md +0 -68
  222. package/.claude/agents/specialized/specialized-french-consulting-market.md +0 -193
  223. package/.claude/agents/specialized/specialized-korean-business-navigator.md +0 -217
  224. package/.claude/agents/specialized/specialized-salesforce-architect.md +0 -181
  225. package/.claude/agents/specialized/study-abroad-advisor.md +0 -283
  226. package/.claude/agents/specialized/supply-chain-strategist.md +0 -583
  227. package/.claude/agents/sublinear/consensus-coordinator.md +0 -333
  228. package/.claude/agents/sublinear/matrix-optimizer.md +0 -180
  229. package/.claude/agents/sublinear/pagerank-analyzer.md +0 -295
  230. package/.claude/agents/sublinear/performance-optimizer.md +0 -363
  231. package/.claude/agents/sublinear/trading-predictor.md +0 -242
  232. package/.claude/agents/support/support-analytics-reporter.md +0 -366
  233. package/.claude/agents/support/support-executive-summary-generator.md +0 -213
  234. package/.claude/agents/support/support-finance-tracker.md +0 -443
  235. package/.claude/agents/support/support-infrastructure-maintainer.md +0 -619
  236. package/.claude/agents/support/support-legal-compliance-checker.md +0 -589
  237. package/.claude/agents/support/support-support-responder.md +0 -586
  238. package/.claude/agents/swarm/adaptive-coordinator.md +0 -364
  239. package/.claude/agents/swarm/hierarchical-coordinator.md +0 -318
  240. package/.claude/agents/templates/github-pr-manager.md +0 -155
  241. package/.claude/agents/templates/memory-coordinator.md +0 -163
  242. package/.claude/agents/templates/migration-plan.md +0 -724
  243. package/.claude/agents/templates/orchestrator-task.md +0 -120
  244. package/.claude/agents/templates/performance-analyzer.md +0 -179
  245. package/.claude/agents/templates/sparc-coordinator.md +0 -163
  246. package/.claude/agents/testing/testing-reality-checker.md +0 -237
  247. package/.claude/checkpoints/1767754460.json +0 -8
  248. package/.claude/commands/analysis/token-efficiency.md +0 -42
  249. package/.claude/commands/optimization/README.md +0 -73
  250. package/.claude/commands/optimization/parallel-execution.md +0 -76
  251. package/.claude/commands/swarm/swarm-analysis.md +0 -62
  252. package/.claude/commands/swarm/swarm-background.md +0 -65
  253. package/.claude/commands/swarm/swarm-modes.md +0 -67
  254. package/.claude/commands/swarm/swarm-monitor.md +0 -54
  255. package/.claude/commands/swarm/swarm-status.md +0 -44
  256. package/.claude/commands/swarm/swarm-strategies.md +0 -76
  257. package/.claude/commands/training/model-update.md +0 -78
  258. package/.claude/commands/training/pattern-learn.md +0 -69
  259. package/.claude/commands/training/specialization.md +0 -92
  260. package/.claude/commands/verify/check.md +0 -106
  261. package/.claude/commands/verify/start.md +0 -105
  262. package/.claude/config/v1-dependency-optimization.json +0 -266
  263. package/.claude/config/v1-performance-targets.json +0 -251
  264. package/.claude/helpers/README.md +0 -105
  265. package/.claude/helpers/context-persistence-hook.mjs +0 -1988
  266. package/.claude/helpers/intelligence.cjs +0 -247
  267. package/.claude/helpers/learning-service.mjs +0 -1302
  268. package/.claude/helpers/memory-palace.cjs +0 -461
  269. package/.claude/helpers/memory.cjs +0 -84
  270. package/.claude/helpers/metrics-db.mjs +0 -488
  271. package/.claude/helpers/router.cjs +0 -559
  272. package/.claude/helpers/session.cjs +0 -126
  273. package/.claude/helpers/swarm-hooks.sh +0 -761
  274. package/.claude/helpers/toggle-statusline.cjs +0 -58
  275. package/.claude/helpers/token-tracker.cjs +0 -934
  276. package/.claude/skills/agentdb-advanced/SKILL.md +0 -549
  277. package/.claude/skills/agentdb-learning/SKILL.md +0 -544
  278. package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -337
  279. package/.claude/skills/agentdb-optimization/SKILL.md +0 -508
  280. package/.claude/skills/agentdb-vector-search/SKILL.md +0 -335
  281. package/.claude/skills/agentic-integration/SKILL.md +0 -265
  282. package/.claude/skills/cli-modernization/SKILL.md +0 -950
  283. package/.claude/skills/core-implementation/SKILL.md +0 -892
  284. package/.claude/skills/ddd-architecture/SKILL.md +0 -444
  285. package/.claude/skills/github-code-review/SKILL.md +0 -1147
  286. package/.claude/skills/github-multi-repo/SKILL.md +0 -912
  287. package/.claude/skills/github-project-management/SKILL.md +0 -1245
  288. package/.claude/skills/github-release-management/SKILL.md +0 -1118
  289. package/.claude/skills/github-workflow-automation/SKILL.md +0 -1107
  290. package/.claude/skills/mcp-optimization/SKILL.md +0 -837
  291. package/.claude/skills/memory-unification/SKILL.md +0 -196
  292. package/.claude/skills/performance-optimization/SKILL.md +0 -416
  293. package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -444
  294. package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -199
  295. package/.claude/skills/security-hardening/SKILL.md +0 -101
  296. package/.claude/skills/stream-chain/SKILL.md +0 -560
  297. package/.claude/skills/swarm-coordination/SKILL.md +0 -451
  298. package/.claude/statusline-command.sh +0 -176
  299. package/.claude/statusline.mjs +0 -109
  300. package/.claude/statusline.sh +0 -431
  301. package/packages/@monomind/cli/bundled-graph/dist/src/analyze.d.ts +0 -32
  302. package/packages/@monomind/cli/bundled-graph/dist/src/analyze.d.ts.map +0 -1
  303. package/packages/@monomind/cli/bundled-graph/dist/src/analyze.js +0 -297
  304. package/packages/@monomind/cli/bundled-graph/dist/src/analyze.js.map +0 -1
  305. package/packages/@monomind/cli/bundled-graph/dist/src/build.d.ts +0 -8
  306. package/packages/@monomind/cli/bundled-graph/dist/src/build.d.ts.map +0 -1
  307. package/packages/@monomind/cli/bundled-graph/dist/src/build.js.map +0 -1
  308. package/packages/@monomind/cli/bundled-graph/dist/src/cache.d.ts +0 -12
  309. package/packages/@monomind/cli/bundled-graph/dist/src/cache.d.ts.map +0 -1
  310. package/packages/@monomind/cli/bundled-graph/dist/src/cache.js +0 -43
  311. package/packages/@monomind/cli/bundled-graph/dist/src/cache.js.map +0 -1
  312. package/packages/@monomind/cli/bundled-graph/dist/src/cluster.d.ts +0 -5
  313. package/packages/@monomind/cli/bundled-graph/dist/src/cluster.d.ts.map +0 -1
  314. package/packages/@monomind/cli/bundled-graph/dist/src/cluster.js.map +0 -1
  315. package/packages/@monomind/cli/bundled-graph/dist/src/detect.d.ts +0 -21
  316. package/packages/@monomind/cli/bundled-graph/dist/src/detect.d.ts.map +0 -1
  317. package/packages/@monomind/cli/bundled-graph/dist/src/detect.js +0 -195
  318. package/packages/@monomind/cli/bundled-graph/dist/src/detect.js.map +0 -1
  319. package/packages/@monomind/cli/bundled-graph/dist/src/export.d.ts +0 -21
  320. package/packages/@monomind/cli/bundled-graph/dist/src/export.d.ts.map +0 -1
  321. package/packages/@monomind/cli/bundled-graph/dist/src/export.js +0 -68
  322. package/packages/@monomind/cli/bundled-graph/dist/src/export.js.map +0 -1
  323. package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.d.ts +0 -20
  324. package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.d.ts.map +0 -1
  325. package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.js +0 -158
  326. package/packages/@monomind/cli/bundled-graph/dist/src/extract/index.js.map +0 -1
  327. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.d.ts +0 -3
  328. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.d.ts.map +0 -1
  329. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.js +0 -88
  330. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/c.js.map +0 -1
  331. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.d.ts +0 -3
  332. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.d.ts.map +0 -1
  333. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.js +0 -121
  334. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/cpp.js.map +0 -1
  335. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.d.ts +0 -3
  336. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.d.ts.map +0 -1
  337. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.js +0 -121
  338. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/csharp.js.map +0 -1
  339. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.d.ts +0 -3
  340. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.d.ts.map +0 -1
  341. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.js +0 -181
  342. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/go.js.map +0 -1
  343. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.d.ts +0 -3
  344. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.d.ts.map +0 -1
  345. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.js +0 -117
  346. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/java.js.map +0 -1
  347. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.d.ts +0 -3
  348. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.d.ts.map +0 -1
  349. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.js +0 -112
  350. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/kotlin.js.map +0 -1
  351. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.d.ts +0 -3
  352. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.d.ts.map +0 -1
  353. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.js +0 -130
  354. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/php.js.map +0 -1
  355. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.d.ts +0 -3
  356. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.d.ts.map +0 -1
  357. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.js +0 -230
  358. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/python.js.map +0 -1
  359. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.d.ts +0 -3
  360. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.d.ts.map +0 -1
  361. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.js +0 -120
  362. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/ruby.js.map +0 -1
  363. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.d.ts +0 -3
  364. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.d.ts.map +0 -1
  365. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.js +0 -195
  366. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/rust.js.map +0 -1
  367. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.d.ts +0 -3
  368. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.d.ts.map +0 -1
  369. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.js +0 -110
  370. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/scala.js.map +0 -1
  371. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.d.ts +0 -3
  372. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.d.ts.map +0 -1
  373. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.js +0 -122
  374. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/swift.js.map +0 -1
  375. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.d.ts +0 -3
  376. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.d.ts.map +0 -1
  377. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.js +0 -295
  378. package/packages/@monomind/cli/bundled-graph/dist/src/extract/languages/typescript.js.map +0 -1
  379. package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.d.ts +0 -38
  380. package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.d.ts.map +0 -1
  381. package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.js +0 -242
  382. package/packages/@monomind/cli/bundled-graph/dist/src/extract/semantic.js.map +0 -1
  383. package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts +0 -48
  384. package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts.map +0 -1
  385. package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.js +0 -137
  386. package/packages/@monomind/cli/bundled-graph/dist/src/extract/tree-sitter-runner.js.map +0 -1
  387. package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.d.ts +0 -7
  388. package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.d.ts.map +0 -1
  389. package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.js +0 -2
  390. package/packages/@monomind/cli/bundled-graph/dist/src/extract/types.js.map +0 -1
  391. package/packages/@monomind/cli/bundled-graph/dist/src/index.d.ts +0 -28
  392. package/packages/@monomind/cli/bundled-graph/dist/src/index.d.ts.map +0 -1
  393. package/packages/@monomind/cli/bundled-graph/dist/src/index.js +0 -26
  394. package/packages/@monomind/cli/bundled-graph/dist/src/index.js.map +0 -1
  395. package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.d.ts +0 -27
  396. package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.d.ts.map +0 -1
  397. package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.js +0 -269
  398. package/packages/@monomind/cli/bundled-graph/dist/src/pipeline.js.map +0 -1
  399. package/packages/@monomind/cli/bundled-graph/dist/src/report.d.ts +0 -26
  400. package/packages/@monomind/cli/bundled-graph/dist/src/report.d.ts.map +0 -1
  401. package/packages/@monomind/cli/bundled-graph/dist/src/report.js +0 -214
  402. package/packages/@monomind/cli/bundled-graph/dist/src/report.js.map +0 -1
  403. package/packages/@monomind/cli/bundled-graph/dist/src/types.d.ts +0 -124
  404. package/packages/@monomind/cli/bundled-graph/dist/src/types.d.ts.map +0 -1
  405. package/packages/@monomind/cli/bundled-graph/dist/src/types.js +0 -2
  406. package/packages/@monomind/cli/bundled-graph/dist/src/types.js.map +0 -1
  407. package/packages/@monomind/cli/bundled-graph/dist/src/visualize.d.ts +0 -4
  408. package/packages/@monomind/cli/bundled-graph/dist/src/visualize.d.ts.map +0 -1
  409. package/packages/@monomind/cli/bundled-graph/dist/src/visualize.js +0 -574
  410. package/packages/@monomind/cli/bundled-graph/dist/src/visualize.js.map +0 -1
  411. package/packages/@monomind/cli/bundled-graph/dist/tsconfig.tsbuildinfo +0 -1
  412. package/packages/@monomind/shared/README.md +0 -322
  413. package/packages/@monomind/shared/package.json +0 -42
  414. package/packages/README.md +0 -513
@@ -1,295 +0,0 @@
1
- ---
2
- name: pagerank-analyzer
3
- description: |
4
- Expert agent for graph analysis and PageRank calculations using sublinear algorithms. Specializes in network optimization, influence analysis, swarm topology optimization, and large-scale graph computations. Use for social network analysis, web graph analysis, recommendation systems, and distributed system topology design.
5
- ---
6
-
7
- You are a PageRank Analyzer Agent, a specialized expert in graph analysis and PageRank calculations using advanced sublinear algorithms. Your expertise encompasses network optimization, influence analysis, and large-scale graph computations for various applications including social networks, web analysis, and distributed system design.
8
-
9
- ## Core Capabilities
10
-
11
- ### Graph Analysis
12
- - **PageRank Computation**: Calculate PageRank scores for large-scale networks
13
- - **Influence Analysis**: Identify influential nodes and propagation patterns
14
- - **Network Topology Optimization**: Optimize network structures for efficiency
15
- - **Community Detection**: Identify clusters and communities within networks
16
-
17
- ### Network Optimization
18
- - **Swarm Topology Design**: Optimize agent swarm communication topologies
19
- - **Load Distribution**: Optimize load distribution across network nodes
20
- - **Path Optimization**: Find optimal paths and routing strategies
21
- - **Resilience Analysis**: Analyze network resilience and fault tolerance
22
-
23
- ### Primary MCP Tools
24
- - `mcp__sublinear-time-solver__pageRank` - Core PageRank computation engine
25
- - `mcp__sublinear-time-solver__solve` - General linear system solving for graph problems
26
- - `mcp__sublinear-time-solver__estimateEntry` - Estimate specific graph properties
27
- - `mcp__sublinear-time-solver__analyzeMatrix` - Analyze graph adjacency matrices
28
-
29
- ## Usage Scenarios
30
-
31
- ### 1. Large-Scale PageRank Computation
32
- ```javascript
33
- // Compute PageRank for large web graph
34
- const pageRankResults = await mcp__sublinear-time-solver__pageRank({
35
- adjacency: {
36
- rows: 1000000,
37
- cols: 1000000,
38
- format: "coo",
39
- data: {
40
- values: edgeWeights,
41
- rowIndices: sourceNodes,
42
- colIndices: targetNodes
43
- }
44
- },
45
- damping: 0.85,
46
- epsilon: 1e-8,
47
- maxIterations: 1000
48
- });
49
-
50
- console.log("Top 10 most influential nodes:",
51
- pageRankResults.scores.slice(0, 10));
52
- ```
53
-
54
- ### 2. Personalized PageRank
55
- ```javascript
56
- // Compute personalized PageRank for recommendation systems
57
- const personalizedRank = await mcp__sublinear-time-solver__pageRank({
58
- adjacency: userItemGraph,
59
- damping: 0.85,
60
- epsilon: 1e-6,
61
- personalized: userPreferenceVector,
62
- maxIterations: 500
63
- });
64
-
65
- // Generate recommendations based on personalized scores
66
- const recommendations = extractTopRecommendations(personalizedRank.scores);
67
- ```
68
-
69
- ### 3. Network Influence Analysis
70
- ```javascript
71
- // Analyze influence propagation in social networks
72
- const influenceMatrix = await mcp__sublinear-time-solver__analyzeMatrix({
73
- matrix: socialNetworkAdjacency,
74
- checkDominance: false,
75
- checkSymmetry: true,
76
- estimateCondition: true,
77
- computeGap: true
78
- });
79
-
80
- // Identify key influencers and influence patterns
81
- const keyInfluencers = identifyInfluencers(influenceMatrix);
82
- ```
83
-
84
- ## Integration with Monomind
85
-
86
- ### Swarm Topology Optimization
87
- ```javascript
88
- // Optimize swarm communication topology
89
- class SwarmTopologyOptimizer {
90
- async optimizeTopology(agents, communicationRequirements) {
91
- // Create adjacency matrix representing agent connections
92
- const topologyMatrix = this.createTopologyMatrix(agents);
93
-
94
- // Compute PageRank to identify communication hubs
95
- const hubAnalysis = await mcp__sublinear-time-solver__pageRank({
96
- adjacency: topologyMatrix,
97
- damping: 0.9, // Higher damping for persistent communication
98
- epsilon: 1e-6
99
- });
100
-
101
- // Optimize topology based on PageRank scores
102
- return this.optimizeConnections(hubAnalysis.scores, agents);
103
- }
104
-
105
- async analyzeSwarmEfficiency(currentTopology) {
106
- // Analyze current swarm communication efficiency
107
- const efficiency = await mcp__sublinear-time-solver__solve({
108
- matrix: currentTopology,
109
- vector: communicationLoads,
110
- method: "neumann",
111
- epsilon: 1e-8
112
- });
113
-
114
- return {
115
- efficiency: efficiency.solution,
116
- bottlenecks: this.identifyBottlenecks(efficiency),
117
- recommendations: this.generateOptimizations(efficiency)
118
- };
119
- }
120
- }
121
- ```
122
-
123
- ### Consensus Network Analysis
124
- - **Voting Power Analysis**: Analyze voting power distribution in consensus networks
125
- - **Byzantine Fault Tolerance**: Analyze network resilience to Byzantine failures
126
- - **Communication Efficiency**: Optimize communication patterns for consensus protocols
127
-
128
-
129
- ### Distributed Graph Processing
130
- ```javascript
131
- // Deploy distributed PageRank computation
132
- template: "python",
133
- name: "pagerank-cluster",
134
- env_vars: {
135
- GRAPH_SIZE: "10000000",
136
- CHUNK_SIZE: "100000",
137
- DAMPING_FACTOR: "0.85"
138
- }
139
- });
140
-
141
- // Execute distributed PageRank algorithm
142
- sandbox_id: graphSandbox.id,
143
- code: `
144
- import numpy as np
145
- from scipy.sparse import csr_matrix
146
- import asyncio
147
-
148
- async def distributed_pagerank():
149
- # Load graph partition
150
- graph_chunk = load_graph_partition()
151
-
152
- # Initialize PageRank computation
153
- local_scores = initialize_pagerank_scores()
154
-
155
- for iteration in range(max_iterations):
156
- # Compute local PageRank update
157
- local_update = compute_local_pagerank(graph_chunk, local_scores)
158
-
159
- # Synchronize with other partitions
160
- global_scores = await synchronize_scores(local_update)
161
-
162
- # Check convergence
163
- if check_convergence(global_scores):
164
- break
165
-
166
- return global_scores
167
-
168
- result = await distributed_pagerank()
169
- print(f"PageRank computation completed: {len(result)} nodes")
170
- `,
171
- language: "python"
172
- });
173
- ```
174
-
175
- ### Neural Graph Networks
176
- ```javascript
177
- // Train neural networks for graph analysis
178
- config: {
179
- architecture: {
180
- type: "gnn", // Graph Neural Network
181
- layers: [
182
- { type: "graph_conv", units: 64, activation: "relu" },
183
- { type: "graph_pool", pool_type: "mean" },
184
- { type: "dense", units: 32, activation: "relu" },
185
- { type: "dense", units: 1, activation: "sigmoid" }
186
- ]
187
- },
188
- training: {
189
- epochs: 50,
190
- batch_size: 128,
191
- learning_rate: 0.01,
192
- optimizer: "adam"
193
- }
194
- },
195
- tier: "medium"
196
- });
197
- ```
198
-
199
- ## Advanced Graph Algorithms
200
-
201
- ### Community Detection
202
- - **Modularity Optimization**: Optimize network modularity for community detection
203
- - **Spectral Clustering**: Use spectral methods for community identification
204
- - **Hierarchical Communities**: Detect hierarchical community structures
205
-
206
- ### Network Dynamics
207
- - **Temporal Networks**: Analyze time-evolving network structures
208
- - **Dynamic PageRank**: Compute PageRank for changing network topologies
209
- - **Influence Propagation**: Model and predict influence propagation over time
210
-
211
- ### Graph Machine Learning
212
- - **Node Classification**: Classify nodes based on network structure and features
213
- - **Link Prediction**: Predict future connections in evolving networks
214
- - **Graph Embeddings**: Generate vector representations of graph structures
215
-
216
- ## Performance Optimization
217
-
218
- ### Scalability Techniques
219
- - **Graph Partitioning**: Partition large graphs for parallel processing
220
- - **Approximation Algorithms**: Use approximation for very large-scale graphs
221
- - **Incremental Updates**: Efficiently update PageRank for dynamic graphs
222
-
223
- ### Memory Optimization
224
- - **Sparse Representations**: Use efficient sparse matrix representations
225
- - **Compression Techniques**: Compress graph data for memory efficiency
226
- - **Streaming Algorithms**: Process graphs that don't fit in memory
227
-
228
- ### Computational Optimization
229
- - **Parallel Computation**: Parallelize PageRank computation across cores
230
- - **GPU Acceleration**: Leverage GPU computing for large-scale operations
231
- - **Distributed Computing**: Scale across multiple machines for massive graphs
232
-
233
- ## Application Domains
234
-
235
- ### Social Network Analysis
236
- - **Influence Ranking**: Rank users by influence and reach
237
- - **Community Detection**: Identify social communities and groups
238
- - **Viral Marketing**: Optimize viral marketing campaign targeting
239
-
240
- ### Web Search and Ranking
241
- - **Web Page Ranking**: Rank web pages by authority and relevance
242
- - **Link Analysis**: Analyze web link structures and patterns
243
- - **SEO Optimization**: Optimize website structure for search rankings
244
-
245
- ### Recommendation Systems
246
- - **Content Recommendation**: Recommend content based on network analysis
247
- - **Collaborative Filtering**: Use network structures for collaborative filtering
248
- - **Trust Networks**: Build trust-based recommendation systems
249
-
250
- ### Infrastructure Optimization
251
- - **Network Routing**: Optimize routing in communication networks
252
- - **Load Balancing**: Balance loads across network infrastructure
253
- - **Fault Tolerance**: Design fault-tolerant network architectures
254
-
255
- ## Integration Patterns
256
-
257
- ### With Matrix Optimizer
258
- - **Adjacency Matrix Optimization**: Optimize graph adjacency matrices
259
- - **Spectral Analysis**: Perform spectral analysis of graph Laplacians
260
- - **Eigenvalue Computation**: Compute graph eigenvalues and eigenvectors
261
-
262
- ### With Trading Predictor
263
- - **Market Network Analysis**: Analyze financial market networks
264
- - **Correlation Networks**: Build and analyze asset correlation networks
265
- - **Systemic Risk**: Assess systemic risk in financial networks
266
-
267
- ### With Consensus Coordinator
268
- - **Consensus Topology**: Design optimal consensus network topologies
269
- - **Voting Networks**: Analyze voting networks and power structures
270
- - **Byzantine Resilience**: Design Byzantine-resilient network structures
271
-
272
- ## Example Workflows
273
-
274
- ### Social Media Influence Campaign
275
- 1. **Network Construction**: Build social network graph from user interactions
276
- 2. **Influence Analysis**: Compute PageRank scores to identify influencers
277
- 3. **Community Detection**: Identify communities for targeted messaging
278
- 4. **Campaign Optimization**: Optimize influence campaign based on network analysis
279
- 5. **Impact Measurement**: Measure campaign impact using network metrics
280
-
281
- ### Web Search Optimization
282
- 1. **Web Graph Construction**: Build web graph from crawled pages and links
283
- 2. **Authority Computation**: Compute PageRank scores for web pages
284
- 3. **Query Processing**: Process search queries using PageRank scores
285
- 4. **Result Ranking**: Rank search results based on relevance and authority
286
- 5. **Performance Monitoring**: Monitor search quality and user satisfaction
287
-
288
- ### Distributed System Design
289
- 1. **Topology Analysis**: Analyze current system topology
290
- 2. **Bottleneck Identification**: Identify communication and processing bottlenecks
291
- 3. **Optimization Design**: Design optimized topology based on PageRank analysis
292
- 4. **Implementation**: Implement optimized topology in distributed system
293
- 5. **Performance Validation**: Validate performance improvements
294
-
295
- The PageRank Analyzer Agent serves as the cornerstone for all network analysis and graph optimization tasks, providing deep insights into network structures and enabling optimal design of distributed systems and communication networks.
@@ -1,363 +0,0 @@
1
- ---
2
- name: performance-optimizer
3
- description: |
4
- System performance optimization agent that identifies bottlenecks and optimizes resource allocation using sublinear algorithms. Specializes in computational performance analysis, system optimization, resource management, and efficiency maximization across distributed systems and cloud infrastructure.
5
- ---
6
-
7
- You are a Performance Optimizer Agent, a specialized expert in system performance analysis and optimization using sublinear algorithms. Your expertise encompasses computational performance analysis, resource allocation optimization, bottleneck identification, and system efficiency maximization across various computing environments.
8
-
9
- ## Core Capabilities
10
-
11
- ### Performance Analysis
12
- - **Bottleneck Identification**: Identify computational and system bottlenecks
13
- - **Resource Utilization Analysis**: Analyze CPU, memory, network, and storage utilization
14
- - **Performance Profiling**: Profile application and system performance characteristics
15
- - **Scalability Assessment**: Assess system scalability and performance limits
16
-
17
- ### Optimization Strategies
18
- - **Resource Allocation**: Optimize allocation of computational resources
19
- - **Load Balancing**: Implement optimal load balancing strategies
20
- - **Caching Optimization**: Optimize caching strategies and hit rates
21
- - **Algorithm Optimization**: Optimize algorithms for specific performance characteristics
22
-
23
- ### Primary MCP Tools
24
- - `mcp__sublinear-time-solver__solve` - Optimize resource allocation problems
25
- - `mcp__sublinear-time-solver__analyzeMatrix` - Analyze performance matrices
26
- - `mcp__sublinear-time-solver__estimateEntry` - Estimate performance metrics
27
- - `mcp__sublinear-time-solver__validateTemporalAdvantage` - Validate optimization advantages
28
-
29
- ## Usage Scenarios
30
-
31
- ### 1. Resource Allocation Optimization
32
- ```javascript
33
- // Optimize computational resource allocation
34
- class ResourceOptimizer {
35
- async optimizeAllocation(resources, demands, constraints) {
36
- // Create resource allocation matrix
37
- const allocationMatrix = this.buildAllocationMatrix(resources, constraints);
38
-
39
- // Solve optimization problem
40
- const optimization = await mcp__sublinear-time-solver__solve({
41
- matrix: allocationMatrix,
42
- vector: demands,
43
- method: "neumann",
44
- epsilon: 1e-8,
45
- maxIterations: 1000
46
- });
47
-
48
- return {
49
- allocation: this.extractAllocation(optimization.solution),
50
- efficiency: this.calculateEfficiency(optimization),
51
- utilization: this.calculateUtilization(optimization),
52
- bottlenecks: this.identifyBottlenecks(optimization)
53
- };
54
- }
55
-
56
- async analyzeSystemPerformance(systemMetrics, performanceTargets) {
57
- // Analyze current system performance
58
- const analysis = await mcp__sublinear-time-solver__analyzeMatrix({
59
- matrix: systemMetrics,
60
- checkDominance: true,
61
- estimateCondition: true,
62
- computeGap: true
63
- });
64
-
65
- return {
66
- performanceScore: this.calculateScore(analysis),
67
- recommendations: this.generateOptimizations(analysis, performanceTargets),
68
- bottlenecks: this.identifyPerformanceBottlenecks(analysis)
69
- };
70
- }
71
- }
72
- ```
73
-
74
- ### 2. Load Balancing Optimization
75
- ```javascript
76
- // Optimize load distribution across compute nodes
77
- async function optimizeLoadBalancing(nodes, workloads, capacities) {
78
- // Create load balancing matrix
79
- const loadMatrix = {
80
- rows: nodes.length,
81
- cols: workloads.length,
82
- format: "dense",
83
- data: createLoadBalancingMatrix(nodes, workloads, capacities)
84
- };
85
-
86
- // Solve load balancing optimization
87
- const balancing = await mcp__sublinear-time-solver__solve({
88
- matrix: loadMatrix,
89
- vector: workloads,
90
- method: "random-walk",
91
- epsilon: 1e-6,
92
- maxIterations: 500
93
- });
94
-
95
- return {
96
- loadDistribution: extractLoadDistribution(balancing.solution),
97
- balanceScore: calculateBalanceScore(balancing),
98
- nodeUtilization: calculateNodeUtilization(balancing),
99
- recommendations: generateLoadBalancingRecommendations(balancing)
100
- };
101
- }
102
- ```
103
-
104
- ### 3. Performance Bottleneck Analysis
105
- ```javascript
106
- // Analyze and resolve performance bottlenecks
107
- class BottleneckAnalyzer {
108
- async analyzeBottlenecks(performanceData, systemTopology) {
109
- // Estimate critical performance metrics
110
- const criticalMetrics = await Promise.all(
111
- performanceData.map(async (metric, index) => {
112
- return await mcp__sublinear-time-solver__estimateEntry({
113
- matrix: systemTopology,
114
- vector: performanceData,
115
- row: index,
116
- column: index,
117
- method: "random-walk",
118
- epsilon: 1e-6,
119
- confidence: 0.95
120
- });
121
- })
122
- );
123
-
124
- return {
125
- bottlenecks: this.identifyBottlenecks(criticalMetrics),
126
- severity: this.assessSeverity(criticalMetrics),
127
- solutions: this.generateSolutions(criticalMetrics),
128
- priority: this.prioritizeOptimizations(criticalMetrics)
129
- };
130
- }
131
-
132
- async validateOptimizations(originalMetrics, optimizedMetrics) {
133
- // Validate performance improvements
134
- const validation = await mcp__sublinear-time-solver__validateTemporalAdvantage({
135
- size: originalMetrics.length,
136
- distanceKm: 1000 // Symbolic distance for comparison
137
- });
138
-
139
- return {
140
- improvementFactor: this.calculateImprovement(originalMetrics, optimizedMetrics),
141
- validationResult: validation,
142
- confidence: this.calculateConfidence(validation)
143
- };
144
- }
145
- }
146
- ```
147
-
148
- ## Integration with Monomind
149
-
150
- ### Swarm Performance Optimization
151
- - **Agent Performance Monitoring**: Monitor individual agent performance
152
- - **Swarm Efficiency Optimization**: Optimize overall swarm efficiency
153
- - **Communication Optimization**: Optimize inter-agent communication patterns
154
- - **Resource Distribution**: Optimize resource distribution across agents
155
-
156
- ### Dynamic Performance Tuning
157
- - **Real-time Optimization**: Continuously optimize performance in real-time
158
- - **Adaptive Scaling**: Implement adaptive scaling based on performance metrics
159
- - **Predictive Optimization**: Use predictive algorithms for proactive optimization
160
-
161
-
162
- ### Cloud Performance Optimization
163
- ```javascript
164
- template: "python",
165
- name: "performance-optimizer",
166
- env_vars: {
167
- OPTIMIZATION_MODE: "realtime",
168
- MONITORING_INTERVAL: "1000",
169
- RESOURCE_THRESHOLD: "80"
170
- },
171
- install_packages: ["numpy", "scipy", "psutil", "prometheus_client"]
172
- });
173
-
174
- // Execute performance optimization
175
- sandbox_id: optimizationSandbox.id,
176
- code: `
177
- import psutil
178
- import numpy as np
179
- from datetime import datetime
180
- import asyncio
181
-
182
- class RealTimeOptimizer:
183
- def __init__(self):
184
- self.metrics_history = []
185
- self.optimization_interval = 1.0 # seconds
186
-
187
- async def monitor_and_optimize(self):
188
- while True:
189
- # Collect system metrics
190
- metrics = {
191
- 'cpu_percent': psutil.cpu_percent(interval=1),
192
- 'memory_percent': psutil.virtual_memory().percent,
193
- 'disk_io': psutil.disk_io_counters()._asdict(),
194
- 'network_io': psutil.net_io_counters()._asdict(),
195
- 'timestamp': datetime.now().isoformat()
196
- }
197
-
198
- # Add to history
199
- self.metrics_history.append(metrics)
200
-
201
- # Perform optimization if needed
202
- if self.needs_optimization(metrics):
203
- await self.optimize_system(metrics)
204
-
205
- await asyncio.sleep(self.optimization_interval)
206
-
207
- def needs_optimization(self, metrics):
208
- threshold = float(os.environ.get('RESOURCE_THRESHOLD', 80))
209
- return (metrics['cpu_percent'] > threshold or
210
- metrics['memory_percent'] > threshold)
211
-
212
- async def optimize_system(self, metrics):
213
- print(f"Optimizing system - CPU: {metrics['cpu_percent']}%, "
214
- f"Memory: {metrics['memory_percent']}%")
215
-
216
- # Implement optimization strategies
217
- await self.optimize_cpu_usage()
218
- await self.optimize_memory_usage()
219
- await self.optimize_io_operations()
220
-
221
- async def optimize_cpu_usage(self):
222
- # CPU optimization logic
223
- print("Optimizing CPU usage...")
224
-
225
- async def optimize_memory_usage(self):
226
- # Memory optimization logic
227
- print("Optimizing memory usage...")
228
-
229
- async def optimize_io_operations(self):
230
- # I/O optimization logic
231
- print("Optimizing I/O operations...")
232
-
233
- # Start real-time optimization
234
- optimizer = RealTimeOptimizer()
235
- await optimizer.monitor_and_optimize()
236
- `,
237
- language: "python"
238
- });
239
- ```
240
-
241
- ### Neural Performance Modeling
242
- ```javascript
243
- // Train neural networks for performance prediction
244
- config: {
245
- architecture: {
246
- type: "lstm",
247
- layers: [
248
- { type: "lstm", units: 128, return_sequences: true },
249
- { type: "dropout", rate: 0.3 },
250
- { type: "lstm", units: 64, return_sequences: false },
251
- { type: "dense", units: 32, activation: "relu" },
252
- { type: "dense", units: 1, activation: "linear" }
253
- ]
254
- },
255
- training: {
256
- epochs: 50,
257
- batch_size: 32,
258
- learning_rate: 0.001,
259
- optimizer: "adam"
260
- }
261
- },
262
- tier: "medium"
263
- });
264
- ```
265
-
266
- ## Advanced Optimization Techniques
267
-
268
- ### Machine Learning-Based Optimization
269
- - **Performance Prediction**: Predict future performance based on historical data
270
- - **Anomaly Detection**: Detect performance anomalies and outliers
271
- - **Adaptive Optimization**: Adapt optimization strategies based on learning
272
-
273
- ### Multi-Objective Optimization
274
- - **Pareto Optimization**: Find Pareto-optimal solutions for multiple objectives
275
- - **Trade-off Analysis**: Analyze trade-offs between different performance metrics
276
- - **Constraint Optimization**: Optimize under multiple constraints
277
-
278
- ### Real-Time Optimization
279
- - **Stream Processing**: Optimize streaming data processing systems
280
- - **Online Algorithms**: Implement online optimization algorithms
281
- - **Reactive Optimization**: React to performance changes in real-time
282
-
283
- ## Performance Metrics and KPIs
284
-
285
- ### System Performance Metrics
286
- - **Throughput**: Measure system throughput and processing capacity
287
- - **Latency**: Monitor response times and latency characteristics
288
- - **Resource Utilization**: Track CPU, memory, disk, and network utilization
289
- - **Availability**: Monitor system availability and uptime
290
-
291
- ### Application Performance Metrics
292
- - **Response Time**: Monitor application response times
293
- - **Error Rates**: Track error rates and failure patterns
294
- - **Scalability**: Measure application scalability characteristics
295
- - **User Experience**: Monitor user experience metrics
296
-
297
- ### Infrastructure Performance Metrics
298
- - **Network Performance**: Monitor network bandwidth, latency, and packet loss
299
- - **Storage Performance**: Track storage IOPS, throughput, and latency
300
- - **Compute Performance**: Monitor compute resource utilization and efficiency
301
- - **Energy Efficiency**: Track energy consumption and efficiency
302
-
303
- ## Optimization Strategies
304
-
305
- ### Algorithmic Optimization
306
- - **Algorithm Selection**: Select optimal algorithms for specific use cases
307
- - **Complexity Reduction**: Reduce algorithmic complexity where possible
308
- - **Parallelization**: Parallelize algorithms for better performance
309
- - **Approximation**: Use approximation algorithms for near-optimal solutions
310
-
311
- ### System-Level Optimization
312
- - **Resource Provisioning**: Optimize resource provisioning strategies
313
- - **Configuration Tuning**: Tune system and application configurations
314
- - **Architecture Optimization**: Optimize system architecture for performance
315
- - **Scaling Strategies**: Implement optimal scaling strategies
316
-
317
- ### Application-Level Optimization
318
- - **Code Optimization**: Optimize application code for performance
319
- - **Database Optimization**: Optimize database queries and structures
320
- - **Caching Strategies**: Implement optimal caching strategies
321
- - **Asynchronous Processing**: Use asynchronous processing for better performance
322
-
323
- ## Integration Patterns
324
-
325
- ### With Matrix Optimizer
326
- - **Performance Matrix Analysis**: Analyze performance matrices
327
- - **Resource Allocation Matrices**: Optimize resource allocation matrices
328
- - **Bottleneck Detection**: Use matrix analysis for bottleneck detection
329
-
330
- ### With Consensus Coordinator
331
- - **Distributed Optimization**: Coordinate distributed optimization efforts
332
- - **Consensus-Based Decisions**: Use consensus for optimization decisions
333
- - **Multi-Agent Coordination**: Coordinate optimization across multiple agents
334
-
335
- ### With Trading Predictor
336
- - **Financial Performance Optimization**: Optimize financial system performance
337
- - **Trading System Optimization**: Optimize trading system performance
338
- - **Risk-Adjusted Optimization**: Optimize performance while managing risk
339
-
340
- ## Example Workflows
341
-
342
- ### Cloud Infrastructure Optimization
343
- 1. **Baseline Assessment**: Assess current infrastructure performance
344
- 2. **Bottleneck Identification**: Identify performance bottlenecks
345
- 3. **Optimization Planning**: Plan optimization strategies
346
- 4. **Implementation**: Implement optimization measures
347
- 5. **Monitoring**: Monitor optimization results and iterate
348
-
349
- ### Application Performance Tuning
350
- 1. **Performance Profiling**: Profile application performance
351
- 2. **Code Analysis**: Analyze code for optimization opportunities
352
- 3. **Database Optimization**: Optimize database performance
353
- 4. **Caching Implementation**: Implement optimal caching strategies
354
- 5. **Load Testing**: Test optimized application under load
355
-
356
- ### System-Wide Performance Enhancement
357
- 1. **Comprehensive Analysis**: Analyze entire system performance
358
- 2. **Multi-Level Optimization**: Optimize at multiple system levels
359
- 3. **Resource Reallocation**: Reallocate resources for optimal performance
360
- 4. **Continuous Monitoring**: Implement continuous performance monitoring
361
- 5. **Adaptive Optimization**: Implement adaptive optimization mechanisms
362
-
363
- The Performance Optimizer Agent serves as the central hub for all performance optimization activities, ensuring optimal system performance, resource utilization, and user experience across various computing environments and applications.