mcp-swarm 0.9.17 → 1.0.1

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 (183) hide show
  1. package/CHANGELOG.md +1037 -1543
  2. package/CHANGELOG.ru.md +1667 -0
  3. package/CONTRIBUTING.md +88 -0
  4. package/README.md +45 -10
  5. package/README.ru.md +31 -9
  6. package/assets/banner.png +0 -0
  7. package/build-output.txt +4 -0
  8. package/dist/serverSmart.js +1 -1
  9. package/dist/smartTools/analytics.js +1 -1
  10. package/dist/smartTools/analytics.js.map +1 -1
  11. package/dist/smartTools/collaboration.js +1 -1
  12. package/dist/smartTools/files.js +1 -1
  13. package/dist/smartTools/files.js.map +1 -1
  14. package/dist/smartTools/index.js +1 -1
  15. package/dist/smartTools/infra.js +5 -5
  16. package/dist/smartTools/infra.js.map +1 -1
  17. package/dist/smartTools.js +8 -8
  18. package/dist/smartTools.js.map +1 -1
  19. package/dist/workflows/agentTeams.js +425 -0
  20. package/dist/workflows/agentTeams.js.map +1 -0
  21. package/dist/workflows/autoDocumentation.js +32 -0
  22. package/dist/workflows/autoDocumentation.js.map +1 -1
  23. package/dist/workflows/autoReview.js +49 -0
  24. package/dist/workflows/autoReview.js.map +1 -1
  25. package/dist/workflows/claudeFlowBridge.js +426 -0
  26. package/dist/workflows/claudeFlowBridge.js.map +1 -0
  27. package/dist/workflows/conflictPrediction.js +64 -0
  28. package/dist/workflows/conflictPrediction.js.map +1 -1
  29. package/dist/workflows/costOptimization.js +77 -0
  30. package/dist/workflows/costOptimization.js.map +1 -1
  31. package/dist/workflows/mcpContext7Bridge.js +302 -0
  32. package/dist/workflows/mcpContext7Bridge.js.map +1 -0
  33. package/dist/workflows/mcpLinearBridge.js +195 -0
  34. package/dist/workflows/mcpLinearBridge.js.map +1 -0
  35. package/dist/workflows/moeRouter.js +210 -23
  36. package/dist/workflows/moeRouter.js.map +1 -1
  37. package/dist/workflows/skillsDiscovery.js +420 -0
  38. package/dist/workflows/skillsDiscovery.js.map +1 -0
  39. package/dist/workflows/smartRouterProxy.js +726 -0
  40. package/dist/workflows/smartRouterProxy.js.map +1 -0
  41. package/dist/workflows/smartRouting.js +70 -0
  42. package/dist/workflows/smartRouting.js.map +1 -1
  43. package/dist/workflows/sona.js +162 -7
  44. package/dist/workflows/sona.js.map +1 -1
  45. package/dist/workflows/swarmMemory.js +601 -0
  46. package/dist/workflows/swarmMemory.js.map +1 -0
  47. package/package.json +7 -3
  48. package/.clinerules +0 -105
  49. package/.cursorrules +0 -51
  50. package/.github/workflows/ci.yml +0 -61
  51. package/.windsurfrules +0 -51
  52. package/AGENT.md +0 -163
  53. package/AGENTS.md +0 -163
  54. package/CLAUDE.md +0 -163
  55. package/GEMINI.md +0 -169
  56. package/cloudflare/abdr-hub/src/index.ts +0 -651
  57. package/cloudflare/abdr-hub/wrangler.toml +0 -31
  58. package/cloudflare/abdr-server/src/index.ts +0 -527
  59. package/cloudflare/abdr-server/wrangler.toml +0 -40
  60. package/cloudflare/hub/README.md +0 -30
  61. package/cloudflare/hub/src/index.ts +0 -735
  62. package/cloudflare/hub/tsconfig.json +0 -19
  63. package/cloudflare/hub/wrangler.toml +0 -24
  64. package/cloudflare/mcp-server/README.md +0 -74
  65. package/cloudflare/mcp-server/src/index.ts +0 -887
  66. package/cloudflare/mcp-server/tsconfig.json +0 -19
  67. package/cloudflare/mcp-server/wrangler.toml +0 -41
  68. package/cloudflare/telegram-bot/worker.ts +0 -812
  69. package/cloudflare/telegram-bot/wrangler.toml +0 -48
  70. package/dashboard/.env.example +0 -8
  71. package/dashboard/next.config.js +0 -15
  72. package/dashboard/package-lock.json +0 -3171
  73. package/dashboard/package.json +0 -39
  74. package/dashboard/postcss.config.js +0 -6
  75. package/dashboard/src/app/globals.css +0 -104
  76. package/dashboard/src/app/layout.tsx +0 -26
  77. package/dashboard/src/app/page.tsx +0 -564
  78. package/dashboard/src/components/ui/badge.tsx +0 -39
  79. package/dashboard/src/components/ui/button.tsx +0 -52
  80. package/dashboard/src/components/ui/card.tsx +0 -75
  81. package/dashboard/src/components/ui/progress.tsx +0 -27
  82. package/dashboard/src/components/ui/tooltip.tsx +0 -29
  83. package/dashboard/src/components/widgets/AdvancedWidgets.tsx +0 -794
  84. package/dashboard/src/components/widgets/CoreWidgets.tsx +0 -589
  85. package/dashboard/src/hooks/useSwarmData.ts +0 -104
  86. package/dashboard/src/hooks/useWebSocket.ts +0 -215
  87. package/dashboard/src/lib/utils.ts +0 -37
  88. package/dashboard/tailwind.config.js +0 -80
  89. package/dashboard/tsconfig.json +0 -22
  90. package/dist/scripts/install.js +0 -128
  91. package/dist/scripts/install.js.map +0 -1
  92. package/install.ps1 +0 -310
  93. package/install.sh +0 -380
  94. package/scripts/split-smarttools.mjs +0 -309
  95. package/src/bridge.ts +0 -368
  96. package/src/companion.ts +0 -592
  97. package/src/dashboardApi.ts +0 -1127
  98. package/src/installer/index.ts +0 -470
  99. package/src/integrations/telegram.ts +0 -1188
  100. package/src/remote/index.ts +0 -378
  101. package/src/scripts/install.ts +0 -144
  102. package/src/serverSmart.ts +0 -38
  103. package/src/smartTools/analytics.ts +0 -501
  104. package/src/smartTools/collaboration.ts +0 -404
  105. package/src/smartTools/core.ts +0 -164
  106. package/src/smartTools/files.ts +0 -255
  107. package/src/smartTools/git.ts +0 -121
  108. package/src/smartTools/index.ts +0 -128
  109. package/src/smartTools/infra.ts +0 -1013
  110. package/src/smartTools/intelligence.ts +0 -615
  111. package/src/smartTools/security.ts +0 -243
  112. package/src/smartTools/tasks.ts +0 -344
  113. package/src/smartTools.ts +0 -3783
  114. package/src/tests/newModules.test.ts +0 -706
  115. package/src/workers/heartbeatManager.ts +0 -87
  116. package/src/workers/heartbeatWorker.ts +0 -91
  117. package/src/workflows/agentBooster.ts +0 -1260
  118. package/src/workflows/agentHealth.ts +0 -254
  119. package/src/workflows/agentRegistry.ts +0 -230
  120. package/src/workflows/agentSpecialization.ts +0 -310
  121. package/src/workflows/aiDefence.ts +0 -1074
  122. package/src/workflows/auction.ts +0 -150
  123. package/src/workflows/autoDoc.ts +0 -167
  124. package/src/workflows/autoDocumentation.ts +0 -242
  125. package/src/workflows/autoReview.ts +0 -503
  126. package/src/workflows/batching.ts +0 -666
  127. package/src/workflows/brainstorming.ts +0 -719
  128. package/src/workflows/briefings.ts +0 -158
  129. package/src/workflows/codeReview.ts +0 -128
  130. package/src/workflows/collectiveAdvice.ts +0 -202
  131. package/src/workflows/companionControl.ts +0 -48
  132. package/src/workflows/conflictForecast.ts +0 -156
  133. package/src/workflows/conflictPrediction.ts +0 -301
  134. package/src/workflows/consensus.ts +0 -1207
  135. package/src/workflows/constants.ts +0 -73
  136. package/src/workflows/contextCompressor.ts +0 -237
  137. package/src/workflows/contextPool.ts +0 -500
  138. package/src/workflows/costOptimization.ts +0 -832
  139. package/src/workflows/costTracker.ts +0 -353
  140. package/src/workflows/crossPlatform.ts +0 -189
  141. package/src/workflows/decompose.ts +0 -127
  142. package/src/workflows/dependencySync.ts +0 -92
  143. package/src/workflows/externalSync.ts +0 -764
  144. package/src/workflows/fileLocks.ts +0 -142
  145. package/src/workflows/ghostMode.ts +0 -170
  146. package/src/workflows/git.ts +0 -53
  147. package/src/workflows/githubPr.ts +0 -99
  148. package/src/workflows/guardHooks.ts +0 -381
  149. package/src/workflows/hnsw.ts +0 -1155
  150. package/src/workflows/immuneSystem.ts +0 -171
  151. package/src/workflows/knowledgeBase.ts +0 -169
  152. package/src/workflows/mcpScanner.ts +0 -231
  153. package/src/workflows/moeRouter.ts +0 -1522
  154. package/src/workflows/orchestrator.ts +0 -726
  155. package/src/workflows/preemption.ts +0 -160
  156. package/src/workflows/projectId.ts +0 -151
  157. package/src/workflows/pulse.ts +0 -147
  158. package/src/workflows/qaLoop.ts +0 -398
  159. package/src/workflows/qualityGate.ts +0 -307
  160. package/src/workflows/regressionDetector.ts +0 -412
  161. package/src/workflows/remoteCleanup.ts +0 -103
  162. package/src/workflows/repo.ts +0 -35
  163. package/src/workflows/screenshot.ts +0 -93
  164. package/src/workflows/sessionRecording.ts +0 -290
  165. package/src/workflows/smartRouting.ts +0 -463
  166. package/src/workflows/snapshot.ts +0 -176
  167. package/src/workflows/sona.ts +0 -1155
  168. package/src/workflows/specPipeline.ts +0 -402
  169. package/src/workflows/specialization.ts +0 -183
  170. package/src/workflows/stopFlag.ts +0 -94
  171. package/src/workflows/swarmThoughts.ts +0 -105
  172. package/src/workflows/systematicDebugging.ts +0 -670
  173. package/src/workflows/taskFile.ts +0 -195
  174. package/src/workflows/taskState.ts +0 -131
  175. package/src/workflows/teamFiles.ts +0 -88
  176. package/src/workflows/timeline.ts +0 -182
  177. package/src/workflows/toolClusters.ts +0 -510
  178. package/src/workflows/voting.ts +0 -197
  179. package/src/workflows/worktree.ts +0 -116
  180. package/src/workflows/writingPlans.ts +0 -666
  181. package/swarm/tasks/.gitkeep +0 -0
  182. package/tsconfig.json +0 -17
  183. /package/{swarm/agents/.gitkeep → ts-errors.txt} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,1543 +1,1037 @@
1
- # Changelog
2
-
3
- Все значимые изменения в проекте MCP Swarm документируются в этом файле.
4
-
5
- Формат основан на [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- версионирование следует [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ---
9
-
10
- ## [0.9.17] - 2026-02-08
11
-
12
- ### 🏗️ Модуляризация Smart Tools
13
-
14
- #### Изменено
15
-
16
- - **`src/smartTools.ts`** — разбит на **9 модулей** в `src/smartTools/`:
17
- - `core.ts` — swarm_agent, swarm_control, swarm_pulse, swarm_companion
18
- - `tasks.ts` — swarm_task, swarm_plan, swarm_briefing, swarm_spec
19
- - `files.ts` swarm_file, swarm_worktree, swarm_snapshot
20
- - `git.ts` swarm_git, swarm_hooks, swarm_dependency
21
- - `collaboration.ts` swarm_chat, swarm_message, swarm_review, swarm_voting, swarm_auction, swarm_brainstorm
22
- - `security.ts` swarm_defence, swarm_consensus, swarm_mcp
23
- - `analytics.ts` swarm_cost, swarm_quality, swarm_regression, swarm_session
24
- - `intelligence.ts` — swarm_sona, swarm_moe, swarm_vector, swarm_booster, swarm_context_pool, swarm_context
25
- - `infra.ts` — swarm_health, swarm_immune, swarm_external, swarm_platform, swarm_knowledge и др.
26
- - **`src/smartTools/index.ts`** центральный re-export всех модулей
27
- - **`src/serverSmart.ts`** обновлён на импорт из `smartTools/index.js`
28
-
29
- ### 🔒 Cloudflare Workers с Аутентификацией
30
-
31
- #### Добавлено
32
-
33
- - **`cloudflare/abdr-hub/`** новый Cloudflare Worker `abdr-swarm-hub`
34
- - Bearer Token + Query параметр аутентификация
35
- - WebSocket bridge для агентов
36
- - REST API для управления роем
37
- - **`cloudflare/abdr-server/`** новый Cloudflare Worker `abdr-swarm-server`
38
- - Streamable HTTP Transport (MCP spec 2025-03-26)
39
- - Все 54 Smart Tools
40
- - Автоматический проброс Bearer Token к Hub
41
- - **`cloudflare/telegram-bot/`** → переименован в `abdr-swarm-telegram`
42
- - `SWARM_AUTH_TOKEN` для защиты `/register` endpoint
43
- - Bearer Token при вызовах Hub API
44
-
45
- ### 🔄 CI/CD Pipeline
46
-
47
- #### Изменено
48
-
49
- - **`.github/workflows/ci.yml`** улучшения:
50
- - Триггер на `main` и `develop` ветки
51
- - TypeScript проверка (`tsc --noEmit`) перед билдом
52
- - Матрица Node.js: 18, 20, 22
53
- - Автоматический npm publish при push в `main`
54
-
55
- ### 🗑️ Удалён Legacy Код
56
-
57
- #### Удалено
58
-
59
- - **`src/tools.ts`** — старые 41 инструментов (заменены на `smartTools/`)
60
- - **`src/server.ts`** старый сервер (заменён на `serverSmart.ts`)
61
-
62
- ### 📊 Dashboard
63
-
64
- #### Изменено
65
-
66
- - Обновлена версия в footer: v0.9.12 v0.9.17
67
-
68
- ### 📦 Обновления
69
-
70
- - `package.json` версия `0.9.17`
71
-
72
- ### 🔄 Обновление
73
-
74
- ```bash
75
- npm install -g mcp-swarm@latest
76
- # или
77
- npm update mcp-swarm
78
- ```
79
-
80
- ---
81
-
82
- ## [0.9.16] - 2026-02-08
83
-
84
- ### 🐛 Критический фикс: Zod совместимость
85
-
86
- **BREAKING FIX:** Исправлена ошибка `keyValidator._parse is not a function`, которая делала все 54 Smart Tools полностью неработоспособными в Antigravity и подобных клиентах.
87
-
88
- #### Причина
89
- - `zod@^3.23.8` в `package.json` автоматически устанавливал `3.25.76` — по сути Zod v4 bridge-версию
90
- - Zod v4 удалил внутренний метод `_parse()`, который используется клиентами для валидации JSON Schema
91
- - Результат: **ни один Smart Tool не работал** из-за ошибки парсинга входных схем
92
-
93
- #### Исправление
94
- - `zod` закреплён на точной версии `3.23.8` (чистый Zod v3, без v4 bridge)
95
- - Предотвращает автоматический апгрейд до несовместимых версий
96
-
97
- > 🙏 Приносим извинения за неудобства. Баг затронул всех пользователей, обновившихся через npm.
98
-
99
- ### 🔒 Безопасность: Cloudflare Workers
100
-
101
- - Удалены задеплоенные воркеры `mcp-swarm-hub` и `mcp-swarm-server` (URL-ы были засвечены в коммитах)
102
- - Исходники воркеров **сохранены** в `cloudflare/`будут передеплоены с новыми именами
103
-
104
- ### 📦 Обновления
105
-
106
- - `serverSmart.ts` — динамическая версия из `package.json` вместо хардкода
107
- - `server.ts`помечен как deprecated (`@ts-nocheck`), используйте `serverSmart.ts`
108
- - `.gitignore`добавлены паттерны для тестовых файлов
109
-
110
- ### 🔄 Обновление
111
-
112
- ```bash
113
- npm install -g mcp-swarm@latest
114
- # или
115
- npm update mcp-swarm
116
- ```
117
-
118
- ---
119
-
120
- ## [0.9.13] - 2026-02-05
121
-
122
- ### Self-Hosted Infrastructure
123
-
124
- **BREAKING CHANGE:** Removed hardcoded public server URLs. Users must now deploy their own Cloudflare Workers.
125
-
126
- #### Changed
127
-
128
- - **README.md** — Complete rewrite of installation section
129
- - Added Cloudflare Free Tier explanation and limits
130
- - Step-by-step deployment guide for Hub, MCP Server, Telegram Bot
131
- - Explained what YOUR-SUBDOMAIN means
132
-
133
- - **wrangler.toml files** All 3 Workers now have placeholders
134
- - `cloudflare/hub/wrangler.toml` Added deployment instructions
135
- - `cloudflare/mcp-server/wrangler.toml` — HUB_URL placeholder
136
- - `cloudflare/telegram-bot/wrangler.toml` SWARM_HUB_URL placeholder
137
-
138
- - **install.ps1 / install.sh** — Now ask for user's server URLs
139
- - No more hardcoded URLs
140
- - Instructions for deploying first
141
-
142
- - **mcp-swarm-remote** — `--url` is now **required**
143
- - Shows helpful error message with deployment link
144
- - Added `--help` option
145
-
146
- - **Dashboard** — `.env.example` uses placeholder
147
- - `useWebSocket.ts` warns if HUB_URL not configured
148
-
149
- - **Agent rules** (AGENTS.md, CLAUDE.md, GEMINI.md, AGENT.md)
150
- - Updated with YOUR-SUBDOMAIN placeholders
151
-
152
- #### Why This Change?
153
-
154
- - **Privacy**: Your data stays on your infrastructure
155
- - **No shared limits**: Full Cloudflare Free Tier for yourself
156
- - **Customization**: Modify Workers as needed
157
- - **Transparency**: No hidden public server
158
-
159
- ---
160
-
161
- ## [0.9.12] - 2026-02-05
162
-
163
- ### Dashboard Real-time Updates
164
-
165
- #### Added
166
-
167
- - **WebSocket Hook** (`dashboard/src/hooks/useWebSocket.ts`)
168
- - Real-time connection to Swarm Hub
169
- - Auto-reconnect with exponential backoff
170
- - Keep-alive ping every 25 seconds
171
- - Event filtering for specific event types
172
-
173
- - **New Core Widgets** (`dashboard/src/components/widgets/CoreWidgets.tsx`)
174
- - **ConnectionStatusWidget** — Shows Hub connection status with reconnect button
175
- - **ActivityTimelineWidget** Real-time event stream from Hub
176
- - **FileLocksWidget** Active file reservations with live updates
177
- - **CostTrackingWidget** — API usage and budget progress bars
178
- - **VotingWidget** Distributed consensus proposals and votes
179
-
180
- - **Live Indicators**
181
- - Green pulsing dot for connected/active status
182
- - LIVE/OFFLINE badges for real-time widgets
183
- - Last update timestamps with relative time format
184
-
185
- ### Telegram Bot Enhancements
186
-
187
- #### Added
188
-
189
- - **New Commands**
190
- - `/reviews` — List pending code reviews with inline approve/reject buttons
191
- - `/approve [id]` Approve a review directly from Telegram
192
- - `/reject [id] [reason]` — Reject a review with optional reason
193
-
194
- - **Enhanced Inline Keyboards**
195
- - Reviews list shows approve/reject buttons for each pending review
196
- - Help menu now includes Reviews button
197
-
198
- ### Auto-start Companion
199
-
200
- #### Added
201
-
202
- - **Companion Auto-start** in `mcp-swarm-remote`
203
- - Checks if companion daemon is running on port 37373
204
- - Automatically spawns companion in background if not running
205
- - Can be disabled with `--no-companion` flag
206
-
207
- #### Changed
208
-
209
- - Dashboard now uses WebSocket for real-time updates instead of polling-only
210
- - Added "Real-time Monitoring" section with new widgets
211
- - Updated version to 0.9.12 in footer
212
-
213
- ---
214
-
215
- ## [0.9.11] - 2026-02-04
216
-
217
- ### One-Click Installer & Streamable HTTP
218
-
219
- #### Added
220
-
221
- - **One-Click Install Scripts**
222
- - `install.ps1` — PowerShell installer for Windows
223
- - `install.sh` Bash installer for macOS/Linux
224
- - `npx mcp-swarm-install` — Interactive Node.js installer
225
-
226
- - **Streamable HTTP Transport** (MCP spec 2025-03-26)
227
- - Single `POST /mcp` endpoint instead of SSE
228
- - Session management via `Mcp-Session-Id` header
229
- - Works on Cloudflare Workers without SSE issues
230
-
231
- - **mcp-swarm-remote Proxy** (`src/remote/index.ts`)
232
- - stdio → Streamable HTTP proxy for IDE integration
233
- - Windows stdin compatibility fix
234
-
235
- #### Changed
236
-
237
- - Installer now **merges** configs instead of overwriting
238
- - Auto-detects IDE installations (Claude Desktop, Cursor, Windsurf, OpenCode, VS Code)
239
-
240
- ---
241
-
242
- ## [0.9.10] - 2026-02-03
243
-
244
- ### 🧠 MoE Router Mixture of Experts Model Selection
245
-
246
- #### Added
247
-
248
- - **MoE Router Module** (`src/workflows/moeRouter.ts`)
249
- - Intelligent model routing based on task characteristics
250
- - Gating network for expert selection
251
- - Cost-performance optimization
252
- - Learning from feedback
253
-
254
- - **Expert Classification**
255
- - 14 task categories: code_generation, code_review, debugging, reasoning, math, creative, etc.
256
- - 4 model tiers: economy, standard, premium, flagship
257
- - 6 providers: anthropic, openai, google, mistral, local, custom
258
-
259
- - **Built-in Experts (16 models, verified pricing February 2026)**
260
- - **Anthropic Claude 4.5 Series:**
261
- - Claude Opus 4.5 (flagship, 200K, $5/$25 MTok)
262
- - Claude Sonnet 4.5 (premium, 200K, $3/$15 MTok)
263
- - Claude Haiku 4.5 (economy, 200K, $1/$5 MTok)
264
- - **OpenAI GPT-5.x Series:**
265
- - GPT-5.2 (flagship, 256K, $1.75/$14 MTok)
266
- - GPT-5.2 Pro (flagship, 256K, $21/$168 MTok)
267
- - GPT-5 Mini (standard, 128K, $0.25/$2 MTok)
268
- - GPT-4.1 (premium, 128K, $3/$12 MTok)
269
- - GPT-4.1 Mini (standard, 128K, $0.80/$3.20 MTok)
270
- - GPT-4.1 Nano (economy, 128K, $0.20/$0.80 MTok)
271
- - **OpenAI Reasoning Models:**
272
- - o4-mini (reasoning, 128K, $4/$16 MTok)
273
- - **Google Gemini 3.x Series:**
274
- - Gemini 3 Pro (flagship, 1M, $2/$12 MTok)
275
- - Gemini 3 Flash (standard, 1M, $0.50/$3 MTok)
276
- - **Google Gemini 2.5 Series:**
277
- - Gemini 2.5 Pro (premium, 1M, $1.25/$10 MTok)
278
- - Gemini 2.5 Flash (standard, 1M, $0.30/$2.50 MTok)
279
- - Gemini 2.5 Flash Lite (economy, 1M, $0.10/$0.40 MTok)
280
-
281
- - **Routing Factors**
282
- - Task match score (category-specific strength)
283
- - Cost efficiency
284
- - Performance history (success rate)
285
- - Load balancing (prefer less recently used)
286
- - Latency constraints
287
- - Context window requirements
288
-
289
- - **Learning System**
290
- - Feedback recording
291
- - Exponential moving average for success rate
292
- - Automatic latency calibration
293
- - Per-expert statistics
294
-
295
- - **Smart Tool #54: `swarm_moe`**
296
- - `route`: Route task to best expert
297
- - `feedback`: Record routing feedback
298
- - `experts`: List available experts
299
- - `add_expert` / `remove_expert`: Manage experts
300
- - `config` / `set_config`: Configuration
301
- - `stats`: Routing statistics
302
- - `history`: Routing history
303
- - `classify`: Classify task category
304
- - `reset`: Reset statistics
305
-
306
- - **Dashboard API Endpoint** (`/api/moe`)
307
- - Routing statistics
308
- - Expert list and usage
309
- - Configuration status
310
-
311
- #### Example Usage
312
-
313
- ```typescript
314
- // Route task to best model
315
- swarm_moe({
316
- action: "route",
317
- content: "Write a React component for user authentication",
318
- preferredTier: "premium",
319
- maxCost: 0.05,
320
- repoPath
321
- });
322
- // { selectedExpert: "claude-sonnet", confidence: 0.92, estimatedCost: $0.02 }
323
-
324
- // Record feedback for learning
325
- swarm_moe({
326
- action: "feedback",
327
- expertId: "claude-sonnet",
328
- success: true,
329
- quality: 5,
330
- actualLatencyMs: 1800,
331
- repoPath
332
- });
333
-
334
- // Get routing statistics
335
- swarm_moe({ action: "stats", repoPath });
336
- // → { totalRequests: 150, successRate: 94%, totalCost: $1.23 }
337
- ```
338
-
339
- ---
340
-
341
- ## [0.9.9] - 2026-02-03
342
-
343
- ### 🤝 Consensus Distributed Agreement Protocols
344
-
345
- #### Added
346
-
347
- - **Consensus Module** (`src/workflows/consensus.ts`)
348
- - Raft-like leader election with term-based leadership
349
- - Log replication for ordered command execution
350
- - Byzantine Fault Tolerance (BFT) mode for untrusted environments
351
- - Proposal system with configurable voting thresholds
352
- - Automatic failover when leader becomes unresponsive
353
-
354
- - **Consensus Modes**
355
- - `simple_majority`: 50%+ votes for approval
356
- - `raft`: Term-based leadership, log replication
357
- - `bft`: Byzantine fault tolerant (2/3+1 quorum)
358
-
359
- - **Node Management**
360
- - Join/leave cluster
361
- - Heartbeat monitoring
362
- - Trusted/untrusted node classification
363
- - Automatic dead node detection
364
-
365
- - **Proposal System**
366
- - Types: config_change, task_assignment, architecture, rollback, emergency, custom
367
- - Vote types: approve, reject, abstain
368
- - Configurable majority thresholds (0.5 to 1.0)
369
- - Expiration timeout handling
370
- - Signature verification for BFT mode
371
-
372
- - **Log Replication**
373
- - Ordered command log
374
- - Commit confirmation from leader
375
- - State machine replication across nodes
376
-
377
- - **Smart Tool #53: `swarm_consensus`**
378
- - `join`: Join consensus cluster
379
- - `leave`: Leave cluster
380
- - `heartbeat`: Send heartbeat
381
- - `status`: Get cluster status
382
- - `elect`: Start leader election
383
- - `leader`: Get current leader
384
- - `propose`: Create proposal
385
- - `vote`: Vote on proposal
386
- - `proposals`: List proposals
387
- - `get_proposal`: Get proposal details
388
- - `execute`: Execute approved proposal
389
- - `log` / `append` / `commit`: Log management
390
- - `config` / `set_config`: Configuration
391
- - `stats`: Statistics
392
-
393
- - **Dashboard API Endpoint** (`/api/consensus`)
394
- - Cluster status and node list
395
- - Leader information
396
- - Proposal statistics
397
- - Recent proposals
398
-
399
- #### Example Usage
400
-
401
- ```typescript
402
- // Join cluster
403
- swarm_consensus({
404
- action: "join",
405
- nodeId: "agent-1",
406
- nodeName: "RadiantWolf",
407
- repoPath: "/path/to/project"
408
- });
409
-
410
- // Start leader election
411
- swarm_consensus({
412
- action: "elect",
413
- nodeId: "agent-1",
414
- nodeName: "RadiantWolf",
415
- repoPath
416
- });
417
-
418
- // Create a proposal
419
- swarm_consensus({
420
- action: "propose",
421
- nodeId: "agent-1",
422
- nodeName: "RadiantWolf",
423
- title: "Add dark mode",
424
- description: "Implement dark mode for dashboard",
425
- type: "architecture",
426
- requiredMajority: 0.67, // 2/3 majority
427
- repoPath
428
- });
429
-
430
- // Vote on proposal
431
- swarm_consensus({
432
- action: "vote",
433
- proposalId: "prop_xxx",
434
- nodeId: "agent-2",
435
- nodeName: "BrilliantFox",
436
- vote: "approve",
437
- reason: "Good idea!",
438
- repoPath
439
- });
440
- ```
441
-
442
- ---
443
-
444
- ## [0.9.8] - 2026-02-03
445
-
446
- ### 🛡️ AIDefence Security & Threat Detection
447
-
448
- #### Added
449
-
450
- - **AIDefence Module** (`src/workflows/aiDefence.ts`)
451
- - <10ms threat detection latency
452
- - Pattern-based detection with regex + heuristics
453
- - Behavioral anomaly detection
454
- - Quarantine system for suspicious content
455
- - Audit logging for security events
456
- - Configurable sensitivity levels
457
-
458
- - **Threat Categories**
459
- - `prompt_injection`: Instruction override, role hijacking, delimiter attacks
460
- - `jailbreak`: DAN mode, hypothetical bypasses, character hijacking
461
- - `code_injection`: Shell commands, eval, SQL injection, path traversal
462
- - `data_exfiltration`: API keys, credentials, external uploads
463
- - `sensitive_data`: PII, private keys, passwords
464
- - `unsafe_command`: rm -rf, sudo, crypto mining
465
- - `social_engineering`: Authority claims, urgency manipulation
466
- - `impersonation`: Agent identity spoofing
467
- - `dos_attack`: Request flooding
468
- - `unauthorized_tool`: Restricted tool access
469
-
470
- - **Sensitivity Levels**
471
- - `low`: Only critical threats
472
- - `medium`: Balanced (default)
473
- - `high`: Strict checking
474
- - `paranoid`: Maximum security
475
-
476
- - **Smart Tool #52: `swarm_defence`**
477
- - `scan`: Scan text for threats
478
- - `validate_agent`: Validate agent identity
479
- - `validate_tool`: Validate tool usage
480
- - `events`: Get security events log
481
- - `quarantine`: Get quarantined items
482
- - `release`: Release from quarantine
483
- - `stats`: Get defence statistics
484
- - `config` / `set_config`: Configuration
485
- - `trust` / `untrust`: Agent whitelist management
486
- - `clear_events`: Clear event log
487
-
488
- - **Dashboard API Endpoint** (`/api/defence`)
489
- - Security statistics
490
- - Threat distribution by category/severity
491
- - Quarantine status
492
- - Recent events log
493
-
494
- #### Example Usage
495
-
496
- ```typescript
497
- // Scan text for threats
498
- swarm_defence({
499
- action: "scan",
500
- text: "Ignore all previous instructions...",
501
- source: "user",
502
- repoPath: "/path/to/project"
503
- });
504
- // Returns: { detected: true, category: "prompt_injection", severity: "high", action: "block" }
505
-
506
- // Configure sensitivity
507
- swarm_defence({
508
- action: "set_config",
509
- config: { sensitivity: "high", blockOnHighThreat: true },
510
- repoPath: "/path/to/project"
511
- });
512
-
513
- // Add trusted agent
514
- swarm_defence({
515
- action: "trust",
516
- agentName: "RadiantWolf",
517
- repoPath: "/path/to/project"
518
- });
519
- ```
520
-
521
- ---
522
-
523
- ## [0.9.7] - 2026-02-03
524
-
525
- ### 🔍 HNSW — Hierarchical Navigable Small World
526
-
527
- #### Added
528
-
529
- - **HNSW Module** (`src/workflows/hnsw.ts`)
530
- - Fast approximate nearest neighbor search
531
- - 150x-12,500x faster than brute force
532
- - Pure TypeScript implementation (no dependencies)
533
- - Based on Malkov & Yashunin (2016) algorithm
534
-
535
- - **Vector Operations**
536
- - Cosine similarity (default)
537
- - Euclidean distance
538
- - Dot product
539
- - Configurable dimensions (384, 768, 1536)
540
-
541
- - **Simple Embeddings**
542
- - Built-in bag-of-words embedder for demos
543
- - Works without external API
544
- - Can use custom vectors from OpenAI/Cohere/etc.
545
-
546
- - **Smart Tool #51: `swarm_vector`**
547
- - `init`: Initialize vector index
548
- - `add`: Add document with text or vector
549
- - `add_batch`: Add multiple documents
550
- - `search`: Find similar documents
551
- - `get`: Get document by ID
552
- - `delete`: Remove document
553
- - `list`: List all documents
554
- - `stats`: Index statistics
555
- - `config` / `set_config`: Configuration
556
- - `clear`: Clear entire index
557
- - `duplicates`: Find duplicate documents
558
- - `embed`: Get embedding for text
559
-
560
- - **Dashboard API Endpoint** (`/api/vector`)
561
- - Index statistics
562
- - Configuration status
563
- - Memory usage tracking
564
-
565
- #### Use Cases
566
-
567
- - Semantic search in knowledge base
568
- - Finding similar code snippets
569
- - Context retrieval for agents
570
- - Duplicate detection
571
- - Clustering related tasks
572
-
573
- #### Example Usage
574
-
575
- ```typescript
576
- // Initialize index
577
- swarm_vector({
578
- action: "init",
579
- repoPath,
580
- config: { dimensions: 384, distanceMetric: "cosine" }
581
- })
582
-
583
- // Add documents
584
- swarm_vector({
585
- action: "add",
586
- repoPath,
587
- id: "doc-1",
588
- text: "How to configure authentication in Express.js",
589
- metadata: { category: "backend", language: "javascript" }
590
- })
591
-
592
- // Search for similar
593
- swarm_vector({
594
- action: "search",
595
- repoPath,
596
- query: "setting up JWT auth",
597
- k: 5,
598
- filter: { category: "backend" }
599
- })
600
- // → [{ id: "doc-1", score: 0.85, ... }, ...]
601
-
602
- // Find duplicates
603
- swarm_vector({
604
- action: "duplicates",
605
- repoPath,
606
- threshold: 0.95
607
- })
608
- // → [{ id1: "doc-1", id2: "doc-5", similarity: 0.97 }, ...]
609
-
610
- // Get statistics
611
- swarm_vector({ action: "stats", repoPath })
612
- // { totalDocuments: 150, dimensions: 384, memoryKB: 245, ... }
613
- ```
614
-
615
- #### Performance
616
-
617
- | Documents | Brute Force | HNSW | Speedup |
618
- |-----------|-------------|------|---------|
619
- | 1,000 | 10ms | 0.5ms | 20x |
620
- | 10,000 | 100ms | 0.8ms | 125x |
621
- | 100,000 | 1,000ms | 1.2ms | 833x |
622
- | 1,000,000 | 10,000ms | 2ms | 5,000x |
623
-
624
- ---
625
-
626
- ## [0.9.6] - 2026-02-03
627
-
628
- ### Agent Booster Fast Local Execution
629
-
630
- #### Added
631
-
632
- - **Agent Booster Module** (`src/workflows/agentBooster.ts`)
633
- - Executes trivial tasks locally without LLM API calls
634
- - 352x faster than LLM (local execution)
635
- - $0 cost (no API calls needed)
636
- - Works offline
637
- - Deterministic results
638
-
639
- - **Supported Task Types** (14 types)
640
- - `rename_variable` Rename variables/functions across file
641
- - `fix_typo` Fix typos in strings and comments only
642
- - `find_replace` Simple find and replace
643
- - `add_console_log` Add debug logging at specific line
644
- - `remove_console_log` — Remove all console.log statements
645
- - `toggle_flag` Toggle boolean flags (true ↔ false)
646
- - `update_version` Update version numbers
647
- - `update_import` Update import paths
648
- - `add_comment` — Add comment at specific line
649
- - `remove_comment` Remove single-line comments
650
- - `format_json` — Format JSON files
651
- - `sort_imports` — Sort imports alphabetically
652
- - `add_export` — Add export to function/class
653
- - `extract_constant` Extract magic number to constant
654
-
655
- - **Smart Detection**
656
- - `can_boost` action analyzes task description
657
- - Auto-detects boostable tasks with confidence score
658
- - Extracts parameters from natural language
659
-
660
- - **Smart Tool #50: `swarm_booster`**
661
- - `execute`: Run a booster task
662
- - `can_boost`: Check if task can be boosted
663
- - `stats`: Get booster statistics
664
- - `history`: Get execution history
665
- - `config`: Get configuration
666
- - `set_config`: Update configuration
667
- - `types`: List supported task types
668
-
669
- - **Dashboard API Endpoint** (`/api/booster`)
670
- - Booster statistics and type distribution
671
- - Recent execution history
672
- - Configuration status
673
- - Cost savings tracking
674
-
675
- #### Example Usage
676
-
677
- ```typescript
678
- // Check if task can be boosted
679
- swarm_booster({
680
- action: "can_boost",
681
- repoPath,
682
- description: "rename variable oldName to newName in file.ts"
683
- })
684
- // Returns: { canBoost: true, taskType: "rename_variable", confidence: 0.9, ... }
685
-
686
- // Execute a booster task
687
- swarm_booster({
688
- action: "execute",
689
- repoPath,
690
- task: {
691
- type: "rename_variable",
692
- filePath: "src/utils.ts",
693
- oldName: "getData",
694
- newName: "fetchUserData"
695
- }
696
- })
697
- // Returns: { success: true, changes: 5, timeMs: 2, savedCost: 0.01, ... }
698
-
699
- // Remove all console.log from file
700
- swarm_booster({
701
- action: "execute",
702
- repoPath,
703
- task: {
704
- type: "remove_console_log",
705
- filePath: "src/debug.ts"
706
- }
707
- })
708
-
709
- // Preview changes without applying (dry run)
710
- swarm_booster({
711
- action: "execute",
712
- repoPath,
713
- dryRun: true,
714
- task: {
715
- type: "find_replace",
716
- filePath: "src/config.ts",
717
- searchText: "localhost",
718
- replaceText: "production.api.com"
719
- }
720
- })
721
-
722
- // Get statistics
723
- swarm_booster({ action: "stats", repoPath })
724
- // Returns: { totalTasks: 50, successRate: 98, costSaved: "$0.50", ... }
725
- ```
726
-
727
- #### Benefits
728
-
729
- | Metric | LLM | Agent Booster | Improvement |
730
- |--------|-----|---------------|-------------|
731
- | Speed | ~3000ms | ~8ms | 352x faster |
732
- | Cost | $0.01/task | $0 | 100% savings |
733
- | Offline | | ✅ | Works anywhere |
734
- | Deterministic | ⚠️ | ✅ | Same input = same output |
735
-
736
- ---
737
-
738
- ## [0.9.5] - 2026-02-03
739
-
740
- ### 🧠 SONA Self-Optimizing Neural Architecture
741
-
742
- #### Added
743
-
744
- - **SONA Module** (`src/workflows/sona.ts`)
745
- - Self-learning task routing system inspired by Claude-Flow
746
- - Records which agents perform best for each task type
747
- - Routes new tasks to best-performing agents
748
- - Learns from outcomes with <0.05ms adaptation
749
- - Improves over time with reinforcement learning
750
-
751
- - **Task Classification**
752
- - Automatic category detection: frontend_ui, backend_api, database, testing, devops, documentation, refactoring, bugfix, feature, security, performance, infrastructure
753
- - Complexity estimation: trivial, simple, medium, complex, epic
754
- - Keyword-based pattern matching
755
- - Affected path analysis
756
-
757
- - **Agent Performance Tracking**
758
- - Success rate tracking per category
759
- - Quality score averaging
760
- - Completion time tracking
761
- - Statistical confidence calculation
762
- - Specialization detection (top 3 categories per agent)
763
-
764
- - **Online Learning**
765
- - Exponential moving average for rolling metrics
766
- - Configurable learning rate and decay
767
- - Elastic Weight Consolidation (EWC++) to prevent forgetting
768
- - Exploration/exploitation balance (10% exploration by default)
769
-
770
- - **Smart Tool #49: `swarm_sona`**
771
- - `route`: Get routing recommendation for a task
772
- - `learn`: Record task outcome and update model
773
- - `classify`: Classify a task (category, complexity)
774
- - `profile`: Get agent's performance profile
775
- - `profiles`: Get all agent profiles
776
- - `specialists`: Get top agents for a category
777
- - `history`: Get learning history
778
- - `stats`: Get SONA statistics
779
- - `config`: Get configuration
780
- - `set_config`: Update configuration
781
- - `reset`: Reset the model
782
-
783
- - **Dashboard API Endpoint** (`/api/sona`)
784
- - Get SONA statistics and agent profiles
785
- - View category distribution
786
- - Monitor recent learning events
787
- - Check top performing agents
788
-
789
- #### How SONA Works
790
-
791
- 1. **Classification**: When a new task arrives, SONA classifies it by category and complexity
792
- 2. **Routing**: SONA recommends the best agent based on historical performance
793
- 3. **Execution**: The agent completes the task
794
- 4. **Learning**: SONA records the outcome and updates agent profiles
795
- 5. **Improvement**: Over time, routing becomes more accurate
796
-
797
- #### Example Usage
798
-
799
- ```typescript
800
- // Get routing recommendation
801
- swarm_sona({
802
- action: "route",
803
- repoPath,
804
- title: "Fix login button styling",
805
- description: "Button is not visible on dark theme",
806
- affectedFiles: ["src/components/Login.tsx", "src/styles/buttons.css"]
807
- })
808
- // Returns: { recommendedAgent: "RadiantWolf", confidence: 0.85, category: "frontend_ui", ... }
809
-
810
- // Record learning after task completion
811
- swarm_sona({
812
- action: "learn",
813
- repoPath,
814
- taskId: "task-123",
815
- agentName: "RadiantWolf",
816
- title: "Fix login button styling",
817
- description: "Button is not visible on dark theme",
818
- success: true,
819
- qualityScore: 0.9,
820
- timeMinutes: 15
821
- })
822
-
823
- // Get specialists for backend work
824
- swarm_sona({
825
- action: "specialists",
826
- repoPath,
827
- category: "backend_api",
828
- limit: 3
829
- })
830
- // Returns: [{ agent: "StormyOwl", score: 0.92, ... }, ...]
831
-
832
- // Configure SONA
833
- swarm_sona({
834
- action: "set_config",
835
- repoPath,
836
- config: {
837
- explorationRate: 0.15, // More exploration
838
- autoLearn: true,
839
- preferSpecialists: true
840
- }
841
- })
842
- ```
843
-
844
- #### Comparison with Claude-Flow SONA
845
-
846
- | Feature | Claude-Flow | MCP Swarm v0.9.5 |
847
- |---------|-------------|------------------|
848
- | Self-learning | ✅ | ✅ |
849
- | Category classification | | 13 categories |
850
- | Complexity estimation | ⚠️ Basic | 5 levels |
851
- | EWC++ (prevent forgetting) | | ✅ |
852
- | Distributed coordination | Local only | ✅ Cloudflare Hub |
853
- | Dashboard integration | ⚠️ Limited | ✅ /api/sona |
854
- | Telegram notifications | | ✅ |
855
-
856
- ---
857
-
858
- ## [0.9.4] - 2026-02-03
859
-
860
- ### 📱 Telegram Bot Integration
861
-
862
- #### Added
863
-
864
- - **Telegram Bot** (`src/integrations/telegram.ts`)
865
- - Full-featured Telegram bot for notifications and control
866
- - Event notifications: task created/completed/failed, agent joined/died, CI errors
867
- - Commands: `/status`, `/agents`, `/tasks`, `/create_task`, `/stop`, `/resume`, `/config`
868
- - Interactive inline buttons for quick actions
869
- - Priority setting via buttons (Critical, High, Medium)
870
- - Approve/Reject/Comment on reviews via Telegram
871
- - Vote on architecture decisions via Telegram
872
-
873
- - **Smart Tool #47: `swarm_telegram`**
874
- - Actions: `setup`, `config`, `enable`, `disable`, `send`
875
- - Notifications: `notify_task_created`, `notify_task_completed`, `notify_task_failed`, `notify_agent_joined`, `notify_agent_died`
876
- - Bot control: `start_polling`, `stop_polling`, `command`
877
-
878
- - **Dashboard API Endpoint** (`/api/telegram`)
879
- - Get Telegram configuration status
880
- - Setup instructions if not configured
881
-
882
- #### Setup
883
-
884
- 1. Create a bot via @BotFather in Telegram
885
- 2. Set `TELEGRAM_BOT_TOKEN` environment variable
886
- 3. Get your chat ID (send /start to @userinfobot)
887
- 4. Configure via `swarm_telegram({ action: "setup", chatId: "YOUR_CHAT_ID" })`
888
-
889
- #### Example Usage
890
-
891
- ```typescript
892
- // Setup
893
- swarm_telegram({ action: "setup", repoPath, chatId: "123456789", enabled: true })
894
-
895
- // Send notification
896
- swarm_telegram({ action: "notify_task_created", repoPath, taskId: "task-1", title: "Fix bug", priority: "high" })
897
-
898
- // Start bot polling (for receiving commands)
899
- swarm_telegram({ action: "start_polling", repoPath })
900
- ```
901
-
902
- - **Cloudflare Worker for Telegram** (`cloudflare/telegram-bot/`)
903
- - Webhook-based (no polling required)
904
- - Deploy to Cloudflare Workers
905
- - `/setup` endpoint for webhook registration
906
-
907
- - **Smart Tool #48: `swarm_batch`**
908
- - Request batching for 50% cost savings
909
- - Supports Anthropic Message Batches API
910
- - Supports OpenAI Batch API
911
- - Actions: `queue`, `config`, `set_config`, `job`, `jobs`, `result`, `stats`, `flush`
912
-
913
- - **Batching Module** (`src/workflows/batching.ts`)
914
- - Automatic request grouping
915
- - Configurable batch size and wait time
916
- - Async batch processing with result polling
917
- - Cost savings estimation
918
-
919
- ---
920
-
921
- ## [0.9.3] - 2026-02-03
922
-
923
- ### 🧠 Smart Features & Cost Optimization
924
-
925
- #### Added
926
-
927
- - **Smart Task Routing** (`src/workflows/smartRouting.ts`)
928
- - Automatic task assignment based on file expertise
929
- - Tracks which agent edited which files
930
- - Calculates expertise scores (exact match 10x, folder 3x, extension 2x)
931
- - `recordFileEdit()`, `findBestAgent()`, `autoAssignTask()`
932
-
933
- - **Shared Context Pool** (`src/workflows/contextPool.ts`)
934
- - Agents share notes about code to avoid re-reading
935
- - Auto-staleness detection (if file hash changed)
936
- - Tags, categories, and helpful counter
937
- - `addContextNote()`, `getContextNotes()`, `searchContext()`
938
-
939
- - **Auto Code Review** (`src/workflows/autoReview.ts`)
940
- - Automatic review assignment when task completes
941
- - Finds reviewer who knows the affected files
942
- - Comment severity levels (critical, major, minor, suggestion)
943
- - `createReviewRequest()`, `addReviewComment()`, `completeReview()`
944
-
945
- - **GitHub/Linear Sync** (`src/workflows/externalSync.ts`)
946
- - Two-way sync with GitHub Issues
947
- - Linear.app integration (GraphQL API)
948
- - Auto-import issues as swarm tasks
949
- - Auto-close issues when task is done
950
- - `syncFromGitHub()`, `syncFromLinear()`, `exportTaskToGitHub()`
951
-
952
- - **Cost Optimization** (`src/workflows/costOptimization.ts`)
953
- - Task complexity analysis (simple/medium/complex)
954
- - Smart model routing (cheap/standard/premium tiers)
955
- - Budget management with daily/weekly/monthly limits
956
- - Alert thresholds (50%, 80%, 95%)
957
- - Supports GPT-3.5, GPT-4o, Claude 3 Haiku/Sonnet/Opus, Gemini, o1
958
- - `analyzeTaskComplexity()`, `routeTask()`, `checkBudget()`, `generateCostReport()`
959
-
960
- - **Background Heartbeat Worker** (`src/workers/`)
961
- - Uses Node.js `worker_threads` for continuous heartbeat
962
- - Works even when agent is "thinking"
963
- - `startHeartbeatWorker()`, `stopHeartbeatWorker()`
964
-
965
- - **Web Dashboard** (`dashboard/`)
966
- - Real-time agent status monitoring
967
- - Orchestrator status banner with glow effects
968
- - Stats cards (agents, tasks, messages, uptime)
969
- - Task list with priority indicators
970
- - Built with Next.js + ShadCN UI
971
-
972
- - **Dashboard API** (`src/dashboardApi.ts`)
973
- - HTTP API server on port 3334
974
- - Endpoints: `/api/agents`, `/api/tasks`, `/api/messages`, `/api/orchestrator`
975
- - **New v0.9.3 endpoints:**
976
- - `GET /api/expertise` — Smart Routing expertise map
977
- - `GET /api/context` — Context Pool notes
978
- - `GET /api/reviews` — Auto Review status
979
- - `GET /api/budget` — Cost budget and usage
980
- - `GET /api/sync` — External Sync status
981
-
982
- #### Smart Tools (42-46)
983
-
984
- | # | Tool | Actions | Description |
985
- |---|------|---------|-------------|
986
- | 42 | `swarm_routing` | record, find_agent, expertise, predict, auto_assign | Smart task routing based on file expertise |
987
- | 43 | `swarm_context_pool` | add, get, search_tag, search, helpful, update, cleanup, stats | Shared context notes between agents |
988
- | 44 | `swarm_autoreview` | create, assign, comment, complete, resolve, for_reviewer, for_author, pending, stats | Automatic code review assignment |
989
- | 45 | `swarm_external` | enable_github, enable_linear, sync_github, sync_linear, sync_all, export_github, export_linear, status, create_issue, close_issue, comment | GitHub/Linear sync |
990
- | 46 | `swarm_budget` | analyze, models, select, recommend, route, log_usage, usage, stats, config, set_config, check, remaining, report | Cost optimization and model routing |
991
-
992
- ---
993
-
994
- ## [0.9.1] - 2026-02-02
995
-
996
- ### 📚 Documentation & UX Improvements
997
-
998
- #### Added
999
- - **Linux Installation Instructions** — полные инструкции для Linux
1000
- - **IDE-Specific Configs** — отдельные конфигурации для:
1001
- - Claude Desktop (Windows/macOS/Linux)
1002
- - Cursor
1003
- - Windsurf
1004
- - OpenCode CLI
1005
- - VS Code + Copilot/Continue
1006
- - **Troubleshooting Section** — решения частых проблем:
1007
- - "Cannot find module" errors
1008
- - Agent не становится оркестратором
1009
- - "repoPath is required" ошибка
1010
- - Cloudflare Hub недоступен
1011
- - Файлы заблокированы другим агентом
1012
- - **Architecture Diagram** — ASCII-схема архитектуры Cloudflare Hub + Local Agents
1013
- - **Contributing Guidelines** — правила для PR
1014
-
1015
- #### Changed
1016
- - README.md полностью переработан с collapsible секциями (`<details>`)
1017
-
1018
- ### 🔮 Future Improvements (Roadmap)
1019
-
1020
- #### Heartbeat Daemon Enhancement (Planned)
1021
- Текущая проблема: когда агент "думает" (processing), он не может отправлять heartbeat, что может привести к ложному срабатыванию dead-detection после 60 секунд.
1022
-
1023
- Планируемые решения:
1024
- 1. **Background Worker** — отдельный процесс для heartbeat (требует Node.js worker_threads)
1025
- 2. **Longer Timeout** — увеличить HEARTBEAT_TIMEOUT_MS до 5 минут
1026
- 3. **Thinking State** — добавить состояние "thinking" которое не считается dead
1027
- 4. **Companion Daemon** — использовать существующий companion.ts для heartbeat
1028
-
1029
- ---
1030
-
1031
- ## [0.9.0] - 2026-02-02
1032
-
1033
- ### 🚀 MAJOR: Smart Tools Consolidation
1034
-
1035
- **Reduces 168+ individual tools → 41 Smart Tools with `action` parameter**
1036
-
1037
- This is a major UX improvement. Instead of agents needing to remember 168+ tool names,
1038
- they now work with 41 logical groups where related functionality is accessed via the `action` parameter.
1039
-
1040
- ### Added
1041
-
1042
- - **Smart Tools System** — 41 unified tools replacing 168+ individual tools
1043
- - Each Smart Tool groups 3-15 related functions via `action` parameter
1044
- - Better discoverability and easier to remember
1045
- - Consistent parameter patterns across all tools
1046
-
1047
- ### Smart Tools List (41 tools)
1048
-
1049
- | # | Tool Name | Actions | Description |
1050
- |---|-----------|---------|-------------|
1051
- | 1 | `swarm_agent` | register, whoami | Agent identity |
1052
- | 2 | `swarm_task` | create, list, update, decompose, get_decomposition | Task management |
1053
- | 3 | `swarm_file` | reserve, release, list, forecast, conflicts, safety | File locking |
1054
- | 4 | `swarm_git` | sync, pr, health, cleanup, cleanup_all | Git operations |
1055
- | 5 | `swarm_worktree` | create, list, remove | Git worktrees |
1056
- | 6 | `swarm_companion` | status, stop, pause, resume | Companion daemon |
1057
- | 7 | `swarm_control` | stop, resume, status | Swarm control |
1058
- | 8 | `swarm_chat` | broadcast, dashboard, thought, thoughts | Team chat |
1059
- | 9 | `swarm_review` | request, respond, list | Code review |
1060
- | 10 | `swarm_voting` | start, vote, list, get | Voting system |
1061
- | 11 | `swarm_auction` | announce, bid, poll | Task auction |
1062
- | 12 | `swarm_mcp` | scan, authorize, policy | MCP scanning |
1063
- | 13 | `swarm_orchestrator` | elect, info, heartbeat, resign, executors, executor_heartbeat | Orchestrator |
1064
- | 14 | `swarm_message` | send, inbox, ack, reply, search, thread | Messaging |
1065
- | 15 | `swarm_briefing` | save, load | Briefings |
1066
- | 16 | `swarm_pulse` | update, get | Real-time status |
1067
- | 17 | `swarm_knowledge` | archive, search | Knowledge base |
1068
- | 18 | `swarm_snapshot` | create, rollback, list | Snapshots |
1069
- | 19 | `swarm_health` | check, dead, reassign, summary | Agent health |
1070
- | 20 | `swarm_quality` | run, report, threshold, pr_ready | Quality gate |
1071
- | 21 | `swarm_cost` | log, agent, project, limit, remaining | Cost tracking |
1072
- | 22 | `swarm_brainstorm` | start, ask, answer, propose, present, validate, save, get, list | Brainstorming |
1073
- | 23 | `swarm_plan` | create, add, next, start, step, complete, prompt, export, status, list, ready | Plans |
1074
- | 24 | `swarm_debug` | start, investigate, evidence, phase1, patterns, phase2, hypothesis, test, fix, verify, get, list, redflags | Debugging |
1075
- | 25 | `swarm_spec` | start, phase, complete, get, list, export | Spec pipeline |
1076
- | 26 | `swarm_qa` | start, iterate, fix, get, list, suggest, report | QA loop |
1077
- | 27 | `swarm_hooks` | install, uninstall, run, config, update, list | Git hooks |
1078
- | 28 | `swarm_screenshot` | share, list | Screenshots |
1079
- | 29 | `swarm_dependency` | signal, sync | Dependencies |
1080
- | 30 | `swarm_platform` | request, respond, list | Cross-platform |
1081
- | 31 | `swarm_immune` | alert, resolve, status, test, patrol | Immune system |
1082
- | 32 | `swarm_context` | estimate, compress, compress_many, stats | Context compression |
1083
- | 33 | `swarm_regression` | baseline, check, list, resolve, baselines | Regression detection |
1084
- | 34 | `swarm_expertise` | track, suggest, record, experts, list | Agent expertise |
1085
- | 35 | `swarm_conflict` | predict, analyze, hotspots, record | Conflict prediction |
1086
- | 36 | `swarm_timeline` | generate, visualize | Timeline |
1087
- | 37 | `swarm_docs` | generate, task_docs, list, get | Documentation |
1088
- | 38 | `swarm_advice` | request, provide, list | Collective advice |
1089
- | 39 | `swarm_preemption` | trigger, resolve, active | Urgent preemption |
1090
- | 40 | `swarm_clusters` | init, list, tools, find, add, create, summary | Tool clusters |
1091
- | 41 | `swarm_session` | start, log, stop, list, replay | Session recording |
1092
-
1093
- ### Example Usage
1094
-
1095
- **Before (v0.8.x):**
1096
- ```
1097
- tool: task_create
1098
- tool: task_list
1099
- tool: task_assign
1100
- tool: task_set_status
1101
- tool: task_mark_done
1102
- ... (9 separate tools)
1103
- ```
1104
-
1105
- **After (v0.9.0):**
1106
- ```
1107
- tool: swarm_task
1108
- action: "create" | "list" | "update" | "decompose" | "get_decomposition"
1109
- ```
1110
-
1111
- ### Files Changed
1112
-
1113
- - `src/smartTools.ts` — All 41 Smart Tools with correct workflow signatures
1114
- - `src/serverSmart.ts` — New server entry point for Smart Tools
1115
- - `package.json` — v0.9.0, added `dev:legacy` script for backward compatibility
1116
-
1117
- ### Backward Compatibility
1118
-
1119
- - Legacy 168+ tools server available via `npm run dev:legacy`
1120
- - Smart Tools server via `npm run dev` (default)
1121
-
1122
- ---
1123
-
1124
- ## [0.8.1] - 2026-02-02
1125
-
1126
- ### Добавлено
1127
- - **Smart Tools Draft** — прототип объединения 168+ tools в 41 Smart Tool
1128
- - Файлы `smartTools.ts.draft` и `serverSmart.ts.draft` — прототип для будущей версии
1129
- - Каждый Smart Tool объединяет 3-15 похожих tools через параметр `action`
1130
- - Пример: `swarm_task(action: "create|list|assign|done|cancel|...")` вместо 9 отдельных tools
1131
-
1132
- ### В процессе (для v0.9.0)
1133
- - Smart Tools требует адаптации к актуальным сигнатурам workflow функций
1134
- - Будет завершено в следующей версии
1135
-
1136
- ---
1137
-
1138
- ## [0.8.0] - 2026-02-02
1139
-
1140
- ### Добавлено
1141
- - **Orchestrator Election** (6 tools) — первый агент становится оркестратором
1142
- - `orchestrator_elect` — выбор оркестратора (first-come-first-served)
1143
- - `orchestrator_info` — информация об оркестраторе
1144
- - `orchestrator_heartbeat` — heartbeat оркестратора
1145
- - `orchestrator_resign` — отставка оркестратора
1146
- - `executor_list` — список всех исполнителей
1147
- - `executor_heartbeat` — heartbeat исполнителя
1148
-
1149
- - **Agent Messaging** (6 tools) — полная система обмена сообщениями между агентами
1150
- - `agent_message_send` — отправить сообщение (direct или broadcast)
1151
- - `agent_inbox_fetch` — получить входящие сообщения
1152
- - `agent_message_ack` — подтвердить получение
1153
- - `agent_message_reply` — ответить на сообщение
1154
- - `agent_message_search` — поиск по сообщениям
1155
- - `agent_thread_get` — получить тред сообщений
1156
-
1157
- - **Infinite Loop Mode** — оркестратор работает бесконечно
1158
- - Companion daemon с автоматическим orchestrator election
1159
- - Оркестратор НЕ останавливается по API — только пользователем
1160
- - Исполнители регистрируются у оркестратора
1161
- - Heartbeat система для мониторинга "живости"
1162
-
1163
- ### Изменено
1164
- - **companion.ts** — полностью переписан для Orchestrator mode
1165
- - **Installer** — обновлён до v0.8.0 (168+ tools, 14 категорий)
1166
-
1167
- ### Архитектура
1168
-
1169
- ```
1170
- ┌─────────────────────────────────────────────────────┐
1171
- │ FIRST AGENT │
1172
- │ (ORCHESTRATOR) │
1173
- │ - Elected automatically (first-come-first-served) │
1174
- │ - Runs in INFINITE LOOP │
1175
- │ - Only user can stop (stdin) │
1176
- │ - Coordinates all executors │
1177
- └────────────────────────┬────────────────────────────┘
1178
-
1179
- ┌───────────────┼───────────────┐
1180
- ▼ ▼ ▼
1181
- ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
1182
- │ EXECUTOR 1 │ │ EXECUTOR 2 │ │ EXECUTOR N │
1183
- │ (Claude) │ │ (Cursor) │ │ (Windsurf) │
1184
- │ - Registers │ │ - Registers │ │ - Registers │
1185
- │ - Gets tasks│ │ - Gets tasks│ │ - Gets tasks│
1186
- │ - Heartbeat │ │ - Heartbeat │ │ - Heartbeat │
1187
- └─────────────┘ └─────────────┘ └─────────────┘
1188
- ```
1189
-
1190
- ### Хранение данных
1191
-
1192
- ```
1193
- .swarm/
1194
- ├── ORCHESTRATOR.json # Состояние оркестратора
1195
- ├── messages/ # Canonical сообщения
1196
- │ └── msg-*.json
1197
- └── inbox/ # Inbox каждого агента
1198
- ├── RadiantWolf/
1199
- └── SilentFox/
1200
- ```
1201
-
1202
- ---
1203
-
1204
- ## [0.7.0] - 2026-02-02
1205
-
1206
- ### Добавлено
1207
- - **Spec Pipeline** (6 tools) — структурированный pipeline для создания спецификаций
1208
- - `start_spec_pipeline` — начать pipeline с 4 ролями
1209
- - `start_spec_phase` — начать фазу (gatherer/researcher/writer/critic)
1210
- - `complete_spec_phase` — завершить фазу с output
1211
- - `get_spec_pipeline` — получить статус pipeline
1212
- - `list_spec_pipelines` — список всех pipelines
1213
- - `export_spec_as_markdown` — экспорт спецификации в markdown
1214
-
1215
- - **QA Loop** (7 tools) — итеративные циклы review/fix
1216
- - `start_qa_loop` — начать QA loop для задачи
1217
- - `run_qa_iteration` — запустить итерацию проверок
1218
- - `log_qa_fix` — записать применённый fix
1219
- - `get_qa_loop` — получить статус loop
1220
- - `list_qa_loops` — список всех loops
1221
- - `get_qa_fix_suggestions` — получить предложения по fix
1222
- - `generate_qa_report` — сгенерировать markdown отчёт
1223
-
1224
- - **Guard Hooks** (6 tools) — pre-commit/pre-push safety hooks
1225
- - `install_guard_hooks` — установить hooks в репозиторий
1226
- - `uninstall_guard_hooks` — удалить hooks
1227
- - `run_guard_hooks` — запустить hooks вручную (для тестирования)
1228
- - `get_guard_config` — получить конфигурацию hooks
1229
- - `update_guard_hook` — обновить конфигурацию hook
1230
- - `list_guard_hooks` — список всех hooks
1231
-
1232
- - **Tool Clusters** (7 tools) — организация tools по категориям
1233
- - `init_tool_clusters` — инициализировать кластеры tools
1234
- - `list_tool_clusters` — список всех кластеров
1235
- - `get_cluster_tools` — получить tools в кластере
1236
- - `find_tool_cluster` — найти кластер для tool
1237
- - `add_tool_to_cluster` — добавить tool в кластер
1238
- - `create_tool_cluster` — создать новый кластер
1239
- - `get_tool_cluster_summary` — получить summary всех кластеров
1240
-
1241
- ### Методологии
1242
- - **Spec Pipeline:** 4 роли (gatherer → researcher → writer → critic) с итерациями
1243
- - **QA Loop:** reviewer → fixer → loop до прохождения всех проверок
1244
- - **Guard Hooks:** bypass с ключевым словом [skip-hooks] в commit message
1245
- - **Tool Clusters:** 13 категорий (agent, task, file, git, collab, safety, quality, debug, plan, hooks, session, cost, docs)
1246
-
1247
- ---
1248
-
1249
- ## [0.6.0] - 2026-01-30
1250
-
1251
- ### Добавлено
1252
- - **Brainstorming Skill** (9 tools) — интерактивный дизайн через вопросы по одному
1253
- - `start_brainstorm` — начать сессию brainstorming
1254
- - `ask_brainstorm_question` — задать вопрос (ONE at a time, multiple choice preferred)
1255
- - `answer_brainstorm_question` — записать ответ пользователя
1256
- - `propose_approaches` — предложить варианты с pros/cons
1257
- - `present_design_section` — представить секцию дизайна (200-300 слов max)
1258
- - `validate_design_section` — валидация секции дизайна
1259
- - `save_design_document` — сохранить результат в `docs/plans/`
1260
- - `get_brainstorm_session` — получить статус сессии
1261
- - `list_brainstorm_sessions` — список всех сессий
1262
-
1263
- - **Writing Plans Skill** (11 tools) — TDD-планы с bite-sized задачами
1264
- - `create_implementation_plan` — создать план имплементации
1265
- - `add_plan_task` — добавить задачу с TDD-шагами
1266
- - `get_next_task` — следующая задача (учитывает dependencies)
1267
- - `start_plan_task` — начать работу над задачей
1268
- - `complete_step` — завершить шаг TDD (write_test/run_test/implement/verify/commit)
1269
- - `complete_plan_task` — завершить задачу
1270
- - `generate_subagent_prompt` — генерировать детальный промпт для субагента
1271
- - `export_plan_as_markdown` — экспорт плана в markdown
1272
- - `get_plan_status` — статус плана
1273
- - `list_plans` — список всех планов
1274
- - `mark_plan_ready` — пометить план готовым к выполнению
1275
-
1276
- - **Systematic Debugging** (13 tools) — 4-фазный процесс дебага (NO FIXES WITHOUT ROOT CAUSE!)
1277
- - `start_debug_session` — Phase 1: Investigation (NO FIXES YET!)
1278
- - `log_investigation` — логировать анализ ошибок
1279
- - `add_evidence` — добавить evidence (input/output компонентов)
1280
- - `complete_phase_1` — перейти к Phase 2: Pattern Analysis
1281
- - `log_patterns` — логировать working examples
1282
- - `complete_phase_2` — перейти к Phase 3: Hypothesis
1283
- - `form_hypothesis` — сформулировать гипотезу
1284
- - `test_hypothesis` — проверить гипотезу
1285
- - `implement_fix` — Phase 4: реализовать исправление
1286
- - `verify_fix` — верифицировать и завершить сессию
1287
- - `get_debug_session` — получить статус сессии
1288
- - `list_debug_sessions` — список всех сессий
1289
- - `check_red_flags` — проверить на анти-паттерны мышления
1290
-
1291
- ### Методологии (из obra/superpowers)
1292
- - **Brainstorming:** вопросы по одному, валидация секций (200-300 слов max)
1293
- - **Writing Plans:** TDD bite-sized tasks (2-5 мин), DRY/YAGNI
1294
- - **Systematic Debugging:** 4 фазы, Iron Law — NO FIXES WITHOUT ROOT CAUSE
1295
- - **Red Flags:** "Let me just try...", "Maybe if I...", "This should fix it..."
1296
-
1297
- ---
1298
-
1299
- ## [0.5.0] - 2026-01-30
1300
-
1301
- ### Добавлено
1302
- - **Agent Health Monitor** — мониторинг "живости" агентов
1303
- - `check_agent_health` — проверить статус конкретного агента
1304
- - `get_dead_agents` — найти агентов без активности > N минут
1305
- - `force_reassign_task` — переназначить задачу от мёртвого агента
1306
- - `get_swarm_health_summary` — общее здоровье swarm
1307
-
1308
- - **Session Recording** — запись действий для replay
1309
- - `start_session_recording` — начать запись сессии
1310
- - `log_session_action` — записать действие (tool, edit, command)
1311
- - `stop_session_recording` — остановить запись
1312
- - `list_session_recordings` — список всех записей
1313
- - `replay_session` — воспроизвести запись step-by-step
1314
-
1315
- - **Quality Gate** — автопроверки перед merge
1316
- - `run_quality_gate` — запустить проверки (lint, tests, types, coverage)
1317
- - `get_quality_report` — получить отчёт с баллами
1318
- - `set_quality_threshold` — установить минимальные пороги
1319
- - `check_pr_ready` — готовность PR к merge
1320
-
1321
- - **Cost Tracker** — отслеживание расходов на API
1322
- - `log_api_usage` — записать использование (tokens, cost)
1323
- - `get_agent_costs` — расходы конкретного агента
1324
- - `get_project_costs` — общие расходы проекта
1325
- - `set_budget_limit` — установить лимит
1326
- - `check_budget_remaining` — остаток до лимита
1327
-
1328
- - **Context Compressor** — сжатие briefings
1329
- - `estimate_context_size` — оценить размер в токенах
1330
- - `compress_briefing` — сжать briefing (ratio 0.1-0.9)
1331
- - `compress_multiple_briefings` — сжать несколько briefings
1332
- - `get_compression_stats` — статистика сжатия
1333
-
1334
- - **Regression Detector** — обнаружение регрессий
1335
- - `save_baseline` — сохранить эталонные метрики
1336
- - `check_regression` — сравнить с baseline
1337
- - `list_regressions` — список найденных регрессий
1338
- - `resolve_regression` — отметить регрессию исправленной
1339
- - `list_baselines` — список сохранённых baseline
1340
-
1341
- ### Исправлено
1342
- - **Installer** — улучшен детект установленных IDE
1343
- - Проверка исполняемых файлов через `where`/`which`
1344
- - Проверка стандартных путей установки (Program Files, /Applications)
1345
- - Функция `isIdeInstalled()` с 3 методами проверки
1346
- - Конфиги создаются только для реально установленных IDE
1347
-
1348
- ---
1349
-
1350
- ## [0.4.2] - 2026-01-28
1351
-
1352
- ### Добавлено
1353
- - **Timeline Visualization** — визуализация хода задачи
1354
- - `generate_timeline` — создать таймлайн для задачи
1355
- - `get_timeline_visualization` — красивый ASCII таймлайн с milestone
1356
-
1357
- ---
1358
-
1359
- ## [0.4.1] - 2026-01-25
1360
-
1361
- ### Добавлено
1362
- - **Auto-Documentation** — автогенерация документации при завершении задач
1363
- - `generate_task_docs` — создать markdown с diff и summary
1364
- - `list_task_docs` — список всех документов
1365
- - `get_task_doc` — получить конкретный документ
1366
- - Хранение в `swarm/docs/` с индексом INDEX.md
1367
-
1368
- - **Agent Specialization (ML-based)** — запоминание экспертизы агентов
1369
- - `record_agent_edit` — записать какие файлы агент правил
1370
- - `suggest_agent_advanced` — рекомендовать лучшего агента для задачи
1371
- - `get_top_experts` — топ экспертов в конкретной области
1372
- - `list_all_agent_expertise` — полная карта экспертизы
1373
-
1374
- - **Conflict Prediction (ML-based)** — предсказание merge-конфликтов
1375
- - `analyze_conflict_history` — сканировать историю Git
1376
- - `get_conflict_hotspots` — файлы с наибольшим риском конфликтов
1377
- - `check_file_safety` — безопасно ли редактировать файл
1378
- - `record_conflict_event` — записать событие конфликта
1379
-
1380
- ---
1381
-
1382
- ## [0.4.0] - 2026-01-20
1383
-
1384
- ### Добавлено
1385
- - **Cloudflare Hub** — real-time WebSocket координация
1386
- - Durable Object для хранения состояния
1387
- - WebSocket broadcast между агентами
1388
- - Anti-duplication для task claims
1389
- - Hybrid mode (WS + Git fallback)
1390
-
1391
- - **Orchestrator Directory** — центр управления `/orchestrator/`
1392
- - PULSE.md — живая карта агентов
1393
- - KNOWLEDGE_BASE.md — коллективная база знаний
1394
- - briefings/ — ментальные слепки
1395
- - snapshots/ — снапшоты для отката
1396
-
1397
- ---
1398
-
1399
- ## [0.3.0] - 2026-01-15
1400
-
1401
- ### Добавлено
1402
- - **Collective Advice** — коллективный мозговой штурм
1403
- - `request_collective_advice` — запросить помощь у всех агентов
1404
- - `provide_advice` — дать совет на запрос
1405
- - `get_advice_responses` — получить все ответы
1406
-
1407
- - **Urgent Preemption** — приоритетный захват файлов
1408
- - `trigger_urgent_preemption` — экстренный приоритет для критичных багов
1409
- - Автоматическое освобождение файлов другими агентами
1410
-
1411
- - **Snapshot & Rollback** — откат изменений
1412
- - `create_snapshot` — создать снапшот перед изменениями
1413
- - `trigger_rollback` — откатить к снапшоту
1414
- - `list_snapshots` — список снапшотов
1415
-
1416
- - **Immune System** — автореакция на падение CI/тестов
1417
- - `report_ci_alert` — сообщить о CI ошибке
1418
- - `get_immune_status` — статус immune system
1419
- - Автоматическая блокировка опасных веток
1420
-
1421
- ---
1422
-
1423
- ## [0.2.0] - 2026-01-10
1424
-
1425
- ### Добавлено
1426
- - **Architecture Voting** — голосование для опасных действий
1427
- - `start_voting` — начать голосование
1428
- - `cast_vote` — проголосовать
1429
- - `list_open_votings` — открытые голосования
1430
- - `get_voting_result` — результат голосования
1431
-
1432
- - **Git Worktrees** — изолированные рабочие пространства
1433
- - `worktree_create` — создать worktree
1434
- - `worktree_list` — список worktrees
1435
- - `worktree_remove` — удалить worktree
1436
-
1437
- - **GitHub Integration** — интеграция с GitHub
1438
- - `create_github_pr` — создать Pull Request
1439
- - `sync_with_base_branch` — rebase на main
1440
- - `auto_delete_merged_branch` — удалить merged ветки
1441
- - `check_main_health` — здоровье main ветки
1442
-
1443
- - **Cross-Agent Review** — ревью между агентами
1444
- - `request_cross_agent_review` — запросить ревью
1445
- - `respond_to_review` — ответить на ревью
1446
- - `list_pending_reviews` — ожидающие ревью
1447
-
1448
- ---
1449
-
1450
- ## [0.1.0] - 2026-01-05
1451
-
1452
- ### Добавлено
1453
- - **Agent Registry** — регистрация агентов
1454
- - `agent_register` — регистрация с уникальным именем
1455
- - `agent_whoami` — информация о текущем агенте
1456
- - Генерация имён типа RadiantWolf, SilentFox
1457
-
1458
- - **Task Management** — управление задачами
1459
- - `task_create` — создать задачу
1460
- - `task_list` — список задач
1461
- - `task_assign` — назначить агенту
1462
- - `task_set_status` — изменить статус
1463
- - `task_mark_done` — отметить выполненной
1464
- - `task_cancel` — отменить
1465
- - `task_link` — связать задачи
1466
- - `decompose_task` — разбить на подзадачи
1467
-
1468
- - **File Locking** — блокировка файлов
1469
- - `file_reserve` — заблокировать файл (exclusive/shared)
1470
- - `file_release` — освободить файл
1471
- - `list_file_locks` — список блокировок
1472
- - `forecast_file_touches` — анонсировать будущие изменения
1473
- - `check_file_conflicts` — проверить конфликты
1474
-
1475
- - **Collaboration** — базовая коллаборация
1476
- - `broadcast_chat` — отправить сообщение всем
1477
- - `update_team_dashboard` — обновить статус
1478
- - `share_screenshot` — поделиться скриншотом
1479
- - `log_swarm_thought` — записать мысль
1480
-
1481
- - **Auction System** — аукцион для задач
1482
- - `announce_task_for_bidding` — объявить задачу
1483
- - `bid_for_task` — сделать ставку
1484
- - `get_auction_winner` — получить победителя
1485
-
1486
- - **Briefings** — ментальные слепки
1487
- - `save_briefing` — сохранить состояние
1488
- - `load_briefing` — загрузить состояние
1489
- - `list_briefings` — список briefings
1490
-
1491
- - **Pulse** — живая карта агентов
1492
- - `update_swarm_pulse` — обновить статус
1493
- - `get_swarm_pulse` — получить статусы всех
1494
-
1495
- - **Knowledge Base** — база знаний
1496
- - `archive_finding` — сохранить находку
1497
- - `search_knowledge` — поиск в базе
1498
-
1499
- - **Ghost Mode** — патрулирование без задач
1500
- - `patrol_mode` — проверка lint ошибок
1501
- - Автоисправление мелких проблем
1502
-
1503
- - **Stop Flag** — экстренная остановка
1504
- - `swarm_stop` — остановить всех агентов
1505
- - `swarm_resume` — возобновить работу
1506
- - `swarm_stop_status` — проверить статус
1507
-
1508
- ### Инфраструктура
1509
- - MCP Server на базе @modelcontextprotocol/sdk
1510
- - TypeScript компиляция
1511
- - Installer для IDE (Windsurf, Cursor, Claude Desktop, OpenCode, VS Code)
1512
- - Правила агента (.windsurfrules, .cursorrules, CLAUDE.md, GEMINI.md)
1513
- - Companion daemon для фоновых задач
1514
-
1515
- ---
1516
-
1517
- ## [Unreleased]
1518
-
1519
- ### В планах
1520
- - Web Dashboard для мониторинга swarm
1521
- - Unit тесты для всех workflows
1522
- - Интеграция с Jira/Linear
1523
- - Мультиязычная поддержка (i18n)
1524
- - Plugin system для расширений
1525
-
1526
- ---
1527
-
1528
- ## Semantic Versioning
1529
-
1530
- - **MAJOR (X.0.0)** — несовместимые изменения API
1531
- - **MINOR (0.X.0)** — новые фичи, обратно совместимые
1532
- - **PATCH (0.0.X)** — багфиксы, обратно совместимые
1533
-
1534
- ## Legend
1535
-
1536
- | Тип | Описание |
1537
- |-----|----------|
1538
- | **Добавлено** | Новые фичи |
1539
- | **Изменено** | Изменения в существующей функциональности |
1540
- | **Устарело** | Фичи, которые будут удалены |
1541
- | **Удалено** | Удалённые фичи |
1542
- | **Исправлено** | Багфиксы |
1543
- | **Безопасность** | Исправления уязвимостей |
1
+ > 🇷🇺 [Читать на русском](./CHANGELOG.ru.md)
2
+
3
+ # Changelog
4
+
5
+ All notable changes to the MCP Swarm project are documented in this file.
6
+
7
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
+
10
+ ---
11
+
12
+ ## [0.9.19] - 2026-02-08
13
+
14
+ ### 🚀 Major Release: Smart Routing, Memory, Agent Teams, MCP Bridges
15
+
16
+ #### Added
17
+
18
+ - **Smart Router Proxy** (`smartRouterProxy.ts`)Cost optimization engine inspired by distiq-code
19
+ - Automatic model tier downgrade (Opus → Sonnet when safe)
20
+ - Semantic cache for repeated/similar requests (SHA-256 + similarity)
21
+ - Prompt caching suggestions (cache_control breakpoints for Anthropic API)
22
+ - Request classification: complexity analysis, token estimation, tier recommendation
23
+ - Real-time cost savings tracking and statistics
24
+
25
+ - **Swarm Memory** (`swarmMemory.ts`)Hybrid memory system (claude-mem + claude-cognitive)
26
+ - 3-tier Context Router: hot (current session) / warm (24h) / cold (archive)
27
+ - Pool Coordinator for multi-agent memory synchronization
28
+ - Lifecycle hooks: session_start, prompt_submit, response_ready, session_end
29
+ - 3-layer search: keyword/tag timeline → full observations
30
+ - Auto-compression for older entries (context window savings)
31
+
32
+ - **MCP Linear Bridge** (`mcpLinearBridge.ts`) — Auto-sync swarm tasks ↔ Linear issues
33
+ - Status mapping: open Todo, in_progress → In Progress, done → Done
34
+ - Task registration and bidirectional sync
35
+ - Passive activation (only when mcp-linear MCP is detected)
36
+
37
+ - **MCP Context7 Bridge** (`mcpContext7Bridge.ts`) Up-to-date documentation integration
38
+ - Auto-detect project tech stack (React, Next.js, Express, Prisma, Supabase, Tailwind...)
39
+ - Documentation cache with configurable TTL (default 24h)
40
+ - Lookup with cache-first strategy
41
+
42
+ - **Claude-Flow Bridge** (`claudeFlowBridge.ts`) Skills routing and RAG pipeline
43
+ - Q-learning based skill routing (epsilon-greedy exploration/exploitation)
44
+ - Skill registry with quality tracking (Q-values, success rates)
45
+ - RAG configuration for vector search → context injection
46
+
47
+ - **Agent Teams** (`agentTeams.ts`) — Multi-agent team coordination
48
+ - Team creation with roles: lead, developer, reviewer, tester, specialist
49
+ - Task delegation with dependency tracking
50
+ - Auto-rebalancing: redistribute tasks when agent goes offline
51
+ - Team-level broadcast messaging
52
+ - RAC (Retrieval Augmented Coding) search placeholder
53
+
54
+ - **Skills Discovery** (`skillsDiscovery.ts`) — IDE-agnostic skill detection
55
+ - Scans 6+ IDE formats: Gemini, Antigravity, Claude, Cursor, Codex, Windsurf
56
+ - Normalizes skills to unified format
57
+ - Task-based skill recommendation (keyword scoring)
58
+ - Cross-IDE skill import/export
59
+
60
+ ## [0.9.18] - 2026-02-08
61
+
62
+ ### 🧠 Интеграция новых AI-моделей
63
+
64
+ #### Добавлено
65
+
66
+ - **Claude Opus 4.6** новый флагман Anthropic в MoE Router
67
+ - 1M токенов контекст (первый Opus с миллионным контекстом)
68
+ - Adaptive thinking — модель сама решает когда использовать extended thinking
69
+ - Context compaction — автоматическое сжатие при приближении к лимиту
70
+ - 128K output tokens — большие ответы без разбиения
71
+ - Agent Teams — координация нескольких агентов через tmux
72
+ - $5/$25 per MTok (≤200K), $10/$37.50 (>200K)
73
+
74
+ - **GPT-5.3 Codex** — новый флагман OpenAI для агентного кодинга
75
+ - 256K контекст
76
+ - Оптимизирован для code_generation, debugging, reasoning
77
+ - ~$2/$15 per MTok (estimated)
78
+
79
+ - **Kimi K2.5** — premium модель Moonshot AI
80
+ - 128K контекст, фокус на code_generation, code_review, debugging
81
+ - ~$1/$5 per MTok (estimated)
82
+
83
+ #### Изменено
84
+
85
+ - `ModelProvider` расширен на `"moonshot"` (Kimi/Moonshot AI)
86
+ - Claude Opus 4.5 понижен с `flagship` `premium` (заменён Opus 4.6)
87
+ - MoE Router: **19 моделей** (было 16) — 4 Anthropic, 9 OpenAI, 5 Google, 1 Moonshot
88
+
89
+ ---
90
+
91
+ ## [0.9.17] - 2026-02-08
92
+
93
+ ### 🏗️ Smart Tools Modularization
94
+
95
+ #### Changed
96
+
97
+ - **`src/smartTools.ts`** split into **9 modules** in `src/smartTools/`:
98
+ - `core.ts` — swarm_agent, swarm_control, swarm_pulse, swarm_companion
99
+ - `tasks.ts` swarm_task, swarm_plan, swarm_briefing, swarm_spec
100
+ - `files.ts` — swarm_file, swarm_worktree, swarm_snapshot
101
+ - `git.ts` swarm_git, swarm_hooks, swarm_dependency
102
+ - `collaboration.ts`swarm_chat, swarm_message, swarm_review, swarm_voting, swarm_auction, swarm_brainstorm
103
+ - `security.ts` — swarm_defence, swarm_consensus, swarm_mcp
104
+ - `analytics.ts` — swarm_cost, swarm_quality, swarm_regression, swarm_session
105
+ - `intelligence.ts` — swarm_sona, swarm_moe, swarm_vector, swarm_booster, swarm_context_pool, swarm_context
106
+ - `infra.ts` — swarm_health, swarm_immune, swarm_external, swarm_platform, swarm_knowledge, etc.
107
+ - **`src/smartTools/index.ts`**centralized re-export of all modules
108
+ - **`src/serverSmart.ts`**updated to import from `smartTools/index.js`
109
+
110
+ ### 🔒 Cloudflare Workers with Authentication
111
+
112
+ #### Added
113
+
114
+ - **`cloudflare/abdr-hub/`** — new Cloudflare Worker `abdr-swarm-hub`
115
+ - Bearer Token + Query parameter authentication
116
+ - WebSocket bridge for agents
117
+ - REST API for swarm management
118
+ - **`cloudflare/abdr-server/`** — new Cloudflare Worker `abdr-swarm-server`
119
+ - Streamable HTTP Transport (MCP spec 2025-03-26)
120
+ - All 54 Smart Tools
121
+ - Automatic Bearer Token forwarding to Hub
122
+ - **`cloudflare/telegram-bot/`** → renamed to `abdr-swarm-telegram`
123
+ - `SWARM_AUTH_TOKEN` protection for `/register` endpoint
124
+ - Bearer Token for Hub API calls
125
+
126
+ ### 🔄 CI/CD Pipeline
127
+
128
+ #### Changed
129
+
130
+ - **`.github/workflows/ci.yml`** improvements:
131
+ - Triggers for `main` and `develop` branches
132
+ - TypeScript check (`tsc --noEmit`) before build
133
+ - Node.js matrix: 18, 20, 22
134
+ - Automatic npm publish on push to `main`
135
+
136
+ ### 🗑️ Legacy Code Removed
137
+
138
+ #### Removed
139
+
140
+ - **`src/tools.ts`** old 41 tools (replaced by `smartTools/`)
141
+ - **`src/server.ts`** — old server (replaced by `serverSmart.ts`)
142
+
143
+ ### 📊 Dashboard
144
+
145
+ #### Changed
146
+
147
+ - Updated version in footer: v0.9.12 → v0.9.17
148
+
149
+ ### 📦 Updates
150
+
151
+ - `package.json` → version `0.9.17`
152
+
153
+ ### 🔄 How to Update
154
+
155
+ ```bash
156
+ npm install -g mcp-swarm@latest
157
+ # or
158
+ npm update mcp-swarm
159
+ ```
160
+
161
+ ---
162
+
163
+ ## [0.9.16] - 2026-02-08
164
+
165
+ ### 🐛 Critical Fix: Zod Compatibility
166
+
167
+ **BREAKING FIX:** Fixed `keyValidator._parse is not a function` error that made all 54 Smart Tools completely non-functional in Antigravity and similar clients.
168
+
169
+ #### Root Cause
170
+ - `zod@^3.23.8` in `package.json` auto-installed `3.25.76` — essentially a Zod v4 bridge version
171
+ - Zod v4 removed the internal `_parse()` method used by clients for JSON Schema validation
172
+ - Result: **no Smart Tool worked** due to input schema parsing errors
173
+
174
+ #### Fix
175
+ - `zod` pinned to exact version `3.23.8` (pure Zod v3, no v4 bridge)
176
+ - Prevents automatic upgrades to incompatible versions
177
+
178
+ > 🙏 We apologize for the inconvenience. This bug affected all users who updated via npm.
179
+
180
+ ### 🔒 Security: Cloudflare Workers
181
+
182
+ - Removed deployed workers `mcp-swarm-hub` and `mcp-swarm-server` (URLs were exposed in commits)
183
+ - Worker sources **preserved** in `cloudflare/` — will be redeployed with new names
184
+
185
+ ### 📦 Updates
186
+
187
+ - `serverSmart.ts` — dynamic version from `package.json` instead of hardcode
188
+ - `server.ts` — marked as deprecated (`@ts-nocheck`), use `serverSmart.ts`
189
+ - `.gitignore` — added patterns for test files
190
+
191
+ ### 🔄 How to Update
192
+
193
+ ```bash
194
+ npm install -g mcp-swarm@latest
195
+ # or
196
+ npm update mcp-swarm
197
+ ```
198
+
199
+ ---
200
+
201
+ ## [0.9.15] - 2026-02-08
202
+
203
+ ### 📖 Bilingual Documentation
204
+
205
+ #### Changed
206
+
207
+ - **`README.md`** — fully translated to **English** (~1100 lines)
208
+ - Professional translation of all sections: tools, installation, configuration, architecture
209
+ - Added link to Russian version: `🇷🇺 Читать на русском`
210
+ - **`package.json`** description updated to English
211
+ - **Version updated in heading** — v0.9.15
212
+
213
+ #### Added
214
+
215
+ - **`README.ru.md`** Russian version of README created
216
+ - Full original README content in Russian
217
+ - Link to English version: `🇬🇧 Read in English`
218
+
219
+ ---
220
+
221
+ ## [0.9.14] - 2026-02-08
222
+
223
+ ### 🐛 npx Command Fix
224
+
225
+ #### Fixed
226
+
227
+ - **`README.md`** — fixed `npx mcp-swarm-remote` commands:
228
+ - Before: `npx mcp-swarm-remote --url ...` (E404 error, package not found)
229
+ - After: `npx -y -p mcp-swarm mcp-swarm-remote --url ...`
230
+ - **`REMOTE.md`** — same fix applied to all IDE configuration examples
231
+ - **Version updated** — v0.9.14
232
+
233
+ #### Root Cause
234
+
235
+ - `npx mcp-swarm-remote` tried to find a **separate** package `mcp-swarm-remote` on npm
236
+ - `mcp-swarm-remote` is a binary within the `mcp-swarm` package, so the `-p mcp-swarm` flag is required
237
+
238
+ ---
239
+
240
+ ## [0.9.13] - 2026-02-05
241
+
242
+ ### Self-Hosted Infrastructure
243
+
244
+ **BREAKING CHANGE:** Removed hardcoded public server URLs. Users must now deploy their own Cloudflare Workers.
245
+
246
+ #### Changed
247
+
248
+ - **README.md** Complete rewrite of installation section
249
+ - Added Cloudflare Free Tier explanation and limits
250
+ - Step-by-step deployment guide for Hub, MCP Server, Telegram Bot
251
+ - Explained what YOUR-SUBDOMAIN means
252
+
253
+ - **wrangler.toml files** — All 3 Workers now have placeholders
254
+ - `cloudflare/hub/wrangler.toml` — Added deployment instructions
255
+ - `cloudflare/mcp-server/wrangler.toml` HUB_URL placeholder
256
+ - `cloudflare/telegram-bot/wrangler.toml` SWARM_HUB_URL placeholder
257
+
258
+ - **install.ps1 / install.sh** — Now ask for user's server URLs
259
+ - No more hardcoded URLs
260
+ - Instructions for deploying first
261
+
262
+ - **mcp-swarm-remote** `--url` is now **required**
263
+ - Shows helpful error message with deployment link
264
+ - Added `--help` option
265
+
266
+ - **Dashboard** `.env.example` uses placeholder
267
+ - `useWebSocket.ts` warns if HUB_URL not configured
268
+
269
+ - **Agent rules** (AGENTS.md, CLAUDE.md, GEMINI.md, AGENT.md)
270
+ - Updated with YOUR-SUBDOMAIN placeholders
271
+
272
+ #### Why This Change?
273
+
274
+ - **Privacy**: Your data stays on your infrastructure
275
+ - **No shared limits**: Full Cloudflare Free Tier for yourself
276
+ - **Customization**: Modify Workers as needed
277
+ - **Transparency**: No hidden public server
278
+
279
+ ---
280
+
281
+ ## [0.9.12] - 2026-02-05
282
+
283
+ ### Dashboard Real-time Updates
284
+
285
+ #### Added
286
+
287
+ - **WebSocket Hook** (`dashboard/src/hooks/useWebSocket.ts`)
288
+ - Real-time connection to Swarm Hub
289
+ - Auto-reconnect with exponential backoff
290
+ - Keep-alive ping every 25 seconds
291
+ - Event filtering for specific event types
292
+
293
+ - **New Core Widgets** (`dashboard/src/components/widgets/CoreWidgets.tsx`)
294
+ - **ConnectionStatusWidget** — Shows Hub connection status with reconnect button
295
+ - **ActivityTimelineWidget** Real-time event stream from Hub
296
+ - **FileLocksWidget** Active file reservations with live updates
297
+ - **CostTrackingWidget** API usage and budget progress bars
298
+ - **VotingWidget** Distributed consensus proposals and votes
299
+
300
+ - **Live Indicators**
301
+ - Green pulsing dot for connected/active status
302
+ - LIVE/OFFLINE badges for real-time widgets
303
+ - Last update timestamps with relative time format
304
+
305
+ ### Telegram Bot Enhancements
306
+
307
+ #### Added
308
+
309
+ - **New Commands**
310
+ - `/reviews` — List pending code reviews with inline approve/reject buttons
311
+ - `/approve [id]` — Approve a review directly from Telegram
312
+ - `/reject [id] [reason]` — Reject a review with optional reason
313
+
314
+ - **Enhanced Inline Keyboards**
315
+ - Reviews list shows approve/reject buttons for each pending review
316
+ - Help menu now includes Reviews button
317
+
318
+ ### Auto-start Companion
319
+
320
+ #### Added
321
+
322
+ - **Companion Auto-start** in `mcp-swarm-remote`
323
+ - Checks if companion daemon is running on port 37373
324
+ - Automatically spawns companion in background if not running
325
+ - Can be disabled with `--no-companion` flag
326
+
327
+ #### Changed
328
+
329
+ - Dashboard now uses WebSocket for real-time updates instead of polling-only
330
+ - Added "Real-time Monitoring" section with new widgets
331
+ - Updated version to 0.9.12 in footer
332
+
333
+ ---
334
+
335
+ ## [0.9.11] - 2026-02-04
336
+
337
+ ### One-Click Installer & Streamable HTTP
338
+
339
+ #### Added
340
+
341
+ - **One-Click Install Scripts**
342
+ - `install.ps1` — PowerShell installer for Windows
343
+ - `install.sh`Bash installer for macOS/Linux
344
+ - `npx mcp-swarm-install` — Interactive Node.js installer
345
+
346
+ - **Streamable HTTP Transport** (MCP spec 2025-03-26)
347
+ - Single `POST /mcp` endpoint instead of SSE
348
+ - Session management via `Mcp-Session-Id` header
349
+ - Works on Cloudflare Workers without SSE issues
350
+
351
+ - **mcp-swarm-remote Proxy** (`src/remote/index.ts`)
352
+ - stdio Streamable HTTP proxy for IDE integration
353
+ - Windows stdin compatibility fix
354
+
355
+ #### Changed
356
+
357
+ - Installer now **merges** configs instead of overwriting
358
+ - Auto-detects IDE installations (Claude Desktop, Cursor, Windsurf, OpenCode, VS Code)
359
+
360
+ ---
361
+
362
+ ## [0.9.10] - 2026-02-03
363
+
364
+ ### 🧠 MoE Router — Mixture of Experts Model Selection
365
+
366
+ #### Added
367
+
368
+ - **MoE Router Module** (`src/workflows/moeRouter.ts`)
369
+ - Intelligent model routing based on task characteristics
370
+ - Gating network for expert selection
371
+ - Cost-performance optimization
372
+ - Learning from feedback
373
+
374
+ - **Expert Classification**
375
+ - 14 task categories: code_generation, code_review, debugging, reasoning, math, creative, etc.
376
+ - 4 model tiers: economy, standard, premium, flagship
377
+ - 6 providers: anthropic, openai, google, mistral, local, custom
378
+
379
+ - **Built-in Experts (19 models, verified pricing February 2026)**
380
+ - **Anthropic Claude Series:**
381
+ - Claude Opus 4.6 (flagship, 1M, $5/$25 MTok) ← NEW
382
+ - Claude Opus 4.5 (flagship, 200K, $5/$25 MTok)
383
+ - Claude Sonnet 4.5 (premium, 200K, $3/$15 MTok)
384
+ - Claude Haiku 4.5 (economy, 200K, $1/$5 MTok)
385
+ - **OpenAI GPT-5.x Series:**
386
+ - GPT-5.3 Codex (flagship, 256K, ~$2/~$15 MTok) ← NEW
387
+ - GPT-5.2 (flagship, 256K, $1.75/$14 MTok)
388
+ - GPT-5.2 Pro (flagship, 256K, $21/$168 MTok)
389
+ - GPT-5 Mini (standard, 128K, $0.25/$2 MTok)
390
+ - GPT-4.1 (premium, 128K, $3/$12 MTok)
391
+ - GPT-4.1 Mini (standard, 128K, $0.80/$3.20 MTok)
392
+ - GPT-4.1 Nano (economy, 128K, $0.20/$0.80 MTok)
393
+ - **OpenAI Reasoning Models:**
394
+ - o4-mini (reasoning, 128K, $4/$16 MTok)
395
+ - **Moonshot AI:**
396
+ - Kimi K2.5 (premium, 128K, ~$1/~$5 MTok) ← NEW
397
+ - **Google Gemini 3.x Series:**
398
+ - Gemini 3 Pro (flagship, 1M, $2/$12 MTok)
399
+ - Gemini 3 Flash (standard, 1M, $0.50/$3 MTok)
400
+ - **Google Gemini 2.5 Series:**
401
+ - Gemini 2.5 Pro (premium, 1M, $1.25/$10 MTok)
402
+ - Gemini 2.5 Flash (standard, 1M, $0.30/$2.50 MTok)
403
+ - Gemini 2.5 Flash Lite (economy, 1M, $0.10/$0.40 MTok)
404
+
405
+ - **Routing Factors**
406
+ - Task match score (category-specific strength)
407
+ - Cost efficiency
408
+ - Performance history (success rate)
409
+ - Load balancing (prefer less recently used)
410
+ - Latency constraints
411
+ - Context window requirements
412
+
413
+ - **Learning System**
414
+ - Feedback recording
415
+ - Exponential moving average for success rate
416
+ - Automatic latency calibration
417
+ - Per-expert statistics
418
+
419
+ - **Smart Tool #54: `swarm_moe`**
420
+ - `route`: Route task to best expert
421
+ - `feedback`: Record routing feedback
422
+ - `experts`: List available experts
423
+ - `add_expert` / `remove_expert`: Manage experts
424
+ - `config` / `set_config`: Configuration
425
+ - `stats`: Routing statistics
426
+ - `history`: Routing history
427
+ - `classify`: Classify task category
428
+ - `reset`: Reset statistics
429
+
430
+ - **Dashboard API Endpoint** (`/api/moe`)
431
+ - Routing statistics
432
+ - Expert list and usage
433
+ - Configuration status
434
+
435
+ ---
436
+
437
+ ## [0.9.9] - 2026-02-03
438
+
439
+ ### 🤝 Consensus — Distributed Agreement Protocols
440
+
441
+ #### Added
442
+
443
+ - **Consensus Module** (`src/workflows/consensus.ts`)
444
+ - Raft-like leader election with term-based leadership
445
+ - Log replication for ordered command execution
446
+ - Byzantine Fault Tolerance (BFT) mode for untrusted environments
447
+ - Proposal system with configurable voting thresholds
448
+ - Automatic failover when leader becomes unresponsive
449
+
450
+ - **Consensus Modes**
451
+ - `simple_majority`: 50%+ votes for approval
452
+ - `raft`: Term-based leadership, log replication
453
+ - `bft`: Byzantine fault tolerant (2/3+1 quorum)
454
+
455
+ - **Node Management**
456
+ - Join/leave cluster
457
+ - Heartbeat monitoring
458
+ - Trusted/untrusted node classification
459
+ - Automatic dead node detection
460
+
461
+ - **Proposal System**
462
+ - Types: config_change, task_assignment, architecture, rollback, emergency, custom
463
+ - Vote types: approve, reject, abstain
464
+ - Configurable majority thresholds (0.5 to 1.0)
465
+ - Expiration timeout handling
466
+ - Signature verification for BFT mode
467
+
468
+ - **Log Replication**
469
+ - Ordered command log
470
+ - Commit confirmation from leader
471
+ - State machine replication across nodes
472
+
473
+ - **Smart Tool #53: `swarm_consensus`**
474
+ - `join`: Join consensus cluster
475
+ - `leave`: Leave cluster
476
+ - `heartbeat`: Send heartbeat
477
+ - `status`: Get cluster status
478
+ - `elect`: Start leader election
479
+ - `leader`: Get current leader
480
+ - `propose`: Create proposal
481
+ - `vote`: Vote on proposal
482
+ - `proposals`: List proposals
483
+ - `get_proposal`: Get proposal details
484
+ - `execute`: Execute approved proposal
485
+ - `log` / `append` / `commit`: Log management
486
+ - `config` / `set_config`: Configuration
487
+ - `stats`: Statistics
488
+
489
+ - **Dashboard API Endpoint** (`/api/consensus`)
490
+ - Cluster status and node list
491
+ - Leader information
492
+ - Proposal statistics
493
+ - Recent proposals
494
+
495
+ ---
496
+
497
+ ## [0.9.8] - 2026-02-03
498
+
499
+ ### 🛡️ AIDefence — Security & Threat Detection
500
+
501
+ #### Added
502
+
503
+ - **AIDefence Module** (`src/workflows/aiDefence.ts`)
504
+ - <10ms threat detection latency
505
+ - Pattern-based detection with regex + heuristics
506
+ - Behavioral anomaly detection
507
+ - Quarantine system for suspicious content
508
+ - Audit logging for security events
509
+ - Configurable sensitivity levels
510
+
511
+ - **Threat Categories**
512
+ - `prompt_injection`: Instruction override, role hijacking, delimiter attacks
513
+ - `jailbreak`: DAN mode, hypothetical bypasses, character hijacking
514
+ - `code_injection`: Shell commands, eval, SQL injection, path traversal
515
+ - `data_exfiltration`: API keys, credentials, external uploads
516
+ - `sensitive_data`: PII, private keys, passwords
517
+ - `unsafe_command`: rm -rf, sudo, crypto mining
518
+ - `social_engineering`: Authority claims, urgency manipulation
519
+ - `impersonation`: Agent identity spoofing
520
+ - `dos_attack`: Request flooding
521
+ - `unauthorized_tool`: Restricted tool access
522
+
523
+ - **Sensitivity Levels**
524
+ - `low`: Only critical threats
525
+ - `medium`: Balanced (default)
526
+ - `high`: Strict checking
527
+ - `paranoid`: Maximum security
528
+
529
+ - **Smart Tool #52: `swarm_defence`**
530
+ - `scan`: Scan text for threats
531
+ - `validate_agent`: Validate agent identity
532
+ - `validate_tool`: Validate tool usage
533
+ - `events`: Get security events log
534
+ - `quarantine`: Get quarantined items
535
+ - `release`: Release from quarantine
536
+ - `stats`: Get defence statistics
537
+ - `config` / `set_config`: Configuration
538
+ - `trust` / `untrust`: Agent whitelist management
539
+ - `clear_events`: Clear event log
540
+
541
+ - **Dashboard API Endpoint** (`/api/defence`)
542
+ - Security statistics
543
+ - Threat distribution by category/severity
544
+ - Quarantine status
545
+ - Recent events log
546
+
547
+ ---
548
+
549
+ ## [0.9.7] - 2026-02-03
550
+
551
+ ### 🔍 HNSW Hierarchical Navigable Small World
552
+
553
+ #### Added
554
+
555
+ - **HNSW Module** (`src/workflows/hnsw.ts`)
556
+ - Fast approximate nearest neighbor search
557
+ - 150x-12,500x faster than brute force
558
+ - Pure TypeScript implementation (no dependencies)
559
+ - Based on Malkov & Yashunin (2016) algorithm
560
+
561
+ - **Vector Operations**
562
+ - Cosine similarity (default)
563
+ - Euclidean distance
564
+ - Dot product
565
+ - Configurable dimensions (384, 768, 1536)
566
+
567
+ - **Simple Embeddings**
568
+ - Built-in bag-of-words embedder for demos
569
+ - Works without external API
570
+ - Can use custom vectors from OpenAI/Cohere/etc.
571
+
572
+ - **Smart Tool #51: `swarm_vector`**
573
+ - `init`: Initialize vector index
574
+ - `add`: Add document with text or vector
575
+ - `add_batch`: Add multiple documents
576
+ - `search`: Find similar documents
577
+ - `get`: Get document by ID
578
+ - `delete`: Remove document
579
+ - `list`: List all documents
580
+ - `stats`: Index statistics
581
+ - `config` / `set_config`: Configuration
582
+ - `clear`: Clear entire index
583
+ - `duplicates`: Find duplicate documents
584
+ - `embed`: Get embedding for text
585
+
586
+ - **Dashboard API Endpoint** (`/api/vector`)
587
+ - Index statistics
588
+ - Configuration status
589
+ - Memory usage tracking
590
+
591
+ #### Performance
592
+
593
+ | Documents | Brute Force | HNSW | Speedup |
594
+ |-----------|-------------|------|---------|
595
+ | 1,000 | 10ms | 0.5ms | 20x |
596
+ | 10,000 | 100ms | 0.8ms | 125x |
597
+ | 100,000 | 1,000ms | 1.2ms | 833x |
598
+ | 1,000,000 | 10,000ms | 2ms | 5,000x |
599
+
600
+ ---
601
+
602
+ ## [0.9.6] - 2026-02-03
603
+
604
+ ### ⚡ Agent Booster — Fast Local Execution
605
+
606
+ #### Added
607
+
608
+ - **Agent Booster Module** (`src/workflows/agentBooster.ts`)
609
+ - Executes trivial tasks locally without LLM API calls
610
+ - 352x faster than LLM (local execution)
611
+ - $0 cost (no API calls needed)
612
+ - Works offline
613
+ - Deterministic results
614
+
615
+ - **Supported Task Types** (14 types)
616
+ - `rename_variable` — Rename variables/functions across file
617
+ - `fix_typo` Fix typos in strings and comments only
618
+ - `find_replace` — Simple find and replace
619
+ - `add_console_log` Add debug logging at specific line
620
+ - `remove_console_log` Remove all console.log statements
621
+ - `toggle_flag` Toggle boolean flags (true false)
622
+ - `update_version` Update version numbers
623
+ - `update_import` — Update import paths
624
+ - `add_comment` — Add comment at specific line
625
+ - `remove_comment` — Remove single-line comments
626
+ - `format_json` Format JSON files
627
+ - `sort_imports` — Sort imports alphabetically
628
+ - `add_export` Add export to function/class
629
+ - `extract_constant` — Extract magic number to constant
630
+
631
+ - **Smart Detection**
632
+ - `can_boost` action analyzes task description
633
+ - Auto-detects boostable tasks with confidence score
634
+ - Extracts parameters from natural language
635
+
636
+ - **Smart Tool #50: `swarm_booster`**
637
+ - `execute`: Run a booster task
638
+ - `can_boost`: Check if task can be boosted
639
+ - `stats`: Get booster statistics
640
+ - `history`: Get execution history
641
+ - `config`: Get configuration
642
+ - `set_config`: Update configuration
643
+ - `types`: List supported task types
644
+
645
+ - **Dashboard API Endpoint** (`/api/booster`)
646
+ - Booster statistics and type distribution
647
+ - Recent execution history
648
+ - Configuration status
649
+ - Cost savings tracking
650
+
651
+ #### Performance
652
+
653
+ | Metric | LLM | Agent Booster | Improvement |
654
+ |--------|-----|---------------|-------------|
655
+ | Speed | ~3000ms | ~8ms | 352x faster |
656
+ | Cost | $0.01/task | $0 | 100% savings |
657
+ | Offline | | | Works anywhere |
658
+ | Deterministic | ⚠️ | ✅ | Same input = same output |
659
+
660
+ ---
661
+
662
+ ## [0.9.5] - 2026-02-03
663
+
664
+ ### 🧠 SONA Self-Optimizing Neural Architecture
665
+
666
+ #### Added
667
+
668
+ - **SONA Module** (`src/workflows/sona.ts`)
669
+ - Self-learning task routing system inspired by Claude-Flow
670
+ - Records which agents perform best for each task type
671
+ - Routes new tasks to best-performing agents
672
+ - Learns from outcomes with <0.05ms adaptation
673
+ - Improves over time with reinforcement learning
674
+
675
+ - **Task Classification**
676
+ - Automatic category detection: frontend_ui, backend_api, database, testing, devops, documentation, refactoring, bugfix, feature, security, performance, infrastructure
677
+ - Complexity estimation: trivial, simple, medium, complex, epic
678
+ - Keyword-based pattern matching
679
+ - Affected path analysis
680
+
681
+ - **Agent Performance Tracking**
682
+ - Success rate tracking per category
683
+ - Quality score averaging
684
+ - Completion time tracking
685
+ - Statistical confidence calculation
686
+ - Specialization detection (top 3 categories per agent)
687
+
688
+ - **Online Learning**
689
+ - Exponential moving average for rolling metrics
690
+ - Configurable learning rate and decay
691
+ - Elastic Weight Consolidation (EWC++) to prevent forgetting
692
+ - Exploration/exploitation balance (10% exploration by default)
693
+
694
+ - **Smart Tool #49: `swarm_sona`**
695
+ - `route`: Get routing recommendation for a task
696
+ - `learn`: Record task outcome and update model
697
+ - `classify`: Classify a task (category, complexity)
698
+ - `profile`: Get agent's performance profile
699
+ - `profiles`: Get all agent profiles
700
+ - `specialists`: Get top agents for a category
701
+ - `history`: Get learning history
702
+ - `stats`: Get SONA statistics
703
+ - `config`: Get configuration
704
+ - `set_config`: Update configuration
705
+ - `reset`: Reset the model
706
+
707
+ - **Dashboard API Endpoint** (`/api/sona`)
708
+ - SONA statistics and agent profiles
709
+ - Category distribution
710
+ - Recent learning events
711
+ - Top performing agents
712
+
713
+ ---
714
+
715
+ ## [0.9.4] - 2026-02-03
716
+
717
+ ### 📱 Telegram Bot Integration
718
+
719
+ #### Added
720
+
721
+ - **Telegram Bot** (`src/integrations/telegram.ts`)
722
+ - Full-featured Telegram bot for notifications and control
723
+ - Event notifications: task created/completed/failed, agent joined/died, CI errors
724
+ - Commands: `/status`, `/agents`, `/tasks`, `/create_task`, `/stop`, `/resume`, `/config`
725
+ - Interactive inline buttons for quick actions
726
+ - Priority setting via buttons (Critical, High, Medium)
727
+ - Approve/Reject/Comment on reviews via Telegram
728
+ - Vote on architecture decisions via Telegram
729
+
730
+ - **Smart Tool #47: `swarm_telegram`**
731
+ - Actions: `setup`, `config`, `enable`, `disable`, `send`
732
+ - Notifications: `notify_task_created`, `notify_task_completed`, `notify_task_failed`, `notify_agent_joined`, `notify_agent_died`
733
+ - Bot control: `start_polling`, `stop_polling`, `command`
734
+
735
+ - **Dashboard API Endpoint** (`/api/telegram`)
736
+ - Telegram configuration status
737
+ - Setup instructions if not configured
738
+
739
+ - **Cloudflare Worker for Telegram** (`cloudflare/telegram-bot/`)
740
+ - Webhook-based (no polling required)
741
+ - Deploy to Cloudflare Workers
742
+ - `/setup` endpoint for webhook registration
743
+
744
+ - **Smart Tool #48: `swarm_batch`**
745
+ - Request batching for 50% cost savings
746
+ - Supports Anthropic Message Batches API
747
+ - Supports OpenAI Batch API
748
+ - Actions: `queue`, `config`, `set_config`, `job`, `jobs`, `result`, `stats`, `flush`
749
+
750
+ - **Batching Module** (`src/workflows/batching.ts`)
751
+ - Automatic request grouping
752
+ - Configurable batch size and wait time
753
+ - Async batch processing with result polling
754
+ - Cost savings estimation
755
+
756
+ ---
757
+
758
+ ## [0.9.3] - 2026-02-03
759
+
760
+ ### 🧠 Smart Features & Cost Optimization
761
+
762
+ #### Added
763
+
764
+ - **Smart Task Routing** (`src/workflows/smartRouting.ts`)
765
+ - Automatic task assignment based on file expertise
766
+ - Tracks which agent edited which files
767
+ - Calculates expertise scores (exact match 10x, folder 3x, extension 2x)
768
+
769
+ - **Shared Context Pool** (`src/workflows/contextPool.ts`)
770
+ - Agents share notes about code to avoid re-reading
771
+ - Auto-staleness detection (if file hash changed)
772
+ - Tags, categories, and helpful counter
773
+
774
+ - **Auto Code Review** (`src/workflows/autoReview.ts`)
775
+ - Automatic review assignment when task completes
776
+ - Finds reviewer who knows the affected files
777
+ - Comment severity levels (critical, major, minor, suggestion)
778
+
779
+ - **GitHub/Linear Sync** (`src/workflows/externalSync.ts`)
780
+ - Two-way sync with GitHub Issues
781
+ - Linear.app integration (GraphQL API)
782
+ - Auto-import issues as swarm tasks
783
+ - Auto-close issues when task is done
784
+
785
+ - **Cost Optimization** (`src/workflows/costOptimization.ts`)
786
+ - Task complexity analysis (simple/medium/complex)
787
+ - Smart model routing (cheap/standard/premium tiers)
788
+ - Budget management with daily/weekly/monthly limits
789
+ - Alert thresholds (50%, 80%, 95%)
790
+
791
+ - **Background Heartbeat Worker** (`src/workers/`)
792
+ - Uses Node.js `worker_threads` for continuous heartbeat
793
+ - Works even when agent is "thinking"
794
+
795
+ - **Web Dashboard** (`dashboard/`)
796
+ - Real-time agent status monitoring
797
+ - Orchestrator status banner with glow effects
798
+ - Stats cards (agents, tasks, messages, uptime)
799
+ - Task list with priority indicators
800
+ - Built with Next.js + ShadCN UI
801
+
802
+ - **Dashboard API** (`src/dashboardApi.ts`)
803
+ - HTTP API server on port 3334
804
+ - New v0.9.3 endpoints: `/api/expertise`, `/api/context`, `/api/reviews`, `/api/budget`, `/api/sync`
805
+
806
+ #### Smart Tools (42-46)
807
+
808
+ | # | Tool | Actions | Description |
809
+ |---|------|---------|-------------|
810
+ | 42 | `swarm_routing` | record, find_agent, expertise, predict, auto_assign | Smart task routing based on file expertise |
811
+ | 43 | `swarm_context_pool` | add, get, search_tag, search, helpful, update, cleanup, stats | Shared context notes between agents |
812
+ | 44 | `swarm_autoreview` | create, assign, comment, complete, resolve, for_reviewer, for_author, pending, stats | Automatic code review assignment |
813
+ | 45 | `swarm_external` | enable_github, enable_linear, sync_github, sync_linear, sync_all, export_github, export_linear, status, create_issue, close_issue, comment | GitHub/Linear sync |
814
+ | 46 | `swarm_budget` | analyze, models, select, recommend, route, log_usage, usage, stats, config, set_config, check, remaining, report | Cost optimization and model routing |
815
+
816
+ ---
817
+
818
+ ## [0.9.1] - 2026-02-02
819
+
820
+ ### 📚 Documentation & UX Improvements
821
+
822
+ #### Added
823
+ - **Linux Installation Instructions** — full instructions for Linux
824
+ - **IDE-Specific Configs** — separate configurations for:
825
+ - Claude Desktop (Windows/macOS/Linux)
826
+ - Cursor, Windsurf, OpenCode CLI, VS Code + Copilot/Continue
827
+ - **Troubleshooting Section** — solutions for common issues:
828
+ - "Cannot find module" errors
829
+ - Agent not becoming orchestrator
830
+ - "repoPath is required" error
831
+ - Cloudflare Hub unavailable
832
+ - Files locked by another agent
833
+ - **Architecture Diagram** — ASCII diagram of Cloudflare Hub + Local Agents
834
+ - **Contributing Guidelines** — rules for PRs
835
+
836
+ #### Changed
837
+ - README.md completely reworked with collapsible sections (`<details>`)
838
+
839
+ ---
840
+
841
+ ## [0.9.0] - 2026-02-02
842
+
843
+ ### 🚀 MAJOR: Smart Tools Consolidation
844
+
845
+ **Reduces 168+ individual tools → 41 Smart Tools with `action` parameter**
846
+
847
+ #### Added
848
+
849
+ - **Smart Tools System** 41 unified tools replacing 168+ individual tools
850
+ - Each Smart Tool groups 3-15 related functions via `action` parameter
851
+ - Better discoverability and easier to remember
852
+ - Consistent parameter patterns across all tools
853
+
854
+ #### Smart Tools List (41 tools)
855
+
856
+ | # | Tool Name | Actions | Description |
857
+ |---|-----------|---------|-------------|
858
+ | 1 | `swarm_agent` | register, whoami | Agent identity |
859
+ | 2 | `swarm_task` | create, list, update, decompose, get_decomposition | Task management |
860
+ | 3 | `swarm_file` | reserve, release, list, forecast, conflicts, safety | File locking |
861
+ | 4 | `swarm_git` | sync, pr, health, cleanup, cleanup_all | Git operations |
862
+ | 5 | `swarm_worktree` | create, list, remove | Git worktrees |
863
+ | 6 | `swarm_companion` | status, stop, pause, resume | Companion daemon |
864
+ | 7 | `swarm_control` | stop, resume, status | Swarm control |
865
+ | 8 | `swarm_chat` | broadcast, dashboard, thought, thoughts | Team chat |
866
+ | 9 | `swarm_review` | request, respond, list | Code review |
867
+ | 10 | `swarm_voting` | start, vote, list, get | Voting system |
868
+ | 11 | `swarm_auction` | announce, bid, poll | Task auction |
869
+ | 12 | `swarm_mcp` | scan, authorize, policy | MCP scanning |
870
+ | 13 | `swarm_orchestrator` | elect, info, heartbeat, resign, executors, executor_heartbeat | Orchestrator |
871
+ | 14 | `swarm_message` | send, inbox, ack, reply, search, thread | Messaging |
872
+ | 15 | `swarm_briefing` | save, load | Briefings |
873
+ | 16 | `swarm_pulse` | update, get | Real-time status |
874
+ | 17 | `swarm_knowledge` | archive, search | Knowledge base |
875
+ | 18 | `swarm_snapshot` | create, rollback, list | Snapshots |
876
+ | 19 | `swarm_health` | check, dead, reassign, summary | Agent health |
877
+ | 20 | `swarm_quality` | run, report, threshold, pr_ready | Quality gate |
878
+ | 21 | `swarm_cost` | log, agent, project, limit, remaining | Cost tracking |
879
+ | 22-41 | ... | ... | Brainstorming, Plans, Debug, Spec, QA, Hooks, etc. |
880
+
881
+ ### Backward Compatibility
882
+
883
+ - Legacy 168+ tools server available via `npm run dev:legacy`
884
+ - Smart Tools server via `npm run dev` (default)
885
+
886
+ ---
887
+
888
+ ## [0.8.1] - 2026-02-02
889
+
890
+ ### Added
891
+ - **Smart Tools Draft** — prototype of consolidating 168+ tools into 41 Smart Tools
892
+ - Files `smartTools.ts.draft` and `serverSmart.ts.draft`
893
+ - Each Smart Tool combines 3-15 similar tools via `action` parameter
894
+
895
+ ---
896
+
897
+ ## [0.8.0] - 2026-02-02
898
+
899
+ ### Added
900
+ - **Orchestrator Election** (6 tools) — first agent becomes orchestrator
901
+ - `orchestrator_elect`, `orchestrator_info`, `orchestrator_heartbeat`, `orchestrator_resign`
902
+ - `executor_list`, `executor_heartbeat`
903
+
904
+ - **Agent Messaging** (6 tools) — full inter-agent messaging system
905
+ - `agent_message_send`, `agent_inbox_fetch`, `agent_message_ack`
906
+ - `agent_message_reply`, `agent_message_search`, `agent_thread_get`
907
+
908
+ - **Infinite Loop Mode** orchestrator runs continuously
909
+ - Companion daemon with automatic orchestrator election
910
+ - Orchestrator does NOT stop via API — only by user
911
+ - Executors register with orchestrator
912
+ - Heartbeat system for liveness monitoring
913
+
914
+ ---
915
+
916
+ ## [0.7.0] - 2026-02-02
917
+
918
+ ### Added
919
+ - **Spec Pipeline** (6 tools) — structured pipeline for specification creation
920
+ - 4 roles: gatherer → researcher → writer → critic
921
+ - **QA Loop** (7 tools) — iterative review/fix cycles
922
+ - **Guard Hooks** (6 tools) — pre-commit/pre-push safety hooks
923
+ - Bypass with `[skip-hooks]` keyword in commit message
924
+ - **Tool Clusters** (7 tools) — tool organization by categories
925
+ - 13 categories (agent, task, file, git, collab, safety, quality, debug, plan, hooks, session, cost, docs)
926
+
927
+ ---
928
+
929
+ ## [0.6.0] - 2026-01-30
930
+
931
+ ### Added
932
+ - **Brainstorming Skill** (9 tools) — interactive design through step-by-step questions
933
+ - **Writing Plans Skill** (11 tools) — TDD plans with bite-sized tasks (2-5 min)
934
+ - **Systematic Debugging** (13 tools) 4-phase debugging process
935
+ - Iron Law: NO FIXES WITHOUT ROOT CAUSE
936
+ - Red Flags detection: "Let me just try...", "Maybe if I...", "This should fix it..."
937
+
938
+ ---
939
+
940
+ ## [0.5.0] - 2026-01-30
941
+
942
+ ### Added
943
+ - **Agent Health Monitor** — liveness monitoring for agents
944
+ - **Session Recording** — action recording for replay
945
+ - **Quality Gate** — automated pre-merge checks (lint, tests, types, coverage)
946
+ - **Cost Tracker** API usage cost tracking per agent/project
947
+ - **Context Compressor** — briefing compression (ratio 0.1-0.9)
948
+ - **Regression Detector** baseline comparison and regression detection
949
+
950
+ ---
951
+
952
+ ## [0.4.2] - 2026-01-28
953
+
954
+ ### Added
955
+ - **Timeline Visualization** — task progress visualization with ASCII milestones
956
+
957
+ ---
958
+
959
+ ## [0.4.1] - 2026-01-25
960
+
961
+ ### Added
962
+ - **Auto-Documentation** automatic documentation generation on task completion
963
+ - **Agent Specialization (ML-based)** — expertise tracking per agent
964
+ - **Conflict Prediction (ML-based)** — merge conflict prediction using Git history
965
+
966
+ ---
967
+
968
+ ## [0.4.0] - 2026-01-20
969
+
970
+ ### Added
971
+ - **Cloudflare Hub** — real-time WebSocket coordination
972
+ - Durable Object for state storage
973
+ - WebSocket broadcast between agents
974
+ - Hybrid mode (WS + Git fallback)
975
+ - **Orchestrator Directory** — central management (`/orchestrator/`)
976
+
977
+ ---
978
+
979
+ ## [0.3.0] - 2026-01-15
980
+
981
+ ### Added
982
+ - **Collective Advice** — collective brainstorming across all agents
983
+ - **Urgent Preemption** — priority file acquisition for critical bugs
984
+ - **Snapshot & Rollback** change rollback capability
985
+ - **Immune System** — automatic CI/test failure response
986
+
987
+ ---
988
+
989
+ ## [0.2.0] - 2026-01-10
990
+
991
+ ### Added
992
+ - **Architecture Voting** — voting system for dangerous actions
993
+ - **Git Worktrees** — isolated workspaces for parallel tasks
994
+ - **GitHub Integration** — PR creation, branch sync, auto-cleanup
995
+ - **Cross-Agent Review** — code review between agents
996
+
997
+ ---
998
+
999
+ ## [0.1.0] - 2026-01-05
1000
+
1001
+ ### Added
1002
+ - **Agent Registry** — agent registration with generated names (RadiantWolf, SilentFox, etc.)
1003
+ - **Task Management** — full task lifecycle (create, assign, update, complete, cancel)
1004
+ - **File Locking** — exclusive/shared file locks with conflict prediction
1005
+ - **Collaboration** broadcast chat, screenshots, thought logging
1006
+ - **Auction System** — task bidding for agents
1007
+ - **Briefings** mental snapshots for context transfer between agent shifts
1008
+ - **Pulse** live agent activity map
1009
+ - **Knowledge Base** findings and patterns archive
1010
+ - **Ghost Mode** — autonomous code patrol and lint fixing
1011
+ - **Stop Flag** emergency stop for all agents
1012
+
1013
+ ### Infrastructure
1014
+ - MCP Server based on @modelcontextprotocol/sdk
1015
+ - TypeScript compilation
1016
+ - Installer for IDEs (Windsurf, Cursor, Claude Desktop, OpenCode, VS Code)
1017
+ - Agent rules (.windsurfrules, .cursorrules, CLAUDE.md, GEMINI.md)
1018
+ - Companion daemon for background tasks
1019
+
1020
+ ---
1021
+
1022
+ ## Semantic Versioning
1023
+
1024
+ - **MAJOR (X.0.0)** — incompatible API changes
1025
+ - **MINOR (0.X.0)** — new features, backward compatible
1026
+ - **PATCH (0.0.X)** — bug fixes, backward compatible
1027
+
1028
+ ## Legend
1029
+
1030
+ | Type | Description |
1031
+ |------|-------------|
1032
+ | **Added** | New features |
1033
+ | **Changed** | Changes to existing functionality |
1034
+ | **Deprecated** | Features to be removed |
1035
+ | **Removed** | Removed features |
1036
+ | **Fixed** | Bug fixes |
1037
+ | **Security** | Vulnerability fixes |