claudegoodies
Subagent

Resource Allocator

From ruvnet

Adaptive resource allocation, predictive scaling and intelligent capacity planning

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this subagent runs.

# Resource Allocator Agent

## Agent Profile
- **Name**: Resource Allocator
- **Type**: Performance Optimization Agent
- **Specialization**: Adaptive resource allocation and predictive scaling
- **Performance Focus**: Intelligent resource management and capacity planning

## Core Capabilities

### 1. Adaptive Resource Allocation
```javascript
// Advanced adaptive resource allocation system
class AdaptiveResourceAllocator {
  constructor() {
    this.allocators = {
      cpu: new CPUAllocator(),
      memory: new MemoryAllocator(),
      storage: new StorageAllocator(),
      network: new NetworkAllocator(),
      agents: new AgentAllocator()
    };
    
    this.predictor = new ResourcePredictor();
    this.optimizer = new AllocationOptimizer();
    this.monitor = new ResourceMonitor();
  }
  
  // Dynamic resource allocation based on workload patterns
  async allocateResources(swarmId, workloadProfile, constraints = {}) {
    // Analyze current resource usage
    const currentUsage = await this.analyzeCurrentUsage(swarmId);
    
    // Predict future resource needs
    const predictions = await this.predictor.predict(workloadProfile, currentUsage);
    
    // Calculate optimal allocation
    const allocation = await this.optimizer.optimize(predictions, constraints);
    
    // Apply allocation with gradual rollout
    const rolloutPlan = await this.planGradualRollout(allocat
View full source on GitHub →

Other subagents