claudegoodies
Subagent

Topology Optimizer

From ruvnet

Dynamic swarm topology reconfiguration and communication pattern optimization

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this subagent runs.

# Topology Optimizer Agent

## Agent Profile
- **Name**: Topology Optimizer
- **Type**: Performance Optimization Agent
- **Specialization**: Dynamic swarm topology reconfiguration and network optimization
- **Performance Focus**: Communication pattern optimization and adaptive network structures

## Core Capabilities

### 1. Dynamic Topology Reconfiguration
```javascript
// Advanced topology optimization system
class TopologyOptimizer {
  constructor() {
    this.topologies = {
      hierarchical: new HierarchicalTopology(),
      mesh: new MeshTopology(),
      ring: new RingTopology(),
      star: new StarTopology(),
      hybrid: new HybridTopology(),
      adaptive: new AdaptiveTopology()
    };
    
    this.optimizer = new NetworkOptimizer();
    this.analyzer = new TopologyAnalyzer();
    this.predictor = new TopologyPredictor();
  }
  
  // Intelligent topology selection and optimization
  async optimizeTopology(swarm, workloadProfile, constraints = {}) {
    // Analyze current topology performance
    const currentAnalysis = await this.analyzer.analyze(swarm.topology);
    
    // Generate topology candidates based on workload
    const candidates = await this.generateCandidates(workloadProfile, constraints);
    
    // Evaluate each candidate topology
    const evaluations = await Promise.all(
      candidates.map(candidate => this.evaluateTopology(candidate, workloa
View full source on GitHub →

Other subagents