mayor-worker-pattern

Community

Safe Mayor-Worker pattern for scalable agents.

AuthorJtapias92672
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Mayor-Worker pattern solves coordination collapse in large multi-agent systems by clearly separating planning (Mayor) from execution (Workers), ensuring isolated tasks and controlled information flow.

Core Features & Use Cases

  • Two-tier architecture: Mayor coordinates work at a global level while workers execute single tasks in isolated environments.
  • Fault isolation: Workers are ephemeral and stateless, reducing cross-task contamination and simplifying recovery.
  • Controlled coordination: External ledger-based handoff ensures traceability and prevents direct inter-worker communication.
  • Use Case: Deploy this pattern when orchestrating 3+ agents on related projects to improve reliability and scalability.

Quick Start

Set up a Mayor-Worker pattern with a Mayor dispatching a single worker task and monitoring the ledger for results.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mayor-worker-pattern
Download link: https://github.com/Jtapias92672/OneDrive_1_1-19-2026-2/archive/main.zip#mayor-worker-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.