
Ruv Swarm
io.github.ruvnet由 GitHub 账号 ruvnet 发布v1.0.19更新于 Oct 24, 2026
Neural network swarm orchestration with WebAssembly acceleration and MCP integration
概览
本地运行的多代理神经网络蜂群编排服务器,让助手创建代理团队、分派任务并训练模型。
- 可以做什么
- 初始化、查看并监控多代理蜂群,选择网状、层级、环状或星形拓扑。生成、列出并度量具备不同专长与认知模式的代理。分派任务、跟踪进度并获取优化结果。训练与查看神经网络模型,分析认知模式。运行性能基准测试、检测运行环境能力并查看内存用量。
- 适用场景
- 当你希望助手在本地以多代理协作方式处理软件工程任务,例如修 bug、代码审查、生成测试或重构,并希望借助 WASM 加速与 SQLite 保存状态时使用。
- 运行要求
- 以 npm 包 ruv-swarm 在本地通过 stdio 运行,需要 Node.js。可设置环境变量 RUV_SWARM_DB_PATH 指定 SQLite 持久化路径、RUV_SWARM_ENABLE_SIMD 启用 SIMD、RUV_SWARM_LOG_LEVEL 设置日志级别。无需 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Ruv Swarm,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ruv-swarm 🐝
[Crates.io] [Documentation] [License: MIT OR Apache-2.0] [CI]
What if every task, every file, every function could truly think? Just for a moment. No LLM required. That's what ruv-swarm makes real.
🐝 Ephemeral Intelligence, Engineered in Rust
ruv-swarm lets you spin up ultra-lightweight custom neural networks that exist just long enough to solve the problem. Tiny purpose-built brains dedicated to solving very specific challenges.
Think particular coding structures, custom communications, trading optimization - neural networks built on the fly just for the task they need to exist for, long enough to solve it, then gone.
You're not calling a model. You're instantiating intelligence.
Temporary, composable, and surgically precise.
⚡ Built for the GPU-Poor
We built this using ruv-FANN and distributed autonomous agents. The results are remarkable:
- Complex decisions in <100ms - sometimes single milliseconds
- 84.8% SWE-Bench accuracy - outperforming Claude 3.7 by 14+ points
- CPU-native, GPU-optional - Rust compiles to high-speed WASM
- Zero dependencies - Runs anywhere: browser, edge, server, even RISC-V
No CUDA. No Python stack. Just pure, embeddable swarm cognition launched from Claude Code in milliseconds.
🧠 Living Global Swarm Network
Each agent behaves like a synthetic synapse, dynamically created and orchestrated as part of a living network:
- Topologies: Mesh, ring, hierarchical for collective learning
- 27+ Neural Models: LSTM, TCN, N-BEATS for adaptation
- Cognitive Specializations: Coders, Analysts, Reviewers, Optimizers
- Real-time Evolution: Mutation, adaptation, and forecasting
Agents share resources through quantum-resistant QuDag networks, self-organizing to solve problems with surgical precision.
🏆 Performance Achievements
🎯 Industry-Leading Benchmarks
- 84.8% SWE-Bench Solve Rate - 14.5 percentage points above Claude 3.7 Sonnet (70.3%)
- 99.5% Multi-Agent Coordination Accuracy - Near-perfect swarm orchestration
- 32.3% Token Efficiency Improvement - Significant cost reduction
- 2.8-4.4x Speed Improvement - Faster than any competing system
- 96.4% Code Quality Retention - Maintains high accuracy while optimizing
🧠 Cognitive Diversity Framework
First production system implementing 27+ neuro-divergent models working in harmony:
- LSTM Coding Optimizer: 86.1% accuracy for bug fixing and code completion
- TCN Pattern Detector: 83.7% accuracy for pattern recognition
- N-BEATS Task Decomposer: 88.2% accuracy for project planning
- Swarm Coordinator: 99.5% accuracy for multi-agent orchestration
- Claude Code Optimizer: 32.3% token reduction with stream-JSON integration
🚀 Core Capabilities
Multi-Agent Orchestration
- 4 Topology Types: Mesh, Hierarchical, Ring, Star configurations
- 5 Agent Specializations: Researcher, Coder, Analyst, Optimizer, Coordinator
- 7 Cognitive Patterns: Convergent, Divergent, Lateral, Systems, Critical, Abstract, Hybrid
- Real-time Coordination: WebSocket, shared memory, and in-process communication
- Production-Ready: SQLite persistence with ACID compliance
Machine Learning & AI
- 27+ Time Series Models: LSTM, TCN, N-BEATS, Transformer, VAE, GAN, and more
- 18 Activation Functions: ReLU, Sigmoid, Tanh, Swish, GELU, Mish, and variants
- 5 Training Algorithms: Backpropagation, RProp, Quickprop, Adam, SGD
- Ensemble Learning: Multi-model coordination for superior results
- Cognitive Diversity: Different thinking patterns for complex problem-solving
WebAssembly Performance
- SIMD Acceleration: 2-4x performance boost with vectorized operations
- Browser-Deployable: Full neural network inference in the browser
- Memory Efficient: Optimized for edge computing scenarios
- Cross-Platform: Works on any WASM-compatible runtime
Claude Code Integration
- Stream-JSON Parser: Real-time analysis of Claude Code CLI output
- SWE-Bench Adapter: Direct integration with software engineering benchmarks
- Token Optimization: 32.3% reduction in API usage costs
- MCP Protocol: Full Model Context Protocol compliance with 16 tools
📦 Published Crates (v0.2.0)
All components are available on crates.io:
NPM Package
🏃 Quick Start
Rust API - Production Multi-Agent System
JavaScript/TypeScript - Browser-Ready ML Swarm
CLI - Production Deployment
Claude Code CLI Integration
🧠 ML Optimizer System
Training Pipeline
Cognitive Patterns in Action
🔧 MCP Tools for Claude Code
Complete integration with Claude Code via 16 production-ready MCP tools:
Swarm Management
swarm_init- Initialize swarm with topology and ML modelsswarm_status- Real-time metrics and agent statusswarm_monitor- Live performance dashboard
Agent Operations
agent_spawn- Create specialized ML-powered agentsagent_list- View active agents and their modelsagent_metrics- Performance and accuracy statistics
Task Orchestration
task_orchestrate- Distribute with cognitive patternstask_status- Progress with token usagetask_results- Optimized solutions
ML & Optimization
neural_train- Train agent neural networksneural_status- Model performance metricsneural_patterns- Cognitive pattern analysis
Benchmarking & Analysis
benchmark_run- Comprehensive performance testsfeatures_detect- Runtime capability detectionmemory_usage- Resource optimization
SWE-Bench Integration
🏗️ Architecture
Modular Crate System
Technology Stack
- Core: Rust 1.75+ with async/await (tokio)
- ML Framework: Custom neural networks + time series models
- WebAssembly: wasm-bindgen with SIMD support
- Frontend: TypeScript with WASM bindings
- Persistence: SQLite with automatic migrations
- Protocols: WebSocket, SharedMemory, MCP (JSON-RPC 2.0)
- Deployment: Docker, Kubernetes, edge computing
📊 Performance Benchmarks
SWE-Bench Evaluation Results
System Performance Metrics
🧪 Development & Testing
Building from Source
Running Tests
Docker Deployment
📚 Documentation
- Performance Report - Detailed benchmarks and comparisons
- API Reference - Complete API documentation
- ML Optimizer Guide - Training and optimization
- MCP Integration - Claude Code setup
- Architecture Deep Dive - System design
- Deployment Guide - Production deployment
🌟 Use Cases
Software Engineering
- Automated Bug Fixing: 86.1% success rate on real-world bugs
- Code Review Acceleration: 4.4x faster with multi-agent analysis
- Test Generation: Comprehensive test suites with cognitive diversity
- Refactoring: Parallel analysis and implementation
AI/ML Development
- Model Training Orchestration: Distributed hyperparameter search
- Ensemble Learning: Multi-model coordination
- Real-time Inference: Browser-based ML with WASM
- Continuous Learning: Adaptive model updates
Enterprise Integration
- CI/CD Enhancement: Intelligent build and test distribution
- Microservice Orchestration: Cognitive service mesh
- Cost Optimization: 32.3% reduction in API usage
- Compliance Analysis: Multi-agent security reviews
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Priority Areas
- Additional cognitive patterns
- New ML model architectures
- Language-specific optimizations
- Benchmark improvements
- Documentation and examples
📄 License
Dual-licensed under:
- Apache License 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
🔗 Links
- Crates.io: https://crates.io/crates/ruv-swarm-core
- NPM: https://www.npmjs.com/package/ruv-swarm
- Documentation: https://docs.rs/ruv-swarm-core
- Repository: https://github.com/ruvnet/ruv-FANN
- Performance Report: Research Report
🙏 Acknowledgments
Special thanks to Bron, Ocean, Jed, and Shep for their invaluable contributions to making ruv-swarm a reality.
Built with ❤️ by the rUv team | Part of the ruv-FANN framework
Achieving superhuman performance through cognitive diversity and swarm intelligence
来源:ruv-swarm/README.md,提交 1d93b35
工具
0版本历史
1- v1.0.19最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分