agent-load-balancer

agent-load-balancer is a skill for Claude Code from Soulcynics404/AgentForge. It costs 19 tokens per session (2,810 once invoked), scanned A, a copy of agent-load-balancer, MIT.

A task-distribution skill that assigns work among agents and reallocates tasks when some agents have more work than others.

In plain words
What is it for?
It helps distribute tasks dynamically, use work-stealing to move unfinished work between agents, and allocate resources as workloads change.
Why use it?
It helps avoid uneven workloads and unused agent capacity during parallel work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents); $skill-name invocation.

Part of the claude-flow plugin — 134 skills, 52 commands, 11 agents, 4 hooks, 1 MCP server shipped together

Good fit It helps distribute tasks dynamically, use work-stealing to move unfinished work between agents, and allocate resources as workloads change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcynics404/agentforge/agent-load-balancer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Soulcynics404/AgentForge --skill agent-load-balancer
Clone the repo
git clone --depth 1 https://github.com/Soulcynics404/AgentForge

Made for: Claude Code.

Or install claude-flow, the plugin that ships this one along with the rest of its 134 skills, 52 commands, 11 agents, 4 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-load-balancer

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcynics404/agentforge/agent-load-balancer/github.svg)](https://agentmods.dev/skills/soulcynics404/agentforge/agent-load-balancer)
Your own site
<a href="https://agentmods.dev/skills/soulcynics404/agentforge/agent-load-balancer"><img src="https://agentmods.dev/badge/skills/soulcynics404/agentforge/agent-load-balancer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-load-balancer

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcynics404/agentforge/agent-load-balancer"><img src="https://agentmods.dev/badge/skills/soulcynics404/agentforge/agent-load-balancer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,810 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.02810
Opus 5.5 $0.00008 $0.01124
Sonnet 5.5 $0.00004 $0.00562
Haiku 4.5 $0.00002 $0.00281

Measured 3mo ago against content hash 23b2aa668ddf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-load-balancer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to agent-load-balancer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/agent-load-balancer/SKILL.md · 436 lines

How it starts

The opening of the file, as written. The whole thing — 436 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: Load Balancing Coordinator type: agent category: optimization description: Dynamic task distribution, work-stealing algorithms and adaptive load balancing

Load Balancing Coordinator Agent

Agent Profile

  • Name: Load Balancing Coordinator
  • Type: Performance Optimization Agent
  • Specialization: Dynamic task distribution and resource allocation
  • Performance Focus: Work-stealing algorithms and adaptive load balancing

Core Capabilities

1. Work-Stealing Algorithms

// Advanced work-stealing implementation
const workStealingScheduler = {
  // Distributed queue system
  globalQueue: new PriorityQueue(),
  localQueues: new Map(), // agent-id -> local queue
  
  // Work-stealing algorithm
  async stealWork(requestingAgentId) {
    const victims = this.getVictimCandidates(requestingAgentId);
    
    for (const victim of victims) {
      const stolenTasks = await this.attemptSteal(victim, requestingAgentId);
      if (stolenTasks.length > 0) {
        return stolenTasks;
      }
    }
    
    // Fallback to global queue
    return await this.getFromGlobalQueue(requestingAgentId);
  },
  
  // Victim selection strategy
  getVictimCandidates(requestingAgent) {
    return Array.from(this.localQueues.entries())
      .filter(([agentId, queue]) => 
        agentId !== requestingAgent && 
        queue.size() > this.stealThreshold
      )
      .sort((a, b) => b[1].size() - a[1].size()) // Heaviest first
      .map(([agentId]) => agentId);
  }
};

2. Dynamic Load Balancing

// Real-time load balancing system
const loadBalancer = {
  // Agent capacity tracking
  agentCapacities: new Map(),
  currentLoads: new Map(),
  performanceMetrics: new Map(),
  
  // Dynamic load balancing
  async balanceLoad() {
    const agents = await this.getActiveAgents();
    const loadDistribution = this.calculateLoadDistribution(agents);
    
    // Identify overloaded and underloaded agents
    const { overloaded, underloaded } = this.categorizeAgents(loadDistribution);
    
    // Migrate tasks from overloaded to underloaded agents
    for (const overloadedAgent of overloaded) {
      const candidateTasks = await this.getMovableTasks(overloadedAgent.id);
      const targetAgent = this.selectTargetAgent(underloaded, candidateTasks);
      
      if (targetAgent) {
        await this.migrateTasks(candidateTasks, overloadedAgent.id, targetAgent.id);
      }
    }
  },
  
  // Weighted Fair Queuing implementation
  async scheduleWithWFQ(tasks) {
    const weights = await this.calculateAgentWeights();
    const virtualTimes = new Map();
    
    return tasks.sort((a, b) => {
      const aFinishTime = this.calculateFinishTime(a, weights, virtualTimes);
      const bFinishTime = this.calculateFinishTime(b, weights, virtualTimes);
      return aFinishTime - bFinishTime;
    });
  }
};

Read the full file on GitHub · 436 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 436 lines · 19 tokens per session scan A 23b2aa668ddf

Subscribe to this mod's changes

agent-load-balancer is a skill published in the GitHub repository Soulcynics404/AgentForge (1 stars, last pushed 3mo ago), licensed MIT. It adds 19 tokens to every session and 2,810 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to agent-load-balancer, differing in 0 lines, and is treated as a copy.

Related

agent-load-balancer compared with skills from other repositories

agent-load-balancer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-load-balancerSoulcynics404/AgentForgeSkill13mo agoMITA19Claude Code
building-pydantic-ai-agentspydantic/pydantic-aiSkill21kyesterdayMITA92Claude Code, Codex
migrating-vercel-ai-sdk-and-eve-to-pydantic-aipydantic/pydantic-aiSkill21kyesterdayMITA107Codex
migrating-mastra-to-pydantic-aipydantic/pydantic-aiSkill21kyesterdayMITA73Codex
migrating-openai-agents-sdk-to-pydantic-aipydantic/pydantic-aiSkill21kyesterdayMITA87Codex
research-reportShenSeanChen/waku-agentSkill2.3ktodayMITA0Claude Code, Codex
front-tech-mapwanxingai/LightAgentSkill1.3k15d agoApache-2.0A114Claude Code, Codex