mcp-swarm 1.0.9 β†’ 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,1107 +1,1107 @@
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
- ## [1.0.7] - 2026-02-09
13
-
14
- ### πŸŒ‰ Full Bridge Coverage β€” All 26 Smart Tools via Remote
15
-
16
- #### Fixed
17
-
18
- - **Critical: Bridge auto-start** β€” `mcp-swarm-remote` now passes `MCP_SERVER_URL` to companion daemon. Previously the companion couldn't know where to connect the bridge, so all remote tool calls returned `{ bridgeConnected: false }`.
19
- - **Documentation: Full startup flow** β€” README now includes complete configuration examples for both Remote and Local modes with `SWARM_HUB_URL`, and step-by-step explanation of what happens at startup.
20
-
21
- #### Changed
22
-
23
- - **Universal bridge delegation** β€” `bridge.ts` now imports `allSmartTools` handlers and delegates ALL tool calls through them instead of manually implementing 3 tools with limited actions.
24
- - Before: only `swarm_file` (read/write/list), `swarm_git` (status/sync), `swarm_agent` (register/whoami) worked through bridge
25
- - After: all 26 tools Γ— all actions work through bridge (swarm_task, swarm_plan, swarm_quality, swarm_vector, etc.)
26
- - **Simplified tool routing** β€” `toolNeedsBridge()` on Cloudflare Worker simplified from 21-line selective logic to `toolName.startsWith("swarm_")` β€” routes ALL swarm tools through bridge.
27
-
28
- #### Configuration
29
-
30
- **Option A: Remote (recommended)**
31
-
32
- ```json
33
- {
34
- "mcpServers": {
35
- "mcp-swarm": {
36
- "command": "npx",
37
- "args": [
38
- "-y", "-p", "mcp-swarm",
39
- "mcp-swarm-remote",
40
- "--url", "https://mcp-swarm-server.YOUR-SUBDOMAIN.workers.dev/mcp"
41
- ],
42
- "env": {
43
- "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
44
- }
45
- }
46
- }
47
- }
48
- ```
49
-
50
- **Option B: Local with Hub**
51
-
52
- ```json
53
- {
54
- "mcpServers": {
55
- "mcp-swarm": {
56
- "command": "node",
57
- "args": ["C:/path/to/Swarm_MCP/dist/serverSmart.js"],
58
- "env": {
59
- "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
60
- }
61
- }
62
- }
63
- }
64
- ```
65
-
66
- #### What Happens at Startup (Remote)
67
-
68
- ```
69
- 1. npx downloads mcp-swarm@latest from npm
70
- 2. mcp-swarm-remote starts β†’ checks if companion is running
71
- 3. If not β†’ starts companion with:
72
- β€’ MCP_SERVER_URL (from --url) β†’ Bridge auto-connects to your Worker
73
- β€’ SWARM_HUB_URL (from env) β†’ WebSocket to Hub for coordination
74
- 4. Companion starts:
75
- β€’ Bridge β†’ WebSocket β†’ MCP Server Worker (executes 26 tools locally)
76
- β€’ Hub β†’ WebSocket β†’ Hub Worker (real-time agent sync)
77
- 5. All 26 smart tools work! βœ…
78
- ```
79
-
80
- ---
81
-
82
- ## [0.9.19] - 2026-02-08
83
-
84
- ### πŸš€ Major Release: Smart Routing, Memory, Agent Teams, MCP Bridges
85
-
86
- #### Added
87
-
88
- - **Smart Router Proxy** (`smartRouterProxy.ts`) β€” Cost optimization engine inspired by distiq-code
89
- - Automatic model tier downgrade (Opus β†’ Sonnet when safe)
90
- - Semantic cache for repeated/similar requests (SHA-256 + similarity)
91
- - Prompt caching suggestions (cache_control breakpoints for Anthropic API)
92
- - Request classification: complexity analysis, token estimation, tier recommendation
93
- - Real-time cost savings tracking and statistics
94
-
95
- - **Swarm Memory** (`swarmMemory.ts`) β€” Hybrid memory system (claude-mem + claude-cognitive)
96
- - 3-tier Context Router: hot (current session) / warm (24h) / cold (archive)
97
- - Pool Coordinator for multi-agent memory synchronization
98
- - Lifecycle hooks: session_start, prompt_submit, response_ready, session_end
99
- - 3-layer search: keyword/tag β†’ timeline β†’ full observations
100
- - Auto-compression for older entries (context window savings)
101
-
102
- - **MCP Linear Bridge** (`mcpLinearBridge.ts`) β€” Auto-sync swarm tasks ↔ Linear issues
103
- - Status mapping: open β†’ Todo, in_progress β†’ In Progress, done β†’ Done
104
- - Task registration and bidirectional sync
105
- - Passive activation (only when mcp-linear MCP is detected)
106
-
107
- - **MCP Context7 Bridge** (`mcpContext7Bridge.ts`) β€” Up-to-date documentation integration
108
- - Auto-detect project tech stack (React, Next.js, Express, Prisma, Supabase, Tailwind...)
109
- - Documentation cache with configurable TTL (default 24h)
110
- - Lookup with cache-first strategy
111
-
112
- - **Claude-Flow Bridge** (`claudeFlowBridge.ts`) β€” Skills routing and RAG pipeline
113
- - Q-learning based skill routing (epsilon-greedy exploration/exploitation)
114
- - Skill registry with quality tracking (Q-values, success rates)
115
- - RAG configuration for vector search β†’ context injection
116
-
117
- - **Agent Teams** (`agentTeams.ts`) β€” Multi-agent team coordination
118
- - Team creation with roles: lead, developer, reviewer, tester, specialist
119
- - Task delegation with dependency tracking
120
- - Auto-rebalancing: redistribute tasks when agent goes offline
121
- - Team-level broadcast messaging
122
- - RAC (Retrieval Augmented Coding) search placeholder
123
-
124
- - **Skills Discovery** (`skillsDiscovery.ts`) β€” IDE-agnostic skill detection
125
- - Scans 6+ IDE formats: Gemini, Antigravity, Claude, Cursor, Codex, Windsurf
126
- - Normalizes skills to unified format
127
- - Task-based skill recommendation (keyword scoring)
128
- - Cross-IDE skill import/export
129
-
130
- ## [0.9.18] - 2026-02-08
131
-
132
- ### 🧠 Π˜Π½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΡ Π½ΠΎΠ²Ρ‹Ρ… AI-ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ
133
-
134
- #### Π”ΠΎΠ±Π°Π²Π»Π΅Π½ΠΎ
135
-
136
- - **Claude Opus 4.6** β€” Π½ΠΎΠ²Ρ‹ΠΉ Ρ„Π»Π°Π³ΠΌΠ°Π½ Anthropic Π² MoE Router
137
- - 1M Ρ‚ΠΎΠΊΠ΅Π½ΠΎΠ² контСкст (ΠΏΠ΅Ρ€Π²Ρ‹ΠΉ Opus с ΠΌΠΈΠ»Π»ΠΈΠΎΠ½Π½Ρ‹ΠΌ контСкстом)
138
- - Adaptive thinking β€” модСль сама Ρ€Π΅ΡˆΠ°Π΅Ρ‚ ΠΊΠΎΠ³Π΄Π° ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ extended thinking
139
- - Context compaction β€” автоматичСскоС сТатиС ΠΏΡ€ΠΈ ΠΏΡ€ΠΈΠ±Π»ΠΈΠΆΠ΅Π½ΠΈΠΈ ΠΊ Π»ΠΈΠΌΠΈΡ‚Ρƒ
140
- - 128K output tokens β€” большиС ΠΎΡ‚Π²Π΅Ρ‚Ρ‹ Π±Π΅Π· разбиСния
141
- - Agent Teams β€” координация Π½Π΅ΡΠΊΠΎΠ»ΡŒΠΊΠΈΡ… Π°Π³Π΅Π½Ρ‚ΠΎΠ² Ρ‡Π΅Ρ€Π΅Π· tmux
142
- - $5/$25 per MTok (≀200K), $10/$37.50 (>200K)
143
-
144
- - **GPT-5.3 Codex** β€” Π½ΠΎΠ²Ρ‹ΠΉ Ρ„Π»Π°Π³ΠΌΠ°Π½ OpenAI для Π°Π³Π΅Π½Ρ‚Π½ΠΎΠ³ΠΎ ΠΊΠΎΠ΄ΠΈΠ½Π³Π°
145
- - 256K контСкст
146
- - ΠžΠΏΡ‚ΠΈΠΌΠΈΠ·ΠΈΡ€ΠΎΠ²Π°Π½ для code_generation, debugging, reasoning
147
- - ~$2/$15 per MTok (estimated)
148
-
149
- - **Kimi K2.5** β€” premium модСль Moonshot AI
150
- - 128K контСкст, фокус Π½Π° code_generation, code_review, debugging
151
- - ~$1/$5 per MTok (estimated)
152
-
153
- #### ИзмСнСно
154
-
155
- - `ModelProvider` Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ Π½Π° `"moonshot"` (Kimi/Moonshot AI)
156
- - Claude Opus 4.5 ΠΏΠΎΠ½ΠΈΠΆΠ΅Π½ с `flagship` β†’ `premium` (Π·Π°ΠΌΠ΅Π½Ρ‘Π½ Opus 4.6)
157
- - MoE Router: **19 ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ** (Π±Ρ‹Π»ΠΎ 16) β€” 4 Anthropic, 9 OpenAI, 5 Google, 1 Moonshot
158
-
159
- ---
160
-
161
- ## [0.9.17] - 2026-02-08
162
-
163
- ### πŸ—οΈ Smart Tools Modularization
164
-
165
- #### Changed
166
-
167
- - **`src/smartTools.ts`** β€” split into **9 modules** in `src/smartTools/`:
168
- - `core.ts` β€” swarm_agent, swarm_control, swarm_pulse, swarm_companion
169
- - `tasks.ts` β€” swarm_task, swarm_plan, swarm_briefing, swarm_spec
170
- - `files.ts` β€” swarm_file, swarm_worktree, swarm_snapshot
171
- - `git.ts` β€” swarm_git, swarm_hooks, swarm_dependency
172
- - `collaboration.ts` β€” swarm_chat, swarm_message, swarm_review, swarm_voting, swarm_auction, swarm_brainstorm
173
- - `security.ts` β€” swarm_defence, swarm_consensus, swarm_mcp
174
- - `analytics.ts` β€” swarm_cost, swarm_quality, swarm_regression, swarm_session
175
- - `intelligence.ts` β€” swarm_sona, swarm_moe, swarm_vector, swarm_booster, swarm_context_pool, swarm_context
176
- - `infra.ts` β€” swarm_health, swarm_immune, swarm_external, swarm_platform, swarm_knowledge, etc.
177
- - **`src/smartTools/index.ts`** β€” centralized re-export of all modules
178
- - **`src/serverSmart.ts`** β€” updated to import from `smartTools/index.js`
179
-
180
- ### πŸ”’ Cloudflare Workers with Authentication
181
-
182
- #### Added
183
-
184
- - **`cloudflare/abdr-hub/`** β€” new Cloudflare Worker `abdr-swarm-hub`
185
- - Bearer Token + Query parameter authentication
186
- - WebSocket bridge for agents
187
- - REST API for swarm management
188
- - **`cloudflare/abdr-server/`** β€” new Cloudflare Worker `abdr-swarm-server`
189
- - Streamable HTTP Transport (MCP spec 2025-03-26)
190
- - All 54 Smart Tools
191
- - Automatic Bearer Token forwarding to Hub
192
- - **`cloudflare/telegram-bot/`** β†’ renamed to `abdr-swarm-telegram`
193
- - `SWARM_AUTH_TOKEN` protection for `/register` endpoint
194
- - Bearer Token for Hub API calls
195
-
196
- ### πŸ”„ CI/CD Pipeline
197
-
198
- #### Changed
199
-
200
- - **`.github/workflows/ci.yml`** β€” improvements:
201
- - Triggers for `main` and `develop` branches
202
- - TypeScript check (`tsc --noEmit`) before build
203
- - Node.js matrix: 18, 20, 22
204
- - Automatic npm publish on push to `main`
205
-
206
- ### πŸ—‘οΈ Legacy Code Removed
207
-
208
- #### Removed
209
-
210
- - **`src/tools.ts`** β€” old 41 tools (replaced by `smartTools/`)
211
- - **`src/server.ts`** β€” old server (replaced by `serverSmart.ts`)
212
-
213
- ### πŸ“Š Dashboard
214
-
215
- #### Changed
216
-
217
- - Updated version in footer: v0.9.12 β†’ v0.9.17
218
-
219
- ### πŸ“¦ Updates
220
-
221
- - `package.json` β†’ version `0.9.17`
222
-
223
- ### πŸ”„ How to Update
224
-
225
- ```bash
226
- npm install -g mcp-swarm@latest
227
- # or
228
- npm update mcp-swarm
229
- ```
230
-
231
- ---
232
-
233
- ## [0.9.16] - 2026-02-08
234
-
235
- ### πŸ› Critical Fix: Zod Compatibility
236
-
237
- **BREAKING FIX:** Fixed `keyValidator._parse is not a function` error that made all 54 Smart Tools completely non-functional in Antigravity and similar clients.
238
-
239
- #### Root Cause
240
- - `zod@^3.23.8` in `package.json` auto-installed `3.25.76` β€” essentially a Zod v4 bridge version
241
- - Zod v4 removed the internal `_parse()` method used by clients for JSON Schema validation
242
- - Result: **no Smart Tool worked** due to input schema parsing errors
243
-
244
- #### Fix
245
- - `zod` pinned to exact version `3.23.8` (pure Zod v3, no v4 bridge)
246
- - Prevents automatic upgrades to incompatible versions
247
-
248
- > πŸ™ We apologize for the inconvenience. This bug affected all users who updated via npm.
249
-
250
- ### πŸ”’ Security: Cloudflare Workers
251
-
252
- - Removed deployed workers `mcp-swarm-hub` and `mcp-swarm-server` (URLs were exposed in commits)
253
- - Worker sources **preserved** in `cloudflare/` β€” will be redeployed with new names
254
-
255
- ### πŸ“¦ Updates
256
-
257
- - `serverSmart.ts` β€” dynamic version from `package.json` instead of hardcode
258
- - `server.ts` β€” marked as deprecated (`@ts-nocheck`), use `serverSmart.ts`
259
- - `.gitignore` β€” added patterns for test files
260
-
261
- ### πŸ”„ How to Update
262
-
263
- ```bash
264
- npm install -g mcp-swarm@latest
265
- # or
266
- npm update mcp-swarm
267
- ```
268
-
269
- ---
270
-
271
- ## [0.9.15] - 2026-02-08
272
-
273
- ### πŸ“– Bilingual Documentation
274
-
275
- #### Changed
276
-
277
- - **`README.md`** β€” fully translated to **English** (~1100 lines)
278
- - Professional translation of all sections: tools, installation, configuration, architecture
279
- - Added link to Russian version: `πŸ‡·πŸ‡Ί Π§ΠΈΡ‚Π°Ρ‚ΡŒ Π½Π° русском`
280
- - **`package.json`** β€” description updated to English
281
- - **Version updated in heading** β€” v0.9.15
282
-
283
- #### Added
284
-
285
- - **`README.ru.md`** β€” Russian version of README created
286
- - Full original README content in Russian
287
- - Link to English version: `πŸ‡¬πŸ‡§ Read in English`
288
-
289
- ---
290
-
291
- ## [0.9.14] - 2026-02-08
292
-
293
- ### πŸ› npx Command Fix
294
-
295
- #### Fixed
296
-
297
- - **`README.md`** β€” fixed `npx mcp-swarm-remote` commands:
298
- - Before: `npx mcp-swarm-remote --url ...` (E404 error, package not found)
299
- - After: `npx -y -p mcp-swarm mcp-swarm-remote --url ...`
300
- - **`REMOTE.md`** β€” same fix applied to all IDE configuration examples
301
- - **Version updated** β€” v0.9.14
302
-
303
- #### Root Cause
304
-
305
- - `npx mcp-swarm-remote` tried to find a **separate** package `mcp-swarm-remote` on npm
306
- - `mcp-swarm-remote` is a binary within the `mcp-swarm` package, so the `-p mcp-swarm` flag is required
307
-
308
- ---
309
-
310
- ## [0.9.13] - 2026-02-05
311
-
312
- ### Self-Hosted Infrastructure
313
-
314
- **BREAKING CHANGE:** Removed hardcoded public server URLs. Users must now deploy their own Cloudflare Workers.
315
-
316
- #### Changed
317
-
318
- - **README.md** β€” Complete rewrite of installation section
319
- - Added Cloudflare Free Tier explanation and limits
320
- - Step-by-step deployment guide for Hub, MCP Server, Telegram Bot
321
- - Explained what YOUR-SUBDOMAIN means
322
-
323
- - **wrangler.toml files** β€” All 3 Workers now have placeholders
324
- - `cloudflare/hub/wrangler.toml` β€” Added deployment instructions
325
- - `cloudflare/mcp-server/wrangler.toml` β€” HUB_URL placeholder
326
- - `cloudflare/telegram-bot/wrangler.toml` β€” SWARM_HUB_URL placeholder
327
-
328
- - **install.ps1 / install.sh** β€” Now ask for user's server URLs
329
- - No more hardcoded URLs
330
- - Instructions for deploying first
331
-
332
- - **mcp-swarm-remote** β€” `--url` is now **required**
333
- - Shows helpful error message with deployment link
334
- - Added `--help` option
335
-
336
- - **Dashboard** β€” `.env.example` uses placeholder
337
- - `useWebSocket.ts` warns if HUB_URL not configured
338
-
339
- - **Agent rules** (AGENTS.md, CLAUDE.md, GEMINI.md, AGENT.md)
340
- - Updated with YOUR-SUBDOMAIN placeholders
341
-
342
- #### Why This Change?
343
-
344
- - **Privacy**: Your data stays on your infrastructure
345
- - **No shared limits**: Full Cloudflare Free Tier for yourself
346
- - **Customization**: Modify Workers as needed
347
- - **Transparency**: No hidden public server
348
-
349
- ---
350
-
351
- ## [0.9.12] - 2026-02-05
352
-
353
- ### Dashboard Real-time Updates
354
-
355
- #### Added
356
-
357
- - **WebSocket Hook** (`dashboard/src/hooks/useWebSocket.ts`)
358
- - Real-time connection to Swarm Hub
359
- - Auto-reconnect with exponential backoff
360
- - Keep-alive ping every 25 seconds
361
- - Event filtering for specific event types
362
-
363
- - **New Core Widgets** (`dashboard/src/components/widgets/CoreWidgets.tsx`)
364
- - **ConnectionStatusWidget** β€” Shows Hub connection status with reconnect button
365
- - **ActivityTimelineWidget** β€” Real-time event stream from Hub
366
- - **FileLocksWidget** β€” Active file reservations with live updates
367
- - **CostTrackingWidget** β€” API usage and budget progress bars
368
- - **VotingWidget** β€” Distributed consensus proposals and votes
369
-
370
- - **Live Indicators**
371
- - Green pulsing dot for connected/active status
372
- - LIVE/OFFLINE badges for real-time widgets
373
- - Last update timestamps with relative time format
374
-
375
- ### Telegram Bot Enhancements
376
-
377
- #### Added
378
-
379
- - **New Commands**
380
- - `/reviews` β€” List pending code reviews with inline approve/reject buttons
381
- - `/approve [id]` β€” Approve a review directly from Telegram
382
- - `/reject [id] [reason]` β€” Reject a review with optional reason
383
-
384
- - **Enhanced Inline Keyboards**
385
- - Reviews list shows approve/reject buttons for each pending review
386
- - Help menu now includes Reviews button
387
-
388
- ### Auto-start Companion
389
-
390
- #### Added
391
-
392
- - **Companion Auto-start** in `mcp-swarm-remote`
393
- - Checks if companion daemon is running on port 37373
394
- - Automatically spawns companion in background if not running
395
- - Can be disabled with `--no-companion` flag
396
-
397
- #### Changed
398
-
399
- - Dashboard now uses WebSocket for real-time updates instead of polling-only
400
- - Added "Real-time Monitoring" section with new widgets
401
- - Updated version to 0.9.12 in footer
402
-
403
- ---
404
-
405
- ## [0.9.11] - 2026-02-04
406
-
407
- ### One-Click Installer & Streamable HTTP
408
-
409
- #### Added
410
-
411
- - **One-Click Install Scripts**
412
- - `install.ps1` β€” PowerShell installer for Windows
413
- - `install.sh` β€” Bash installer for macOS/Linux
414
- - `npx mcp-swarm-install` β€” Interactive Node.js installer
415
-
416
- - **Streamable HTTP Transport** (MCP spec 2025-03-26)
417
- - Single `POST /mcp` endpoint instead of SSE
418
- - Session management via `Mcp-Session-Id` header
419
- - Works on Cloudflare Workers without SSE issues
420
-
421
- - **mcp-swarm-remote Proxy** (`src/remote/index.ts`)
422
- - stdio β†’ Streamable HTTP proxy for IDE integration
423
- - Windows stdin compatibility fix
424
-
425
- #### Changed
426
-
427
- - Installer now **merges** configs instead of overwriting
428
- - Auto-detects IDE installations (Claude Desktop, Cursor, Windsurf, OpenCode, VS Code)
429
-
430
- ---
431
-
432
- ## [0.9.10] - 2026-02-03
433
-
434
- ### 🧠 MoE Router β€” Mixture of Experts Model Selection
435
-
436
- #### Added
437
-
438
- - **MoE Router Module** (`src/workflows/moeRouter.ts`)
439
- - Intelligent model routing based on task characteristics
440
- - Gating network for expert selection
441
- - Cost-performance optimization
442
- - Learning from feedback
443
-
444
- - **Expert Classification**
445
- - 14 task categories: code_generation, code_review, debugging, reasoning, math, creative, etc.
446
- - 4 model tiers: economy, standard, premium, flagship
447
- - 6 providers: anthropic, openai, google, mistral, local, custom
448
-
449
- - **Built-in Experts (19 models, verified pricing February 2026)**
450
- - **Anthropic Claude Series:**
451
- - Claude Opus 4.6 (flagship, 1M, $5/$25 MTok) ← NEW
452
- - Claude Opus 4.5 (flagship, 200K, $5/$25 MTok)
453
- - Claude Sonnet 4.5 (premium, 200K, $3/$15 MTok)
454
- - Claude Haiku 4.5 (economy, 200K, $1/$5 MTok)
455
- - **OpenAI GPT-5.x Series:**
456
- - GPT-5.3 Codex (flagship, 256K, ~$2/~$15 MTok) ← NEW
457
- - GPT-5.2 (flagship, 256K, $1.75/$14 MTok)
458
- - GPT-5.2 Pro (flagship, 256K, $21/$168 MTok)
459
- - GPT-5 Mini (standard, 128K, $0.25/$2 MTok)
460
- - GPT-4.1 (premium, 128K, $3/$12 MTok)
461
- - GPT-4.1 Mini (standard, 128K, $0.80/$3.20 MTok)
462
- - GPT-4.1 Nano (economy, 128K, $0.20/$0.80 MTok)
463
- - **OpenAI Reasoning Models:**
464
- - o4-mini (reasoning, 128K, $4/$16 MTok)
465
- - **Moonshot AI:**
466
- - Kimi K2.5 (premium, 128K, ~$1/~$5 MTok) ← NEW
467
- - **Google Gemini 3.x Series:**
468
- - Gemini 3 Pro (flagship, 1M, $2/$12 MTok)
469
- - Gemini 3 Flash (standard, 1M, $0.50/$3 MTok)
470
- - **Google Gemini 2.5 Series:**
471
- - Gemini 2.5 Pro (premium, 1M, $1.25/$10 MTok)
472
- - Gemini 2.5 Flash (standard, 1M, $0.30/$2.50 MTok)
473
- - Gemini 2.5 Flash Lite (economy, 1M, $0.10/$0.40 MTok)
474
-
475
- - **Routing Factors**
476
- - Task match score (category-specific strength)
477
- - Cost efficiency
478
- - Performance history (success rate)
479
- - Load balancing (prefer less recently used)
480
- - Latency constraints
481
- - Context window requirements
482
-
483
- - **Learning System**
484
- - Feedback recording
485
- - Exponential moving average for success rate
486
- - Automatic latency calibration
487
- - Per-expert statistics
488
-
489
- - **Smart Tool #54: `swarm_moe`**
490
- - `route`: Route task to best expert
491
- - `feedback`: Record routing feedback
492
- - `experts`: List available experts
493
- - `add_expert` / `remove_expert`: Manage experts
494
- - `config` / `set_config`: Configuration
495
- - `stats`: Routing statistics
496
- - `history`: Routing history
497
- - `classify`: Classify task category
498
- - `reset`: Reset statistics
499
-
500
- - **Dashboard API Endpoint** (`/api/moe`)
501
- - Routing statistics
502
- - Expert list and usage
503
- - Configuration status
504
-
505
- ---
506
-
507
- ## [0.9.9] - 2026-02-03
508
-
509
- ### 🀝 Consensus β€” Distributed Agreement Protocols
510
-
511
- #### Added
512
-
513
- - **Consensus Module** (`src/workflows/consensus.ts`)
514
- - Raft-like leader election with term-based leadership
515
- - Log replication for ordered command execution
516
- - Byzantine Fault Tolerance (BFT) mode for untrusted environments
517
- - Proposal system with configurable voting thresholds
518
- - Automatic failover when leader becomes unresponsive
519
-
520
- - **Consensus Modes**
521
- - `simple_majority`: 50%+ votes for approval
522
- - `raft`: Term-based leadership, log replication
523
- - `bft`: Byzantine fault tolerant (2/3+1 quorum)
524
-
525
- - **Node Management**
526
- - Join/leave cluster
527
- - Heartbeat monitoring
528
- - Trusted/untrusted node classification
529
- - Automatic dead node detection
530
-
531
- - **Proposal System**
532
- - Types: config_change, task_assignment, architecture, rollback, emergency, custom
533
- - Vote types: approve, reject, abstain
534
- - Configurable majority thresholds (0.5 to 1.0)
535
- - Expiration timeout handling
536
- - Signature verification for BFT mode
537
-
538
- - **Log Replication**
539
- - Ordered command log
540
- - Commit confirmation from leader
541
- - State machine replication across nodes
542
-
543
- - **Smart Tool #53: `swarm_consensus`**
544
- - `join`: Join consensus cluster
545
- - `leave`: Leave cluster
546
- - `heartbeat`: Send heartbeat
547
- - `status`: Get cluster status
548
- - `elect`: Start leader election
549
- - `leader`: Get current leader
550
- - `propose`: Create proposal
551
- - `vote`: Vote on proposal
552
- - `proposals`: List proposals
553
- - `get_proposal`: Get proposal details
554
- - `execute`: Execute approved proposal
555
- - `log` / `append` / `commit`: Log management
556
- - `config` / `set_config`: Configuration
557
- - `stats`: Statistics
558
-
559
- - **Dashboard API Endpoint** (`/api/consensus`)
560
- - Cluster status and node list
561
- - Leader information
562
- - Proposal statistics
563
- - Recent proposals
564
-
565
- ---
566
-
567
- ## [0.9.8] - 2026-02-03
568
-
569
- ### πŸ›‘οΈ AIDefence β€” Security & Threat Detection
570
-
571
- #### Added
572
-
573
- - **AIDefence Module** (`src/workflows/aiDefence.ts`)
574
- - <10ms threat detection latency
575
- - Pattern-based detection with regex + heuristics
576
- - Behavioral anomaly detection
577
- - Quarantine system for suspicious content
578
- - Audit logging for security events
579
- - Configurable sensitivity levels
580
-
581
- - **Threat Categories**
582
- - `prompt_injection`: Instruction override, role hijacking, delimiter attacks
583
- - `jailbreak`: DAN mode, hypothetical bypasses, character hijacking
584
- - `code_injection`: Shell commands, eval, SQL injection, path traversal
585
- - `data_exfiltration`: API keys, credentials, external uploads
586
- - `sensitive_data`: PII, private keys, passwords
587
- - `unsafe_command`: rm -rf, sudo, crypto mining
588
- - `social_engineering`: Authority claims, urgency manipulation
589
- - `impersonation`: Agent identity spoofing
590
- - `dos_attack`: Request flooding
591
- - `unauthorized_tool`: Restricted tool access
592
-
593
- - **Sensitivity Levels**
594
- - `low`: Only critical threats
595
- - `medium`: Balanced (default)
596
- - `high`: Strict checking
597
- - `paranoid`: Maximum security
598
-
599
- - **Smart Tool #52: `swarm_defence`**
600
- - `scan`: Scan text for threats
601
- - `validate_agent`: Validate agent identity
602
- - `validate_tool`: Validate tool usage
603
- - `events`: Get security events log
604
- - `quarantine`: Get quarantined items
605
- - `release`: Release from quarantine
606
- - `stats`: Get defence statistics
607
- - `config` / `set_config`: Configuration
608
- - `trust` / `untrust`: Agent whitelist management
609
- - `clear_events`: Clear event log
610
-
611
- - **Dashboard API Endpoint** (`/api/defence`)
612
- - Security statistics
613
- - Threat distribution by category/severity
614
- - Quarantine status
615
- - Recent events log
616
-
617
- ---
618
-
619
- ## [0.9.7] - 2026-02-03
620
-
621
- ### πŸ” HNSW β€” Hierarchical Navigable Small World
622
-
623
- #### Added
624
-
625
- - **HNSW Module** (`src/workflows/hnsw.ts`)
626
- - Fast approximate nearest neighbor search
627
- - 150x-12,500x faster than brute force
628
- - Pure TypeScript implementation (no dependencies)
629
- - Based on Malkov & Yashunin (2016) algorithm
630
-
631
- - **Vector Operations**
632
- - Cosine similarity (default)
633
- - Euclidean distance
634
- - Dot product
635
- - Configurable dimensions (384, 768, 1536)
636
-
637
- - **Simple Embeddings**
638
- - Built-in bag-of-words embedder for demos
639
- - Works without external API
640
- - Can use custom vectors from OpenAI/Cohere/etc.
641
-
642
- - **Smart Tool #51: `swarm_vector`**
643
- - `init`: Initialize vector index
644
- - `add`: Add document with text or vector
645
- - `add_batch`: Add multiple documents
646
- - `search`: Find similar documents
647
- - `get`: Get document by ID
648
- - `delete`: Remove document
649
- - `list`: List all documents
650
- - `stats`: Index statistics
651
- - `config` / `set_config`: Configuration
652
- - `clear`: Clear entire index
653
- - `duplicates`: Find duplicate documents
654
- - `embed`: Get embedding for text
655
-
656
- - **Dashboard API Endpoint** (`/api/vector`)
657
- - Index statistics
658
- - Configuration status
659
- - Memory usage tracking
660
-
661
- #### Performance
662
-
663
- | Documents | Brute Force | HNSW | Speedup |
664
- |-----------|-------------|------|---------|
665
- | 1,000 | 10ms | 0.5ms | 20x |
666
- | 10,000 | 100ms | 0.8ms | 125x |
667
- | 100,000 | 1,000ms | 1.2ms | 833x |
668
- | 1,000,000 | 10,000ms | 2ms | 5,000x |
669
-
670
- ---
671
-
672
- ## [0.9.6] - 2026-02-03
673
-
674
- ### ⚑ Agent Booster β€” Fast Local Execution
675
-
676
- #### Added
677
-
678
- - **Agent Booster Module** (`src/workflows/agentBooster.ts`)
679
- - Executes trivial tasks locally without LLM API calls
680
- - 352x faster than LLM (local execution)
681
- - $0 cost (no API calls needed)
682
- - Works offline
683
- - Deterministic results
684
-
685
- - **Supported Task Types** (14 types)
686
- - `rename_variable` β€” Rename variables/functions across file
687
- - `fix_typo` β€” Fix typos in strings and comments only
688
- - `find_replace` β€” Simple find and replace
689
- - `add_console_log` β€” Add debug logging at specific line
690
- - `remove_console_log` β€” Remove all console.log statements
691
- - `toggle_flag` β€” Toggle boolean flags (true ↔ false)
692
- - `update_version` β€” Update version numbers
693
- - `update_import` β€” Update import paths
694
- - `add_comment` β€” Add comment at specific line
695
- - `remove_comment` β€” Remove single-line comments
696
- - `format_json` β€” Format JSON files
697
- - `sort_imports` β€” Sort imports alphabetically
698
- - `add_export` β€” Add export to function/class
699
- - `extract_constant` β€” Extract magic number to constant
700
-
701
- - **Smart Detection**
702
- - `can_boost` action analyzes task description
703
- - Auto-detects boostable tasks with confidence score
704
- - Extracts parameters from natural language
705
-
706
- - **Smart Tool #50: `swarm_booster`**
707
- - `execute`: Run a booster task
708
- - `can_boost`: Check if task can be boosted
709
- - `stats`: Get booster statistics
710
- - `history`: Get execution history
711
- - `config`: Get configuration
712
- - `set_config`: Update configuration
713
- - `types`: List supported task types
714
-
715
- - **Dashboard API Endpoint** (`/api/booster`)
716
- - Booster statistics and type distribution
717
- - Recent execution history
718
- - Configuration status
719
- - Cost savings tracking
720
-
721
- #### Performance
722
-
723
- | Metric | LLM | Agent Booster | Improvement |
724
- |--------|-----|---------------|-------------|
725
- | Speed | ~3000ms | ~8ms | 352x faster |
726
- | Cost | $0.01/task | $0 | 100% savings |
727
- | Offline | ❌ | βœ… | Works anywhere |
728
- | Deterministic | ⚠️ | βœ… | Same input = same output |
729
-
730
- ---
731
-
732
- ## [0.9.5] - 2026-02-03
733
-
734
- ### 🧠 SONA β€” Self-Optimizing Neural Architecture
735
-
736
- #### Added
737
-
738
- - **SONA Module** (`src/workflows/sona.ts`)
739
- - Self-learning task routing system inspired by Claude-Flow
740
- - Records which agents perform best for each task type
741
- - Routes new tasks to best-performing agents
742
- - Learns from outcomes with <0.05ms adaptation
743
- - Improves over time with reinforcement learning
744
-
745
- - **Task Classification**
746
- - Automatic category detection: frontend_ui, backend_api, database, testing, devops, documentation, refactoring, bugfix, feature, security, performance, infrastructure
747
- - Complexity estimation: trivial, simple, medium, complex, epic
748
- - Keyword-based pattern matching
749
- - Affected path analysis
750
-
751
- - **Agent Performance Tracking**
752
- - Success rate tracking per category
753
- - Quality score averaging
754
- - Completion time tracking
755
- - Statistical confidence calculation
756
- - Specialization detection (top 3 categories per agent)
757
-
758
- - **Online Learning**
759
- - Exponential moving average for rolling metrics
760
- - Configurable learning rate and decay
761
- - Elastic Weight Consolidation (EWC++) to prevent forgetting
762
- - Exploration/exploitation balance (10% exploration by default)
763
-
764
- - **Smart Tool #49: `swarm_sona`**
765
- - `route`: Get routing recommendation for a task
766
- - `learn`: Record task outcome and update model
767
- - `classify`: Classify a task (category, complexity)
768
- - `profile`: Get agent's performance profile
769
- - `profiles`: Get all agent profiles
770
- - `specialists`: Get top agents for a category
771
- - `history`: Get learning history
772
- - `stats`: Get SONA statistics
773
- - `config`: Get configuration
774
- - `set_config`: Update configuration
775
- - `reset`: Reset the model
776
-
777
- - **Dashboard API Endpoint** (`/api/sona`)
778
- - SONA statistics and agent profiles
779
- - Category distribution
780
- - Recent learning events
781
- - Top performing agents
782
-
783
- ---
784
-
785
- ## [0.9.4] - 2026-02-03
786
-
787
- ### πŸ“± Telegram Bot Integration
788
-
789
- #### Added
790
-
791
- - **Telegram Bot** (`src/integrations/telegram.ts`)
792
- - Full-featured Telegram bot for notifications and control
793
- - Event notifications: task created/completed/failed, agent joined/died, CI errors
794
- - Commands: `/status`, `/agents`, `/tasks`, `/create_task`, `/stop`, `/resume`, `/config`
795
- - Interactive inline buttons for quick actions
796
- - Priority setting via buttons (Critical, High, Medium)
797
- - Approve/Reject/Comment on reviews via Telegram
798
- - Vote on architecture decisions via Telegram
799
-
800
- - **Smart Tool #47: `swarm_telegram`**
801
- - Actions: `setup`, `config`, `enable`, `disable`, `send`
802
- - Notifications: `notify_task_created`, `notify_task_completed`, `notify_task_failed`, `notify_agent_joined`, `notify_agent_died`
803
- - Bot control: `start_polling`, `stop_polling`, `command`
804
-
805
- - **Dashboard API Endpoint** (`/api/telegram`)
806
- - Telegram configuration status
807
- - Setup instructions if not configured
808
-
809
- - **Cloudflare Worker for Telegram** (`cloudflare/telegram-bot/`)
810
- - Webhook-based (no polling required)
811
- - Deploy to Cloudflare Workers
812
- - `/setup` endpoint for webhook registration
813
-
814
- - **Smart Tool #48: `swarm_batch`**
815
- - Request batching for 50% cost savings
816
- - Supports Anthropic Message Batches API
817
- - Supports OpenAI Batch API
818
- - Actions: `queue`, `config`, `set_config`, `job`, `jobs`, `result`, `stats`, `flush`
819
-
820
- - **Batching Module** (`src/workflows/batching.ts`)
821
- - Automatic request grouping
822
- - Configurable batch size and wait time
823
- - Async batch processing with result polling
824
- - Cost savings estimation
825
-
826
- ---
827
-
828
- ## [0.9.3] - 2026-02-03
829
-
830
- ### 🧠 Smart Features & Cost Optimization
831
-
832
- #### Added
833
-
834
- - **Smart Task Routing** (`src/workflows/smartRouting.ts`)
835
- - Automatic task assignment based on file expertise
836
- - Tracks which agent edited which files
837
- - Calculates expertise scores (exact match 10x, folder 3x, extension 2x)
838
-
839
- - **Shared Context Pool** (`src/workflows/contextPool.ts`)
840
- - Agents share notes about code to avoid re-reading
841
- - Auto-staleness detection (if file hash changed)
842
- - Tags, categories, and helpful counter
843
-
844
- - **Auto Code Review** (`src/workflows/autoReview.ts`)
845
- - Automatic review assignment when task completes
846
- - Finds reviewer who knows the affected files
847
- - Comment severity levels (critical, major, minor, suggestion)
848
-
849
- - **GitHub/Linear Sync** (`src/workflows/externalSync.ts`)
850
- - Two-way sync with GitHub Issues
851
- - Linear.app integration (GraphQL API)
852
- - Auto-import issues as swarm tasks
853
- - Auto-close issues when task is done
854
-
855
- - **Cost Optimization** (`src/workflows/costOptimization.ts`)
856
- - Task complexity analysis (simple/medium/complex)
857
- - Smart model routing (cheap/standard/premium tiers)
858
- - Budget management with daily/weekly/monthly limits
859
- - Alert thresholds (50%, 80%, 95%)
860
-
861
- - **Background Heartbeat Worker** (`src/workers/`)
862
- - Uses Node.js `worker_threads` for continuous heartbeat
863
- - Works even when agent is "thinking"
864
-
865
- - **Web Dashboard** (`dashboard/`)
866
- - Real-time agent status monitoring
867
- - Orchestrator status banner with glow effects
868
- - Stats cards (agents, tasks, messages, uptime)
869
- - Task list with priority indicators
870
- - Built with Next.js + ShadCN UI
871
-
872
- - **Dashboard API** (`src/dashboardApi.ts`)
873
- - HTTP API server on port 3334
874
- - New v0.9.3 endpoints: `/api/expertise`, `/api/context`, `/api/reviews`, `/api/budget`, `/api/sync`
875
-
876
- #### Smart Tools (42-46)
877
-
878
- | # | Tool | Actions | Description |
879
- |---|------|---------|-------------|
880
- | 42 | `swarm_routing` | record, find_agent, expertise, predict, auto_assign | Smart task routing based on file expertise |
881
- | 43 | `swarm_context_pool` | add, get, search_tag, search, helpful, update, cleanup, stats | Shared context notes between agents |
882
- | 44 | `swarm_autoreview` | create, assign, comment, complete, resolve, for_reviewer, for_author, pending, stats | Automatic code review assignment |
883
- | 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 |
884
- | 46 | `swarm_budget` | analyze, models, select, recommend, route, log_usage, usage, stats, config, set_config, check, remaining, report | Cost optimization and model routing |
885
-
886
- ---
887
-
888
- ## [0.9.1] - 2026-02-02
889
-
890
- ### πŸ“š Documentation & UX Improvements
891
-
892
- #### Added
893
- - **Linux Installation Instructions** β€” full instructions for Linux
894
- - **IDE-Specific Configs** β€” separate configurations for:
895
- - Claude Desktop (Windows/macOS/Linux)
896
- - Cursor, Windsurf, OpenCode CLI, VS Code + Copilot/Continue
897
- - **Troubleshooting Section** β€” solutions for common issues:
898
- - "Cannot find module" errors
899
- - Agent not becoming orchestrator
900
- - "repoPath is required" error
901
- - Cloudflare Hub unavailable
902
- - Files locked by another agent
903
- - **Architecture Diagram** β€” ASCII diagram of Cloudflare Hub + Local Agents
904
- - **Contributing Guidelines** β€” rules for PRs
905
-
906
- #### Changed
907
- - README.md completely reworked with collapsible sections (`<details>`)
908
-
909
- ---
910
-
911
- ## [0.9.0] - 2026-02-02
912
-
913
- ### πŸš€ MAJOR: Smart Tools Consolidation
914
-
915
- **Reduces 168+ individual tools β†’ 41 Smart Tools with `action` parameter**
916
-
917
- #### Added
918
-
919
- - **Smart Tools System** β€” 41 unified tools replacing 168+ individual tools
920
- - Each Smart Tool groups 3-15 related functions via `action` parameter
921
- - Better discoverability and easier to remember
922
- - Consistent parameter patterns across all tools
923
-
924
- #### Smart Tools List (41 tools)
925
-
926
- | # | Tool Name | Actions | Description |
927
- |---|-----------|---------|-------------|
928
- | 1 | `swarm_agent` | register, whoami | Agent identity |
929
- | 2 | `swarm_task` | create, list, update, decompose, get_decomposition | Task management |
930
- | 3 | `swarm_file` | reserve, release, list, forecast, conflicts, safety | File locking |
931
- | 4 | `swarm_git` | sync, pr, health, cleanup, cleanup_all | Git operations |
932
- | 5 | `swarm_worktree` | create, list, remove | Git worktrees |
933
- | 6 | `swarm_companion` | status, stop, pause, resume | Companion daemon |
934
- | 7 | `swarm_control` | stop, resume, status | Swarm control |
935
- | 8 | `swarm_chat` | broadcast, dashboard, thought, thoughts | Team chat |
936
- | 9 | `swarm_review` | request, respond, list | Code review |
937
- | 10 | `swarm_voting` | start, vote, list, get | Voting system |
938
- | 11 | `swarm_auction` | announce, bid, poll | Task auction |
939
- | 12 | `swarm_mcp` | scan, authorize, policy | MCP scanning |
940
- | 13 | `swarm_orchestrator` | elect, info, heartbeat, resign, executors, executor_heartbeat | Orchestrator |
941
- | 14 | `swarm_message` | send, inbox, ack, reply, search, thread | Messaging |
942
- | 15 | `swarm_briefing` | save, load | Briefings |
943
- | 16 | `swarm_pulse` | update, get | Real-time status |
944
- | 17 | `swarm_knowledge` | archive, search | Knowledge base |
945
- | 18 | `swarm_snapshot` | create, rollback, list | Snapshots |
946
- | 19 | `swarm_health` | check, dead, reassign, summary | Agent health |
947
- | 20 | `swarm_quality` | run, report, threshold, pr_ready | Quality gate |
948
- | 21 | `swarm_cost` | log, agent, project, limit, remaining | Cost tracking |
949
- | 22-41 | ... | ... | Brainstorming, Plans, Debug, Spec, QA, Hooks, etc. |
950
-
951
- ### Backward Compatibility
952
-
953
- - Legacy 168+ tools server available via `npm run dev:legacy`
954
- - Smart Tools server via `npm run dev` (default)
955
-
956
- ---
957
-
958
- ## [0.8.1] - 2026-02-02
959
-
960
- ### Added
961
- - **Smart Tools Draft** β€” prototype of consolidating 168+ tools into 41 Smart Tools
962
- - Files `smartTools.ts.draft` and `serverSmart.ts.draft`
963
- - Each Smart Tool combines 3-15 similar tools via `action` parameter
964
-
965
- ---
966
-
967
- ## [0.8.0] - 2026-02-02
968
-
969
- ### Added
970
- - **Orchestrator Election** (6 tools) β€” first agent becomes orchestrator
971
- - `orchestrator_elect`, `orchestrator_info`, `orchestrator_heartbeat`, `orchestrator_resign`
972
- - `executor_list`, `executor_heartbeat`
973
-
974
- - **Agent Messaging** (6 tools) β€” full inter-agent messaging system
975
- - `agent_message_send`, `agent_inbox_fetch`, `agent_message_ack`
976
- - `agent_message_reply`, `agent_message_search`, `agent_thread_get`
977
-
978
- - **Infinite Loop Mode** β€” orchestrator runs continuously
979
- - Companion daemon with automatic orchestrator election
980
- - Orchestrator does NOT stop via API β€” only by user
981
- - Executors register with orchestrator
982
- - Heartbeat system for liveness monitoring
983
-
984
- ---
985
-
986
- ## [0.7.0] - 2026-02-02
987
-
988
- ### Added
989
- - **Spec Pipeline** (6 tools) β€” structured pipeline for specification creation
990
- - 4 roles: gatherer β†’ researcher β†’ writer β†’ critic
991
- - **QA Loop** (7 tools) β€” iterative review/fix cycles
992
- - **Guard Hooks** (6 tools) β€” pre-commit/pre-push safety hooks
993
- - Bypass with `[skip-hooks]` keyword in commit message
994
- - **Tool Clusters** (7 tools) β€” tool organization by categories
995
- - 13 categories (agent, task, file, git, collab, safety, quality, debug, plan, hooks, session, cost, docs)
996
-
997
- ---
998
-
999
- ## [0.6.0] - 2026-01-30
1000
-
1001
- ### Added
1002
- - **Brainstorming Skill** (9 tools) β€” interactive design through step-by-step questions
1003
- - **Writing Plans Skill** (11 tools) β€” TDD plans with bite-sized tasks (2-5 min)
1004
- - **Systematic Debugging** (13 tools) β€” 4-phase debugging process
1005
- - Iron Law: NO FIXES WITHOUT ROOT CAUSE
1006
- - Red Flags detection: "Let me just try...", "Maybe if I...", "This should fix it..."
1007
-
1008
- ---
1009
-
1010
- ## [0.5.0] - 2026-01-30
1011
-
1012
- ### Added
1013
- - **Agent Health Monitor** β€” liveness monitoring for agents
1014
- - **Session Recording** β€” action recording for replay
1015
- - **Quality Gate** β€” automated pre-merge checks (lint, tests, types, coverage)
1016
- - **Cost Tracker** β€” API usage cost tracking per agent/project
1017
- - **Context Compressor** β€” briefing compression (ratio 0.1-0.9)
1018
- - **Regression Detector** β€” baseline comparison and regression detection
1019
-
1020
- ---
1021
-
1022
- ## [0.4.2] - 2026-01-28
1023
-
1024
- ### Added
1025
- - **Timeline Visualization** β€” task progress visualization with ASCII milestones
1026
-
1027
- ---
1028
-
1029
- ## [0.4.1] - 2026-01-25
1030
-
1031
- ### Added
1032
- - **Auto-Documentation** β€” automatic documentation generation on task completion
1033
- - **Agent Specialization (ML-based)** β€” expertise tracking per agent
1034
- - **Conflict Prediction (ML-based)** β€” merge conflict prediction using Git history
1035
-
1036
- ---
1037
-
1038
- ## [0.4.0] - 2026-01-20
1039
-
1040
- ### Added
1041
- - **Cloudflare Hub** β€” real-time WebSocket coordination
1042
- - Durable Object for state storage
1043
- - WebSocket broadcast between agents
1044
- - Hybrid mode (WS + Git fallback)
1045
- - **Orchestrator Directory** β€” central management (`/orchestrator/`)
1046
-
1047
- ---
1048
-
1049
- ## [0.3.0] - 2026-01-15
1050
-
1051
- ### Added
1052
- - **Collective Advice** β€” collective brainstorming across all agents
1053
- - **Urgent Preemption** β€” priority file acquisition for critical bugs
1054
- - **Snapshot & Rollback** β€” change rollback capability
1055
- - **Immune System** β€” automatic CI/test failure response
1056
-
1057
- ---
1058
-
1059
- ## [0.2.0] - 2026-01-10
1060
-
1061
- ### Added
1062
- - **Architecture Voting** β€” voting system for dangerous actions
1063
- - **Git Worktrees** β€” isolated workspaces for parallel tasks
1064
- - **GitHub Integration** β€” PR creation, branch sync, auto-cleanup
1065
- - **Cross-Agent Review** β€” code review between agents
1066
-
1067
- ---
1068
-
1069
- ## [0.1.0] - 2026-01-05
1070
-
1071
- ### Added
1072
- - **Agent Registry** β€” agent registration with generated names (RadiantWolf, SilentFox, etc.)
1073
- - **Task Management** β€” full task lifecycle (create, assign, update, complete, cancel)
1074
- - **File Locking** β€” exclusive/shared file locks with conflict prediction
1075
- - **Collaboration** β€” broadcast chat, screenshots, thought logging
1076
- - **Auction System** β€” task bidding for agents
1077
- - **Briefings** β€” mental snapshots for context transfer between agent shifts
1078
- - **Pulse** β€” live agent activity map
1079
- - **Knowledge Base** β€” findings and patterns archive
1080
- - **Ghost Mode** β€” autonomous code patrol and lint fixing
1081
- - **Stop Flag** β€” emergency stop for all agents
1082
-
1083
- ### Infrastructure
1084
- - MCP Server based on @modelcontextprotocol/sdk
1085
- - TypeScript compilation
1086
- - Installer for IDEs (Windsurf, Cursor, Claude Desktop, OpenCode, VS Code)
1087
- - Agent rules (.windsurfrules, .cursorrules, CLAUDE.md, GEMINI.md)
1088
- - Companion daemon for background tasks
1089
-
1090
- ---
1091
-
1092
- ## Semantic Versioning
1093
-
1094
- - **MAJOR (X.0.0)** β€” incompatible API changes
1095
- - **MINOR (0.X.0)** β€” new features, backward compatible
1096
- - **PATCH (0.0.X)** β€” bug fixes, backward compatible
1097
-
1098
- ## Legend
1099
-
1100
- | Type | Description |
1101
- |------|-------------|
1102
- | **Added** | New features |
1103
- | **Changed** | Changes to existing functionality |
1104
- | **Deprecated** | Features to be removed |
1105
- | **Removed** | Removed features |
1106
- | **Fixed** | Bug fixes |
1107
- | **Security** | Vulnerability fixes |
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
+ ## [1.0.7] - 2026-02-09
13
+
14
+ ### πŸŒ‰ Full Bridge Coverage β€” All 26 Smart Tools via Remote
15
+
16
+ #### Fixed
17
+
18
+ - **Critical: Bridge auto-start** β€” `mcp-swarm-remote` now passes `MCP_SERVER_URL` to companion daemon. Previously the companion couldn't know where to connect the bridge, so all remote tool calls returned `{ bridgeConnected: false }`.
19
+ - **Documentation: Full startup flow** β€” README now includes complete configuration examples for both Remote and Local modes with `SWARM_HUB_URL`, and step-by-step explanation of what happens at startup.
20
+
21
+ #### Changed
22
+
23
+ - **Universal bridge delegation** β€” `bridge.ts` now imports `allSmartTools` handlers and delegates ALL tool calls through them instead of manually implementing 3 tools with limited actions.
24
+ - Before: only `swarm_file` (read/write/list), `swarm_git` (status/sync), `swarm_agent` (register/whoami) worked through bridge
25
+ - After: all 26 tools Γ— all actions work through bridge (swarm_task, swarm_plan, swarm_quality, swarm_vector, etc.)
26
+ - **Simplified tool routing** β€” `toolNeedsBridge()` on Cloudflare Worker simplified from 21-line selective logic to `toolName.startsWith("swarm_")` β€” routes ALL swarm tools through bridge.
27
+
28
+ #### Configuration
29
+
30
+ **Option A: Remote (recommended)**
31
+
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "mcp-swarm": {
36
+ "command": "npx",
37
+ "args": [
38
+ "-y", "-p", "mcp-swarm",
39
+ "mcp-swarm-remote",
40
+ "--url", "https://mcp-swarm-server.YOUR-SUBDOMAIN.workers.dev/mcp"
41
+ ],
42
+ "env": {
43
+ "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ **Option B: Local with Hub**
51
+
52
+ ```json
53
+ {
54
+ "mcpServers": {
55
+ "mcp-swarm": {
56
+ "command": "node",
57
+ "args": ["C:/path/to/Swarm_MCP/dist/serverSmart.js"],
58
+ "env": {
59
+ "SWARM_HUB_URL": "wss://mcp-swarm-hub.YOUR-SUBDOMAIN.workers.dev/ws"
60
+ }
61
+ }
62
+ }
63
+ }
64
+ ```
65
+
66
+ #### What Happens at Startup (Remote)
67
+
68
+ ```
69
+ 1. npx downloads mcp-swarm@latest from npm
70
+ 2. mcp-swarm-remote starts β†’ checks if companion is running
71
+ 3. If not β†’ starts companion with:
72
+ β€’ MCP_SERVER_URL (from --url) β†’ Bridge auto-connects to your Worker
73
+ β€’ SWARM_HUB_URL (from env) β†’ WebSocket to Hub for coordination
74
+ 4. Companion starts:
75
+ β€’ Bridge β†’ WebSocket β†’ MCP Server Worker (executes 26 tools locally)
76
+ β€’ Hub β†’ WebSocket β†’ Hub Worker (real-time agent sync)
77
+ 5. All 26 smart tools work! βœ…
78
+ ```
79
+
80
+ ---
81
+
82
+ ## [0.9.19] - 2026-02-08
83
+
84
+ ### πŸš€ Major Release: Smart Routing, Memory, Agent Teams, MCP Bridges
85
+
86
+ #### Added
87
+
88
+ - **Smart Router Proxy** (`smartRouterProxy.ts`) β€” Cost optimization engine inspired by distiq-code
89
+ - Automatic model tier downgrade (Opus β†’ Sonnet when safe)
90
+ - Semantic cache for repeated/similar requests (SHA-256 + similarity)
91
+ - Prompt caching suggestions (cache_control breakpoints for Anthropic API)
92
+ - Request classification: complexity analysis, token estimation, tier recommendation
93
+ - Real-time cost savings tracking and statistics
94
+
95
+ - **Swarm Memory** (`swarmMemory.ts`) β€” Hybrid memory system (claude-mem + claude-cognitive)
96
+ - 3-tier Context Router: hot (current session) / warm (24h) / cold (archive)
97
+ - Pool Coordinator for multi-agent memory synchronization
98
+ - Lifecycle hooks: session_start, prompt_submit, response_ready, session_end
99
+ - 3-layer search: keyword/tag β†’ timeline β†’ full observations
100
+ - Auto-compression for older entries (context window savings)
101
+
102
+ - **MCP Linear Bridge** (`mcpLinearBridge.ts`) β€” Auto-sync swarm tasks ↔ Linear issues
103
+ - Status mapping: open β†’ Todo, in_progress β†’ In Progress, done β†’ Done
104
+ - Task registration and bidirectional sync
105
+ - Passive activation (only when mcp-linear MCP is detected)
106
+
107
+ - **MCP Context7 Bridge** (`mcpContext7Bridge.ts`) β€” Up-to-date documentation integration
108
+ - Auto-detect project tech stack (React, Next.js, Express, Prisma, Supabase, Tailwind...)
109
+ - Documentation cache with configurable TTL (default 24h)
110
+ - Lookup with cache-first strategy
111
+
112
+ - **Claude-Flow Bridge** (`claudeFlowBridge.ts`) β€” Skills routing and RAG pipeline
113
+ - Q-learning based skill routing (epsilon-greedy exploration/exploitation)
114
+ - Skill registry with quality tracking (Q-values, success rates)
115
+ - RAG configuration for vector search β†’ context injection
116
+
117
+ - **Agent Teams** (`agentTeams.ts`) β€” Multi-agent team coordination
118
+ - Team creation with roles: lead, developer, reviewer, tester, specialist
119
+ - Task delegation with dependency tracking
120
+ - Auto-rebalancing: redistribute tasks when agent goes offline
121
+ - Team-level broadcast messaging
122
+ - RAC (Retrieval Augmented Coding) search placeholder
123
+
124
+ - **Skills Discovery** (`skillsDiscovery.ts`) β€” IDE-agnostic skill detection
125
+ - Scans 6+ IDE formats: Gemini, Antigravity, Claude, Cursor, Codex, Windsurf
126
+ - Normalizes skills to unified format
127
+ - Task-based skill recommendation (keyword scoring)
128
+ - Cross-IDE skill import/export
129
+
130
+ ## [0.9.18] - 2026-02-08
131
+
132
+ ### 🧠 Π˜Π½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΡ Π½ΠΎΠ²Ρ‹Ρ… AI-ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ
133
+
134
+ #### Π”ΠΎΠ±Π°Π²Π»Π΅Π½ΠΎ
135
+
136
+ - **Claude Opus 4.6** β€” Π½ΠΎΠ²Ρ‹ΠΉ Ρ„Π»Π°Π³ΠΌΠ°Π½ Anthropic Π² MoE Router
137
+ - 1M Ρ‚ΠΎΠΊΠ΅Π½ΠΎΠ² контСкст (ΠΏΠ΅Ρ€Π²Ρ‹ΠΉ Opus с ΠΌΠΈΠ»Π»ΠΈΠΎΠ½Π½Ρ‹ΠΌ контСкстом)
138
+ - Adaptive thinking β€” модСль сама Ρ€Π΅ΡˆΠ°Π΅Ρ‚ ΠΊΠΎΠ³Π΄Π° ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ extended thinking
139
+ - Context compaction β€” автоматичСскоС сТатиС ΠΏΡ€ΠΈ ΠΏΡ€ΠΈΠ±Π»ΠΈΠΆΠ΅Π½ΠΈΠΈ ΠΊ Π»ΠΈΠΌΠΈΡ‚Ρƒ
140
+ - 128K output tokens β€” большиС ΠΎΡ‚Π²Π΅Ρ‚Ρ‹ Π±Π΅Π· разбиСния
141
+ - Agent Teams β€” координация Π½Π΅ΡΠΊΠΎΠ»ΡŒΠΊΠΈΡ… Π°Π³Π΅Π½Ρ‚ΠΎΠ² Ρ‡Π΅Ρ€Π΅Π· tmux
142
+ - $5/$25 per MTok (≀200K), $10/$37.50 (>200K)
143
+
144
+ - **GPT-5.3 Codex** β€” Π½ΠΎΠ²Ρ‹ΠΉ Ρ„Π»Π°Π³ΠΌΠ°Π½ OpenAI для Π°Π³Π΅Π½Ρ‚Π½ΠΎΠ³ΠΎ ΠΊΠΎΠ΄ΠΈΠ½Π³Π°
145
+ - 256K контСкст
146
+ - ΠžΠΏΡ‚ΠΈΠΌΠΈΠ·ΠΈΡ€ΠΎΠ²Π°Π½ для code_generation, debugging, reasoning
147
+ - ~$2/$15 per MTok (estimated)
148
+
149
+ - **Kimi K2.5** β€” premium модСль Moonshot AI
150
+ - 128K контСкст, фокус Π½Π° code_generation, code_review, debugging
151
+ - ~$1/$5 per MTok (estimated)
152
+
153
+ #### ИзмСнСно
154
+
155
+ - `ModelProvider` Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ Π½Π° `"moonshot"` (Kimi/Moonshot AI)
156
+ - Claude Opus 4.5 ΠΏΠΎΠ½ΠΈΠΆΠ΅Π½ с `flagship` β†’ `premium` (Π·Π°ΠΌΠ΅Π½Ρ‘Π½ Opus 4.6)
157
+ - MoE Router: **19 ΠΌΠΎΠ΄Π΅Π»Π΅ΠΉ** (Π±Ρ‹Π»ΠΎ 16) β€” 4 Anthropic, 9 OpenAI, 5 Google, 1 Moonshot
158
+
159
+ ---
160
+
161
+ ## [0.9.17] - 2026-02-08
162
+
163
+ ### πŸ—οΈ Smart Tools Modularization
164
+
165
+ #### Changed
166
+
167
+ - **`src/smartTools.ts`** β€” split into **9 modules** in `src/smartTools/`:
168
+ - `core.ts` β€” swarm_agent, swarm_control, swarm_pulse, swarm_companion
169
+ - `tasks.ts` β€” swarm_task, swarm_plan, swarm_briefing, swarm_spec
170
+ - `files.ts` β€” swarm_file, swarm_worktree, swarm_snapshot
171
+ - `git.ts` β€” swarm_git, swarm_hooks, swarm_dependency
172
+ - `collaboration.ts` β€” swarm_chat, swarm_message, swarm_review, swarm_voting, swarm_auction, swarm_brainstorm
173
+ - `security.ts` β€” swarm_defence, swarm_consensus, swarm_mcp
174
+ - `analytics.ts` β€” swarm_cost, swarm_quality, swarm_regression, swarm_session
175
+ - `intelligence.ts` β€” swarm_sona, swarm_moe, swarm_vector, swarm_booster, swarm_context_pool, swarm_context
176
+ - `infra.ts` β€” swarm_health, swarm_immune, swarm_external, swarm_platform, swarm_knowledge, etc.
177
+ - **`src/smartTools/index.ts`** β€” centralized re-export of all modules
178
+ - **`src/serverSmart.ts`** β€” updated to import from `smartTools/index.js`
179
+
180
+ ### πŸ”’ Cloudflare Workers with Authentication
181
+
182
+ #### Added
183
+
184
+ - **`cloudflare/abdr-hub/`** β€” new Cloudflare Worker `abdr-swarm-hub`
185
+ - Bearer Token + Query parameter authentication
186
+ - WebSocket bridge for agents
187
+ - REST API for swarm management
188
+ - **`cloudflare/abdr-server/`** β€” new Cloudflare Worker `abdr-swarm-server`
189
+ - Streamable HTTP Transport (MCP spec 2025-03-26)
190
+ - All 54 Smart Tools
191
+ - Automatic Bearer Token forwarding to Hub
192
+ - **`cloudflare/telegram-bot/`** β†’ renamed to `abdr-swarm-telegram`
193
+ - `SWARM_AUTH_TOKEN` protection for `/register` endpoint
194
+ - Bearer Token for Hub API calls
195
+
196
+ ### πŸ”„ CI/CD Pipeline
197
+
198
+ #### Changed
199
+
200
+ - **`.github/workflows/ci.yml`** β€” improvements:
201
+ - Triggers for `main` and `develop` branches
202
+ - TypeScript check (`tsc --noEmit`) before build
203
+ - Node.js matrix: 18, 20, 22
204
+ - Automatic npm publish on push to `main`
205
+
206
+ ### πŸ—‘οΈ Legacy Code Removed
207
+
208
+ #### Removed
209
+
210
+ - **`src/tools.ts`** β€” old 41 tools (replaced by `smartTools/`)
211
+ - **`src/server.ts`** β€” old server (replaced by `serverSmart.ts`)
212
+
213
+ ### πŸ“Š Dashboard
214
+
215
+ #### Changed
216
+
217
+ - Updated version in footer: v0.9.12 β†’ v0.9.17
218
+
219
+ ### πŸ“¦ Updates
220
+
221
+ - `package.json` β†’ version `0.9.17`
222
+
223
+ ### πŸ”„ How to Update
224
+
225
+ ```bash
226
+ npm install -g mcp-swarm@latest
227
+ # or
228
+ npm update mcp-swarm
229
+ ```
230
+
231
+ ---
232
+
233
+ ## [0.9.16] - 2026-02-08
234
+
235
+ ### πŸ› Critical Fix: Zod Compatibility
236
+
237
+ **BREAKING FIX:** Fixed `keyValidator._parse is not a function` error that made all 54 Smart Tools completely non-functional in Antigravity and similar clients.
238
+
239
+ #### Root Cause
240
+ - `zod@^3.23.8` in `package.json` auto-installed `3.25.76` β€” essentially a Zod v4 bridge version
241
+ - Zod v4 removed the internal `_parse()` method used by clients for JSON Schema validation
242
+ - Result: **no Smart Tool worked** due to input schema parsing errors
243
+
244
+ #### Fix
245
+ - `zod` pinned to exact version `3.23.8` (pure Zod v3, no v4 bridge)
246
+ - Prevents automatic upgrades to incompatible versions
247
+
248
+ > πŸ™ We apologize for the inconvenience. This bug affected all users who updated via npm.
249
+
250
+ ### πŸ”’ Security: Cloudflare Workers
251
+
252
+ - Removed deployed workers `mcp-swarm-hub` and `mcp-swarm-server` (URLs were exposed in commits)
253
+ - Worker sources **preserved** in `cloudflare/` β€” will be redeployed with new names
254
+
255
+ ### πŸ“¦ Updates
256
+
257
+ - `serverSmart.ts` β€” dynamic version from `package.json` instead of hardcode
258
+ - `server.ts` β€” marked as deprecated (`@ts-nocheck`), use `serverSmart.ts`
259
+ - `.gitignore` β€” added patterns for test files
260
+
261
+ ### πŸ”„ How to Update
262
+
263
+ ```bash
264
+ npm install -g mcp-swarm@latest
265
+ # or
266
+ npm update mcp-swarm
267
+ ```
268
+
269
+ ---
270
+
271
+ ## [0.9.15] - 2026-02-08
272
+
273
+ ### πŸ“– Bilingual Documentation
274
+
275
+ #### Changed
276
+
277
+ - **`README.md`** β€” fully translated to **English** (~1100 lines)
278
+ - Professional translation of all sections: tools, installation, configuration, architecture
279
+ - Added link to Russian version: `πŸ‡·πŸ‡Ί Π§ΠΈΡ‚Π°Ρ‚ΡŒ Π½Π° русском`
280
+ - **`package.json`** β€” description updated to English
281
+ - **Version updated in heading** β€” v0.9.15
282
+
283
+ #### Added
284
+
285
+ - **`README.ru.md`** β€” Russian version of README created
286
+ - Full original README content in Russian
287
+ - Link to English version: `πŸ‡¬πŸ‡§ Read in English`
288
+
289
+ ---
290
+
291
+ ## [0.9.14] - 2026-02-08
292
+
293
+ ### πŸ› npx Command Fix
294
+
295
+ #### Fixed
296
+
297
+ - **`README.md`** β€” fixed `npx mcp-swarm-remote` commands:
298
+ - Before: `npx mcp-swarm-remote --url ...` (E404 error, package not found)
299
+ - After: `npx -y -p mcp-swarm mcp-swarm-remote --url ...`
300
+ - **`REMOTE.md`** β€” same fix applied to all IDE configuration examples
301
+ - **Version updated** β€” v0.9.14
302
+
303
+ #### Root Cause
304
+
305
+ - `npx mcp-swarm-remote` tried to find a **separate** package `mcp-swarm-remote` on npm
306
+ - `mcp-swarm-remote` is a binary within the `mcp-swarm` package, so the `-p mcp-swarm` flag is required
307
+
308
+ ---
309
+
310
+ ## [0.9.13] - 2026-02-05
311
+
312
+ ### Self-Hosted Infrastructure
313
+
314
+ **BREAKING CHANGE:** Removed hardcoded public server URLs. Users must now deploy their own Cloudflare Workers.
315
+
316
+ #### Changed
317
+
318
+ - **README.md** β€” Complete rewrite of installation section
319
+ - Added Cloudflare Free Tier explanation and limits
320
+ - Step-by-step deployment guide for Hub, MCP Server, Telegram Bot
321
+ - Explained what YOUR-SUBDOMAIN means
322
+
323
+ - **wrangler.toml files** β€” All 3 Workers now have placeholders
324
+ - `cloudflare/hub/wrangler.toml` β€” Added deployment instructions
325
+ - `cloudflare/mcp-server/wrangler.toml` β€” HUB_URL placeholder
326
+ - `cloudflare/telegram-bot/wrangler.toml` β€” SWARM_HUB_URL placeholder
327
+
328
+ - **install.ps1 / install.sh** β€” Now ask for user's server URLs
329
+ - No more hardcoded URLs
330
+ - Instructions for deploying first
331
+
332
+ - **mcp-swarm-remote** β€” `--url` is now **required**
333
+ - Shows helpful error message with deployment link
334
+ - Added `--help` option
335
+
336
+ - **Dashboard** β€” `.env.example` uses placeholder
337
+ - `useWebSocket.ts` warns if HUB_URL not configured
338
+
339
+ - **Agent rules** (AGENTS.md, CLAUDE.md, GEMINI.md, AGENT.md)
340
+ - Updated with YOUR-SUBDOMAIN placeholders
341
+
342
+ #### Why This Change?
343
+
344
+ - **Privacy**: Your data stays on your infrastructure
345
+ - **No shared limits**: Full Cloudflare Free Tier for yourself
346
+ - **Customization**: Modify Workers as needed
347
+ - **Transparency**: No hidden public server
348
+
349
+ ---
350
+
351
+ ## [0.9.12] - 2026-02-05
352
+
353
+ ### Dashboard Real-time Updates
354
+
355
+ #### Added
356
+
357
+ - **WebSocket Hook** (`dashboard/src/hooks/useWebSocket.ts`)
358
+ - Real-time connection to Swarm Hub
359
+ - Auto-reconnect with exponential backoff
360
+ - Keep-alive ping every 25 seconds
361
+ - Event filtering for specific event types
362
+
363
+ - **New Core Widgets** (`dashboard/src/components/widgets/CoreWidgets.tsx`)
364
+ - **ConnectionStatusWidget** β€” Shows Hub connection status with reconnect button
365
+ - **ActivityTimelineWidget** β€” Real-time event stream from Hub
366
+ - **FileLocksWidget** β€” Active file reservations with live updates
367
+ - **CostTrackingWidget** β€” API usage and budget progress bars
368
+ - **VotingWidget** β€” Distributed consensus proposals and votes
369
+
370
+ - **Live Indicators**
371
+ - Green pulsing dot for connected/active status
372
+ - LIVE/OFFLINE badges for real-time widgets
373
+ - Last update timestamps with relative time format
374
+
375
+ ### Telegram Bot Enhancements
376
+
377
+ #### Added
378
+
379
+ - **New Commands**
380
+ - `/reviews` β€” List pending code reviews with inline approve/reject buttons
381
+ - `/approve [id]` β€” Approve a review directly from Telegram
382
+ - `/reject [id] [reason]` β€” Reject a review with optional reason
383
+
384
+ - **Enhanced Inline Keyboards**
385
+ - Reviews list shows approve/reject buttons for each pending review
386
+ - Help menu now includes Reviews button
387
+
388
+ ### Auto-start Companion
389
+
390
+ #### Added
391
+
392
+ - **Companion Auto-start** in `mcp-swarm-remote`
393
+ - Checks if companion daemon is running on port 37373
394
+ - Automatically spawns companion in background if not running
395
+ - Can be disabled with `--no-companion` flag
396
+
397
+ #### Changed
398
+
399
+ - Dashboard now uses WebSocket for real-time updates instead of polling-only
400
+ - Added "Real-time Monitoring" section with new widgets
401
+ - Updated version to 0.9.12 in footer
402
+
403
+ ---
404
+
405
+ ## [0.9.11] - 2026-02-04
406
+
407
+ ### One-Click Installer & Streamable HTTP
408
+
409
+ #### Added
410
+
411
+ - **One-Click Install Scripts**
412
+ - `install.ps1` β€” PowerShell installer for Windows
413
+ - `install.sh` β€” Bash installer for macOS/Linux
414
+ - `npx mcp-swarm-install` β€” Interactive Node.js installer
415
+
416
+ - **Streamable HTTP Transport** (MCP spec 2025-03-26)
417
+ - Single `POST /mcp` endpoint instead of SSE
418
+ - Session management via `Mcp-Session-Id` header
419
+ - Works on Cloudflare Workers without SSE issues
420
+
421
+ - **mcp-swarm-remote Proxy** (`src/remote/index.ts`)
422
+ - stdio β†’ Streamable HTTP proxy for IDE integration
423
+ - Windows stdin compatibility fix
424
+
425
+ #### Changed
426
+
427
+ - Installer now **merges** configs instead of overwriting
428
+ - Auto-detects IDE installations (Claude Desktop, Cursor, Windsurf, OpenCode, VS Code)
429
+
430
+ ---
431
+
432
+ ## [0.9.10] - 2026-02-03
433
+
434
+ ### 🧠 MoE Router β€” Mixture of Experts Model Selection
435
+
436
+ #### Added
437
+
438
+ - **MoE Router Module** (`src/workflows/moeRouter.ts`)
439
+ - Intelligent model routing based on task characteristics
440
+ - Gating network for expert selection
441
+ - Cost-performance optimization
442
+ - Learning from feedback
443
+
444
+ - **Expert Classification**
445
+ - 14 task categories: code_generation, code_review, debugging, reasoning, math, creative, etc.
446
+ - 4 model tiers: economy, standard, premium, flagship
447
+ - 6 providers: anthropic, openai, google, mistral, local, custom
448
+
449
+ - **Built-in Experts (19 models, verified pricing February 2026)**
450
+ - **Anthropic Claude Series:**
451
+ - Claude Opus 4.6 (flagship, 1M, $5/$25 MTok) ← NEW
452
+ - Claude Opus 4.5 (flagship, 200K, $5/$25 MTok)
453
+ - Claude Sonnet 4.5 (premium, 200K, $3/$15 MTok)
454
+ - Claude Haiku 4.5 (economy, 200K, $1/$5 MTok)
455
+ - **OpenAI GPT-5.x Series:**
456
+ - GPT-5.3 Codex (flagship, 256K, ~$2/~$15 MTok) ← NEW
457
+ - GPT-5.2 (flagship, 256K, $1.75/$14 MTok)
458
+ - GPT-5.2 Pro (flagship, 256K, $21/$168 MTok)
459
+ - GPT-5 Mini (standard, 128K, $0.25/$2 MTok)
460
+ - GPT-4.1 (premium, 128K, $3/$12 MTok)
461
+ - GPT-4.1 Mini (standard, 128K, $0.80/$3.20 MTok)
462
+ - GPT-4.1 Nano (economy, 128K, $0.20/$0.80 MTok)
463
+ - **OpenAI Reasoning Models:**
464
+ - o4-mini (reasoning, 128K, $4/$16 MTok)
465
+ - **Moonshot AI:**
466
+ - Kimi K2.5 (premium, 128K, ~$1/~$5 MTok) ← NEW
467
+ - **Google Gemini 3.x Series:**
468
+ - Gemini 3 Pro (flagship, 1M, $2/$12 MTok)
469
+ - Gemini 3 Flash (standard, 1M, $0.50/$3 MTok)
470
+ - **Google Gemini 2.5 Series:**
471
+ - Gemini 2.5 Pro (premium, 1M, $1.25/$10 MTok)
472
+ - Gemini 2.5 Flash (standard, 1M, $0.30/$2.50 MTok)
473
+ - Gemini 2.5 Flash Lite (economy, 1M, $0.10/$0.40 MTok)
474
+
475
+ - **Routing Factors**
476
+ - Task match score (category-specific strength)
477
+ - Cost efficiency
478
+ - Performance history (success rate)
479
+ - Load balancing (prefer less recently used)
480
+ - Latency constraints
481
+ - Context window requirements
482
+
483
+ - **Learning System**
484
+ - Feedback recording
485
+ - Exponential moving average for success rate
486
+ - Automatic latency calibration
487
+ - Per-expert statistics
488
+
489
+ - **Smart Tool #54: `swarm_moe`**
490
+ - `route`: Route task to best expert
491
+ - `feedback`: Record routing feedback
492
+ - `experts`: List available experts
493
+ - `add_expert` / `remove_expert`: Manage experts
494
+ - `config` / `set_config`: Configuration
495
+ - `stats`: Routing statistics
496
+ - `history`: Routing history
497
+ - `classify`: Classify task category
498
+ - `reset`: Reset statistics
499
+
500
+ - **Dashboard API Endpoint** (`/api/moe`)
501
+ - Routing statistics
502
+ - Expert list and usage
503
+ - Configuration status
504
+
505
+ ---
506
+
507
+ ## [0.9.9] - 2026-02-03
508
+
509
+ ### 🀝 Consensus β€” Distributed Agreement Protocols
510
+
511
+ #### Added
512
+
513
+ - **Consensus Module** (`src/workflows/consensus.ts`)
514
+ - Raft-like leader election with term-based leadership
515
+ - Log replication for ordered command execution
516
+ - Byzantine Fault Tolerance (BFT) mode for untrusted environments
517
+ - Proposal system with configurable voting thresholds
518
+ - Automatic failover when leader becomes unresponsive
519
+
520
+ - **Consensus Modes**
521
+ - `simple_majority`: 50%+ votes for approval
522
+ - `raft`: Term-based leadership, log replication
523
+ - `bft`: Byzantine fault tolerant (2/3+1 quorum)
524
+
525
+ - **Node Management**
526
+ - Join/leave cluster
527
+ - Heartbeat monitoring
528
+ - Trusted/untrusted node classification
529
+ - Automatic dead node detection
530
+
531
+ - **Proposal System**
532
+ - Types: config_change, task_assignment, architecture, rollback, emergency, custom
533
+ - Vote types: approve, reject, abstain
534
+ - Configurable majority thresholds (0.5 to 1.0)
535
+ - Expiration timeout handling
536
+ - Signature verification for BFT mode
537
+
538
+ - **Log Replication**
539
+ - Ordered command log
540
+ - Commit confirmation from leader
541
+ - State machine replication across nodes
542
+
543
+ - **Smart Tool #53: `swarm_consensus`**
544
+ - `join`: Join consensus cluster
545
+ - `leave`: Leave cluster
546
+ - `heartbeat`: Send heartbeat
547
+ - `status`: Get cluster status
548
+ - `elect`: Start leader election
549
+ - `leader`: Get current leader
550
+ - `propose`: Create proposal
551
+ - `vote`: Vote on proposal
552
+ - `proposals`: List proposals
553
+ - `get_proposal`: Get proposal details
554
+ - `execute`: Execute approved proposal
555
+ - `log` / `append` / `commit`: Log management
556
+ - `config` / `set_config`: Configuration
557
+ - `stats`: Statistics
558
+
559
+ - **Dashboard API Endpoint** (`/api/consensus`)
560
+ - Cluster status and node list
561
+ - Leader information
562
+ - Proposal statistics
563
+ - Recent proposals
564
+
565
+ ---
566
+
567
+ ## [0.9.8] - 2026-02-03
568
+
569
+ ### πŸ›‘οΈ AIDefence β€” Security & Threat Detection
570
+
571
+ #### Added
572
+
573
+ - **AIDefence Module** (`src/workflows/aiDefence.ts`)
574
+ - <10ms threat detection latency
575
+ - Pattern-based detection with regex + heuristics
576
+ - Behavioral anomaly detection
577
+ - Quarantine system for suspicious content
578
+ - Audit logging for security events
579
+ - Configurable sensitivity levels
580
+
581
+ - **Threat Categories**
582
+ - `prompt_injection`: Instruction override, role hijacking, delimiter attacks
583
+ - `jailbreak`: DAN mode, hypothetical bypasses, character hijacking
584
+ - `code_injection`: Shell commands, eval, SQL injection, path traversal
585
+ - `data_exfiltration`: API keys, credentials, external uploads
586
+ - `sensitive_data`: PII, private keys, passwords
587
+ - `unsafe_command`: rm -rf, sudo, crypto mining
588
+ - `social_engineering`: Authority claims, urgency manipulation
589
+ - `impersonation`: Agent identity spoofing
590
+ - `dos_attack`: Request flooding
591
+ - `unauthorized_tool`: Restricted tool access
592
+
593
+ - **Sensitivity Levels**
594
+ - `low`: Only critical threats
595
+ - `medium`: Balanced (default)
596
+ - `high`: Strict checking
597
+ - `paranoid`: Maximum security
598
+
599
+ - **Smart Tool #52: `swarm_defence`**
600
+ - `scan`: Scan text for threats
601
+ - `validate_agent`: Validate agent identity
602
+ - `validate_tool`: Validate tool usage
603
+ - `events`: Get security events log
604
+ - `quarantine`: Get quarantined items
605
+ - `release`: Release from quarantine
606
+ - `stats`: Get defence statistics
607
+ - `config` / `set_config`: Configuration
608
+ - `trust` / `untrust`: Agent whitelist management
609
+ - `clear_events`: Clear event log
610
+
611
+ - **Dashboard API Endpoint** (`/api/defence`)
612
+ - Security statistics
613
+ - Threat distribution by category/severity
614
+ - Quarantine status
615
+ - Recent events log
616
+
617
+ ---
618
+
619
+ ## [0.9.7] - 2026-02-03
620
+
621
+ ### πŸ” HNSW β€” Hierarchical Navigable Small World
622
+
623
+ #### Added
624
+
625
+ - **HNSW Module** (`src/workflows/hnsw.ts`)
626
+ - Fast approximate nearest neighbor search
627
+ - 150x-12,500x faster than brute force
628
+ - Pure TypeScript implementation (no dependencies)
629
+ - Based on Malkov & Yashunin (2016) algorithm
630
+
631
+ - **Vector Operations**
632
+ - Cosine similarity (default)
633
+ - Euclidean distance
634
+ - Dot product
635
+ - Configurable dimensions (384, 768, 1536)
636
+
637
+ - **Simple Embeddings**
638
+ - Built-in bag-of-words embedder for demos
639
+ - Works without external API
640
+ - Can use custom vectors from OpenAI/Cohere/etc.
641
+
642
+ - **Smart Tool #51: `swarm_vector`**
643
+ - `init`: Initialize vector index
644
+ - `add`: Add document with text or vector
645
+ - `add_batch`: Add multiple documents
646
+ - `search`: Find similar documents
647
+ - `get`: Get document by ID
648
+ - `delete`: Remove document
649
+ - `list`: List all documents
650
+ - `stats`: Index statistics
651
+ - `config` / `set_config`: Configuration
652
+ - `clear`: Clear entire index
653
+ - `duplicates`: Find duplicate documents
654
+ - `embed`: Get embedding for text
655
+
656
+ - **Dashboard API Endpoint** (`/api/vector`)
657
+ - Index statistics
658
+ - Configuration status
659
+ - Memory usage tracking
660
+
661
+ #### Performance
662
+
663
+ | Documents | Brute Force | HNSW | Speedup |
664
+ |-----------|-------------|------|---------|
665
+ | 1,000 | 10ms | 0.5ms | 20x |
666
+ | 10,000 | 100ms | 0.8ms | 125x |
667
+ | 100,000 | 1,000ms | 1.2ms | 833x |
668
+ | 1,000,000 | 10,000ms | 2ms | 5,000x |
669
+
670
+ ---
671
+
672
+ ## [0.9.6] - 2026-02-03
673
+
674
+ ### ⚑ Agent Booster β€” Fast Local Execution
675
+
676
+ #### Added
677
+
678
+ - **Agent Booster Module** (`src/workflows/agentBooster.ts`)
679
+ - Executes trivial tasks locally without LLM API calls
680
+ - 352x faster than LLM (local execution)
681
+ - $0 cost (no API calls needed)
682
+ - Works offline
683
+ - Deterministic results
684
+
685
+ - **Supported Task Types** (14 types)
686
+ - `rename_variable` β€” Rename variables/functions across file
687
+ - `fix_typo` β€” Fix typos in strings and comments only
688
+ - `find_replace` β€” Simple find and replace
689
+ - `add_console_log` β€” Add debug logging at specific line
690
+ - `remove_console_log` β€” Remove all console.log statements
691
+ - `toggle_flag` β€” Toggle boolean flags (true ↔ false)
692
+ - `update_version` β€” Update version numbers
693
+ - `update_import` β€” Update import paths
694
+ - `add_comment` β€” Add comment at specific line
695
+ - `remove_comment` β€” Remove single-line comments
696
+ - `format_json` β€” Format JSON files
697
+ - `sort_imports` β€” Sort imports alphabetically
698
+ - `add_export` β€” Add export to function/class
699
+ - `extract_constant` β€” Extract magic number to constant
700
+
701
+ - **Smart Detection**
702
+ - `can_boost` action analyzes task description
703
+ - Auto-detects boostable tasks with confidence score
704
+ - Extracts parameters from natural language
705
+
706
+ - **Smart Tool #50: `swarm_booster`**
707
+ - `execute`: Run a booster task
708
+ - `can_boost`: Check if task can be boosted
709
+ - `stats`: Get booster statistics
710
+ - `history`: Get execution history
711
+ - `config`: Get configuration
712
+ - `set_config`: Update configuration
713
+ - `types`: List supported task types
714
+
715
+ - **Dashboard API Endpoint** (`/api/booster`)
716
+ - Booster statistics and type distribution
717
+ - Recent execution history
718
+ - Configuration status
719
+ - Cost savings tracking
720
+
721
+ #### Performance
722
+
723
+ | Metric | LLM | Agent Booster | Improvement |
724
+ |--------|-----|---------------|-------------|
725
+ | Speed | ~3000ms | ~8ms | 352x faster |
726
+ | Cost | $0.01/task | $0 | 100% savings |
727
+ | Offline | ❌ | βœ… | Works anywhere |
728
+ | Deterministic | ⚠️ | βœ… | Same input = same output |
729
+
730
+ ---
731
+
732
+ ## [0.9.5] - 2026-02-03
733
+
734
+ ### 🧠 SONA β€” Self-Optimizing Neural Architecture
735
+
736
+ #### Added
737
+
738
+ - **SONA Module** (`src/workflows/sona.ts`)
739
+ - Self-learning task routing system inspired by Claude-Flow
740
+ - Records which agents perform best for each task type
741
+ - Routes new tasks to best-performing agents
742
+ - Learns from outcomes with <0.05ms adaptation
743
+ - Improves over time with reinforcement learning
744
+
745
+ - **Task Classification**
746
+ - Automatic category detection: frontend_ui, backend_api, database, testing, devops, documentation, refactoring, bugfix, feature, security, performance, infrastructure
747
+ - Complexity estimation: trivial, simple, medium, complex, epic
748
+ - Keyword-based pattern matching
749
+ - Affected path analysis
750
+
751
+ - **Agent Performance Tracking**
752
+ - Success rate tracking per category
753
+ - Quality score averaging
754
+ - Completion time tracking
755
+ - Statistical confidence calculation
756
+ - Specialization detection (top 3 categories per agent)
757
+
758
+ - **Online Learning**
759
+ - Exponential moving average for rolling metrics
760
+ - Configurable learning rate and decay
761
+ - Elastic Weight Consolidation (EWC++) to prevent forgetting
762
+ - Exploration/exploitation balance (10% exploration by default)
763
+
764
+ - **Smart Tool #49: `swarm_sona`**
765
+ - `route`: Get routing recommendation for a task
766
+ - `learn`: Record task outcome and update model
767
+ - `classify`: Classify a task (category, complexity)
768
+ - `profile`: Get agent's performance profile
769
+ - `profiles`: Get all agent profiles
770
+ - `specialists`: Get top agents for a category
771
+ - `history`: Get learning history
772
+ - `stats`: Get SONA statistics
773
+ - `config`: Get configuration
774
+ - `set_config`: Update configuration
775
+ - `reset`: Reset the model
776
+
777
+ - **Dashboard API Endpoint** (`/api/sona`)
778
+ - SONA statistics and agent profiles
779
+ - Category distribution
780
+ - Recent learning events
781
+ - Top performing agents
782
+
783
+ ---
784
+
785
+ ## [0.9.4] - 2026-02-03
786
+
787
+ ### πŸ“± Telegram Bot Integration
788
+
789
+ #### Added
790
+
791
+ - **Telegram Bot** (`src/integrations/telegram.ts`)
792
+ - Full-featured Telegram bot for notifications and control
793
+ - Event notifications: task created/completed/failed, agent joined/died, CI errors
794
+ - Commands: `/status`, `/agents`, `/tasks`, `/create_task`, `/stop`, `/resume`, `/config`
795
+ - Interactive inline buttons for quick actions
796
+ - Priority setting via buttons (Critical, High, Medium)
797
+ - Approve/Reject/Comment on reviews via Telegram
798
+ - Vote on architecture decisions via Telegram
799
+
800
+ - **Smart Tool #47: `swarm_telegram`**
801
+ - Actions: `setup`, `config`, `enable`, `disable`, `send`
802
+ - Notifications: `notify_task_created`, `notify_task_completed`, `notify_task_failed`, `notify_agent_joined`, `notify_agent_died`
803
+ - Bot control: `start_polling`, `stop_polling`, `command`
804
+
805
+ - **Dashboard API Endpoint** (`/api/telegram`)
806
+ - Telegram configuration status
807
+ - Setup instructions if not configured
808
+
809
+ - **Cloudflare Worker for Telegram** (`cloudflare/telegram-bot/`)
810
+ - Webhook-based (no polling required)
811
+ - Deploy to Cloudflare Workers
812
+ - `/setup` endpoint for webhook registration
813
+
814
+ - **Smart Tool #48: `swarm_batch`**
815
+ - Request batching for 50% cost savings
816
+ - Supports Anthropic Message Batches API
817
+ - Supports OpenAI Batch API
818
+ - Actions: `queue`, `config`, `set_config`, `job`, `jobs`, `result`, `stats`, `flush`
819
+
820
+ - **Batching Module** (`src/workflows/batching.ts`)
821
+ - Automatic request grouping
822
+ - Configurable batch size and wait time
823
+ - Async batch processing with result polling
824
+ - Cost savings estimation
825
+
826
+ ---
827
+
828
+ ## [0.9.3] - 2026-02-03
829
+
830
+ ### 🧠 Smart Features & Cost Optimization
831
+
832
+ #### Added
833
+
834
+ - **Smart Task Routing** (`src/workflows/smartRouting.ts`)
835
+ - Automatic task assignment based on file expertise
836
+ - Tracks which agent edited which files
837
+ - Calculates expertise scores (exact match 10x, folder 3x, extension 2x)
838
+
839
+ - **Shared Context Pool** (`src/workflows/contextPool.ts`)
840
+ - Agents share notes about code to avoid re-reading
841
+ - Auto-staleness detection (if file hash changed)
842
+ - Tags, categories, and helpful counter
843
+
844
+ - **Auto Code Review** (`src/workflows/autoReview.ts`)
845
+ - Automatic review assignment when task completes
846
+ - Finds reviewer who knows the affected files
847
+ - Comment severity levels (critical, major, minor, suggestion)
848
+
849
+ - **GitHub/Linear Sync** (`src/workflows/externalSync.ts`)
850
+ - Two-way sync with GitHub Issues
851
+ - Linear.app integration (GraphQL API)
852
+ - Auto-import issues as swarm tasks
853
+ - Auto-close issues when task is done
854
+
855
+ - **Cost Optimization** (`src/workflows/costOptimization.ts`)
856
+ - Task complexity analysis (simple/medium/complex)
857
+ - Smart model routing (cheap/standard/premium tiers)
858
+ - Budget management with daily/weekly/monthly limits
859
+ - Alert thresholds (50%, 80%, 95%)
860
+
861
+ - **Background Heartbeat Worker** (`src/workers/`)
862
+ - Uses Node.js `worker_threads` for continuous heartbeat
863
+ - Works even when agent is "thinking"
864
+
865
+ - **Web Dashboard** (`dashboard/`)
866
+ - Real-time agent status monitoring
867
+ - Orchestrator status banner with glow effects
868
+ - Stats cards (agents, tasks, messages, uptime)
869
+ - Task list with priority indicators
870
+ - Built with Next.js + ShadCN UI
871
+
872
+ - **Dashboard API** (`src/dashboardApi.ts`)
873
+ - HTTP API server on port 3334
874
+ - New v0.9.3 endpoints: `/api/expertise`, `/api/context`, `/api/reviews`, `/api/budget`, `/api/sync`
875
+
876
+ #### Smart Tools (42-46)
877
+
878
+ | # | Tool | Actions | Description |
879
+ |---|------|---------|-------------|
880
+ | 42 | `swarm_routing` | record, find_agent, expertise, predict, auto_assign | Smart task routing based on file expertise |
881
+ | 43 | `swarm_context_pool` | add, get, search_tag, search, helpful, update, cleanup, stats | Shared context notes between agents |
882
+ | 44 | `swarm_autoreview` | create, assign, comment, complete, resolve, for_reviewer, for_author, pending, stats | Automatic code review assignment |
883
+ | 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 |
884
+ | 46 | `swarm_budget` | analyze, models, select, recommend, route, log_usage, usage, stats, config, set_config, check, remaining, report | Cost optimization and model routing |
885
+
886
+ ---
887
+
888
+ ## [0.9.1] - 2026-02-02
889
+
890
+ ### πŸ“š Documentation & UX Improvements
891
+
892
+ #### Added
893
+ - **Linux Installation Instructions** β€” full instructions for Linux
894
+ - **IDE-Specific Configs** β€” separate configurations for:
895
+ - Claude Desktop (Windows/macOS/Linux)
896
+ - Cursor, Windsurf, OpenCode CLI, VS Code + Copilot/Continue
897
+ - **Troubleshooting Section** β€” solutions for common issues:
898
+ - "Cannot find module" errors
899
+ - Agent not becoming orchestrator
900
+ - "repoPath is required" error
901
+ - Cloudflare Hub unavailable
902
+ - Files locked by another agent
903
+ - **Architecture Diagram** β€” ASCII diagram of Cloudflare Hub + Local Agents
904
+ - **Contributing Guidelines** β€” rules for PRs
905
+
906
+ #### Changed
907
+ - README.md completely reworked with collapsible sections (`<details>`)
908
+
909
+ ---
910
+
911
+ ## [0.9.0] - 2026-02-02
912
+
913
+ ### πŸš€ MAJOR: Smart Tools Consolidation
914
+
915
+ **Reduces 168+ individual tools β†’ 41 Smart Tools with `action` parameter**
916
+
917
+ #### Added
918
+
919
+ - **Smart Tools System** β€” 41 unified tools replacing 168+ individual tools
920
+ - Each Smart Tool groups 3-15 related functions via `action` parameter
921
+ - Better discoverability and easier to remember
922
+ - Consistent parameter patterns across all tools
923
+
924
+ #### Smart Tools List (41 tools)
925
+
926
+ | # | Tool Name | Actions | Description |
927
+ |---|-----------|---------|-------------|
928
+ | 1 | `swarm_agent` | register, whoami | Agent identity |
929
+ | 2 | `swarm_task` | create, list, update, decompose, get_decomposition | Task management |
930
+ | 3 | `swarm_file` | reserve, release, list, forecast, conflicts, safety | File locking |
931
+ | 4 | `swarm_git` | sync, pr, health, cleanup, cleanup_all | Git operations |
932
+ | 5 | `swarm_worktree` | create, list, remove | Git worktrees |
933
+ | 6 | `swarm_companion` | status, stop, pause, resume | Companion daemon |
934
+ | 7 | `swarm_control` | stop, resume, status | Swarm control |
935
+ | 8 | `swarm_chat` | broadcast, dashboard, thought, thoughts | Team chat |
936
+ | 9 | `swarm_review` | request, respond, list | Code review |
937
+ | 10 | `swarm_voting` | start, vote, list, get | Voting system |
938
+ | 11 | `swarm_auction` | announce, bid, poll | Task auction |
939
+ | 12 | `swarm_mcp` | scan, authorize, policy | MCP scanning |
940
+ | 13 | `swarm_orchestrator` | elect, info, heartbeat, resign, executors, executor_heartbeat | Orchestrator |
941
+ | 14 | `swarm_message` | send, inbox, ack, reply, search, thread | Messaging |
942
+ | 15 | `swarm_briefing` | save, load | Briefings |
943
+ | 16 | `swarm_pulse` | update, get | Real-time status |
944
+ | 17 | `swarm_knowledge` | archive, search | Knowledge base |
945
+ | 18 | `swarm_snapshot` | create, rollback, list | Snapshots |
946
+ | 19 | `swarm_health` | check, dead, reassign, summary | Agent health |
947
+ | 20 | `swarm_quality` | run, report, threshold, pr_ready | Quality gate |
948
+ | 21 | `swarm_cost` | log, agent, project, limit, remaining | Cost tracking |
949
+ | 22-41 | ... | ... | Brainstorming, Plans, Debug, Spec, QA, Hooks, etc. |
950
+
951
+ ### Backward Compatibility
952
+
953
+ - Legacy 168+ tools server available via `npm run dev:legacy`
954
+ - Smart Tools server via `npm run dev` (default)
955
+
956
+ ---
957
+
958
+ ## [0.8.1] - 2026-02-02
959
+
960
+ ### Added
961
+ - **Smart Tools Draft** β€” prototype of consolidating 168+ tools into 41 Smart Tools
962
+ - Files `smartTools.ts.draft` and `serverSmart.ts.draft`
963
+ - Each Smart Tool combines 3-15 similar tools via `action` parameter
964
+
965
+ ---
966
+
967
+ ## [0.8.0] - 2026-02-02
968
+
969
+ ### Added
970
+ - **Orchestrator Election** (6 tools) β€” first agent becomes orchestrator
971
+ - `orchestrator_elect`, `orchestrator_info`, `orchestrator_heartbeat`, `orchestrator_resign`
972
+ - `executor_list`, `executor_heartbeat`
973
+
974
+ - **Agent Messaging** (6 tools) β€” full inter-agent messaging system
975
+ - `agent_message_send`, `agent_inbox_fetch`, `agent_message_ack`
976
+ - `agent_message_reply`, `agent_message_search`, `agent_thread_get`
977
+
978
+ - **Infinite Loop Mode** β€” orchestrator runs continuously
979
+ - Companion daemon with automatic orchestrator election
980
+ - Orchestrator does NOT stop via API β€” only by user
981
+ - Executors register with orchestrator
982
+ - Heartbeat system for liveness monitoring
983
+
984
+ ---
985
+
986
+ ## [0.7.0] - 2026-02-02
987
+
988
+ ### Added
989
+ - **Spec Pipeline** (6 tools) β€” structured pipeline for specification creation
990
+ - 4 roles: gatherer β†’ researcher β†’ writer β†’ critic
991
+ - **QA Loop** (7 tools) β€” iterative review/fix cycles
992
+ - **Guard Hooks** (6 tools) β€” pre-commit/pre-push safety hooks
993
+ - Bypass with `[skip-hooks]` keyword in commit message
994
+ - **Tool Clusters** (7 tools) β€” tool organization by categories
995
+ - 13 categories (agent, task, file, git, collab, safety, quality, debug, plan, hooks, session, cost, docs)
996
+
997
+ ---
998
+
999
+ ## [0.6.0] - 2026-01-30
1000
+
1001
+ ### Added
1002
+ - **Brainstorming Skill** (9 tools) β€” interactive design through step-by-step questions
1003
+ - **Writing Plans Skill** (11 tools) β€” TDD plans with bite-sized tasks (2-5 min)
1004
+ - **Systematic Debugging** (13 tools) β€” 4-phase debugging process
1005
+ - Iron Law: NO FIXES WITHOUT ROOT CAUSE
1006
+ - Red Flags detection: "Let me just try...", "Maybe if I...", "This should fix it..."
1007
+
1008
+ ---
1009
+
1010
+ ## [0.5.0] - 2026-01-30
1011
+
1012
+ ### Added
1013
+ - **Agent Health Monitor** β€” liveness monitoring for agents
1014
+ - **Session Recording** β€” action recording for replay
1015
+ - **Quality Gate** β€” automated pre-merge checks (lint, tests, types, coverage)
1016
+ - **Cost Tracker** β€” API usage cost tracking per agent/project
1017
+ - **Context Compressor** β€” briefing compression (ratio 0.1-0.9)
1018
+ - **Regression Detector** β€” baseline comparison and regression detection
1019
+
1020
+ ---
1021
+
1022
+ ## [0.4.2] - 2026-01-28
1023
+
1024
+ ### Added
1025
+ - **Timeline Visualization** β€” task progress visualization with ASCII milestones
1026
+
1027
+ ---
1028
+
1029
+ ## [0.4.1] - 2026-01-25
1030
+
1031
+ ### Added
1032
+ - **Auto-Documentation** β€” automatic documentation generation on task completion
1033
+ - **Agent Specialization (ML-based)** β€” expertise tracking per agent
1034
+ - **Conflict Prediction (ML-based)** β€” merge conflict prediction using Git history
1035
+
1036
+ ---
1037
+
1038
+ ## [0.4.0] - 2026-01-20
1039
+
1040
+ ### Added
1041
+ - **Cloudflare Hub** β€” real-time WebSocket coordination
1042
+ - Durable Object for state storage
1043
+ - WebSocket broadcast between agents
1044
+ - Hybrid mode (WS + Git fallback)
1045
+ - **Orchestrator Directory** β€” central management (`/orchestrator/`)
1046
+
1047
+ ---
1048
+
1049
+ ## [0.3.0] - 2026-01-15
1050
+
1051
+ ### Added
1052
+ - **Collective Advice** β€” collective brainstorming across all agents
1053
+ - **Urgent Preemption** β€” priority file acquisition for critical bugs
1054
+ - **Snapshot & Rollback** β€” change rollback capability
1055
+ - **Immune System** β€” automatic CI/test failure response
1056
+
1057
+ ---
1058
+
1059
+ ## [0.2.0] - 2026-01-10
1060
+
1061
+ ### Added
1062
+ - **Architecture Voting** β€” voting system for dangerous actions
1063
+ - **Git Worktrees** β€” isolated workspaces for parallel tasks
1064
+ - **GitHub Integration** β€” PR creation, branch sync, auto-cleanup
1065
+ - **Cross-Agent Review** β€” code review between agents
1066
+
1067
+ ---
1068
+
1069
+ ## [0.1.0] - 2026-01-05
1070
+
1071
+ ### Added
1072
+ - **Agent Registry** β€” agent registration with generated names (RadiantWolf, SilentFox, etc.)
1073
+ - **Task Management** β€” full task lifecycle (create, assign, update, complete, cancel)
1074
+ - **File Locking** β€” exclusive/shared file locks with conflict prediction
1075
+ - **Collaboration** β€” broadcast chat, screenshots, thought logging
1076
+ - **Auction System** β€” task bidding for agents
1077
+ - **Briefings** β€” mental snapshots for context transfer between agent shifts
1078
+ - **Pulse** β€” live agent activity map
1079
+ - **Knowledge Base** β€” findings and patterns archive
1080
+ - **Ghost Mode** β€” autonomous code patrol and lint fixing
1081
+ - **Stop Flag** β€” emergency stop for all agents
1082
+
1083
+ ### Infrastructure
1084
+ - MCP Server based on @modelcontextprotocol/sdk
1085
+ - TypeScript compilation
1086
+ - Installer for IDEs (Windsurf, Cursor, Claude Desktop, OpenCode, VS Code)
1087
+ - Agent rules (.windsurfrules, .cursorrules, CLAUDE.md, GEMINI.md)
1088
+ - Companion daemon for background tasks
1089
+
1090
+ ---
1091
+
1092
+ ## Semantic Versioning
1093
+
1094
+ - **MAJOR (X.0.0)** β€” incompatible API changes
1095
+ - **MINOR (0.X.0)** β€” new features, backward compatible
1096
+ - **PATCH (0.0.X)** β€” bug fixes, backward compatible
1097
+
1098
+ ## Legend
1099
+
1100
+ | Type | Description |
1101
+ |------|-------------|
1102
+ | **Added** | New features |
1103
+ | **Changed** | Changes to existing functionality |
1104
+ | **Deprecated** | Features to be removed |
1105
+ | **Removed** | Removed features |
1106
+ | **Fixed** | Bug fixes |
1107
+ | **Security** | Vulnerability fixes |