Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
SkillAn toànQuy trình & bộ nhớ agentNâng cao

swarm-iosm

rokoss21 · rokoss21/swarm-iosm

Swarm-IOSM là một công cụ điều phối subagent song song cho Claude Code, thực thi các cổng chất lượng và song song hóa các tác vụ phát triển phức tạp.

Engine điều phối Subagent song song cho Claude Code triển khai phương pháp IOSM. Lập lịch phân công liên tục, cổng kiểm soát chất lượng, giao thức tự động sinh agent.

37 sao4Giấy phép: MITCập nhật 9 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Điều phối nhiều subagent để làm việc đồng thời trên các phần khác nhau của một tính năng với tính năng phát hiện xung đột tệp.
  • Tự động hóa kiểm tra chất lượng mã, hiệu suất và tính module ở các giai đoạn khác nhau trong công việc của tác nhân.
  • Quản lý một tác vụ phát triển lớn bằng cách phân rã nó thành các đơn vị nhỏ hơn, có thể song song hóa với kế hoạch dựa trên PRD.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

Swarm-IOSM

Parallel Orchestration Engine for Claude Code with Built-in Quality Gates

Features • Quick Start • Architecture • Documentation • Use Cases • Contributing


🎯 What is Swarm-IOSM?

Swarm-IOSM is an advanced orchestration engine for Claude Code that transforms complex development tasks into coordinated parallel work streams with enforced quality standards.

It implements the IOSM methodology (Improve → Optimize → Shrink → Modularize) as an executable system for parallel AI agent coordination, combining:

  • 🤖 Intelligent Orchestration — Continuous dispatch scheduling with dependency analysis
  • 🔒 File Conflict Detection — Lock management prevents parallel write conflicts
  • 📋 PRD-Driven Planning — Structured requirements → decomposition → execution
  • ✅ IOSM Quality Gates — Automated code quality, performance, and modularity checks
  • 🔄 Auto-Spawn Protocol — Dynamic task discovery and creation during execution
  • 📊 Cost Tracking — Budget guardrails with usage monitoring

Core Model: Touches → Locks → Gates → Done

A correctness model for parallel agent work: declare what files you touch, acquire locks to prevent conflicts, pass quality gates, ship.

Why Swarm-IOSM?

Traditional development workflows struggle with:

  • Sequential bottlenecks — One task blocks the next, wasting time
  • Context loss — Large features lack structured documentation
  • Quality debt — No systematic enforcement of engineering standards
  • Manual coordination — Developers spend time orchestrating instead of building

Swarm-IOSM solves these by:

  • Parallelizing independent work streams (commonly 3–8x faster than sequential, depends on task independence)
  • Enforcing IOSM quality gates before merge
  • Automating task decomposition and subagent coordination
  • Tracking all decisions and artifacts for full traceability

What Swarm-IOSM is NOT

To set clear expectations:

  • ❌ Not a general-purpose workflow engine — Designed specifically for Claude Code agent orchestration
  • ❌ Not a replacement for CI/CD — Complements your pipeline, doesn't replace Jenkins/GitHub Actions
  • ❌ Not a code generator "autopilot" — Requires human oversight and decision-making
  • ❌ Not safe to run unattended on production repos — Always review changes before merge

⚡ 60-Second Demo

# Install
git clone https://github.com/rokoss21/swarm-iosm.git .claude/skills/swarm-iosm

# In Claude Code
/swarm-iosm setup
/swarm-iosm new-track "Add JWT authentication"

What you get:

  • swarm/tracks/<id>/PRD.md — Requirements document
  • swarm/tracks/<id>/plan.md — Task breakdown with dependencies
  • swarm/tracks/<id>/reports/ — Subagent execution reports (after /swarm-iosm implement)
  • swarm/tracks/<id>/integration_report.md — Merge plan & results
  • swarm/tracks/<id>/iosm_report.md — Quality gate evaluation

See complete example: examples/demo-track/ — Full track from PRD to merge (7 tasks, Redis caching feature)


🌟 Key Features

Core Capabilities

FeatureDescriptionBenefits
Continuous Dispatch LoopTasks launch immediately when dependencies are metNo artificial wave barriers, maximum parallelism
Parallel Subagent ExecutionUp to 8 simultaneous background/foreground agentsOften 3-8x faster than sequential execution
IOSM Quality GatesAutomated checks for code quality, performance, complexityQuality-gated before merge
File Lock ManagementHierarchical conflict detection (file/folder)Safe parallel writes, prevents merge conflicts
Auto-Spawn from DiscoveriesSubagents report new work → orchestrator schedulesSelf-organizing workflow adaptation
Intelligent Error RecoveryPattern-based diagnosis with suggested fixesAuto-diagnosis with 3 retry limit
Cost & Budget ControlToken usage tracking with budget guardrailsPredictable API costs (default: $10 limit)
Checkpoint & ResumeCrash recovery from last known stateFault-tolerant long-running tasks

Feature Status

FeatureStatusCommand/Location
✅ Inter-Agent CommunicationAvailable in v2.0+shared_context.md auto-updated
✅ Task Dependency VisualizationAvailable in v2.0+--graph flag in orchestration planner
✅ Anti-Pattern DetectionAvailable in v2.0+Auto-warns during planning
✅ Template CustomizationAvailable in v2.0+Override in swarm/templates/
✅ Simulation ModeAvailable in v1.3+/swarm-iosm simulate
✅ Checkpoint & ResumeAvailable in v1.3+/swarm-iosm resume
🧪 Live MonitoringExperimental/swarm-iosm watch (basic implementation)
🗺️ IDE IntegrationRoadmapVS Code extension planned
🗺️ CI/CD TemplatesRoadmapGitHub Actions / GitLab CI examples

🏗️ Architecture

System Overview

┌──────────────────────────────────────────────────────────────────────┐
│                    ORCHESTRATOR (Main Claude Agent)                  │
│  ┌─────────────────────────────────────────────────────────────────┐ │
│  │              Continuous Dispatch Loop (v1.1+)                   │ │
│  │  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌──────────────────┐ │ │
│  │  │ Collect  │→ │ Classify │→ │ Conflict │→ │ Dispatch Batch   │ │ │
│  │  │  Ready   │  │  Modes   │  │  Check   │  │ (max 3-6 tasks)  │ │ │
│  │  └──────────┘  └──────────┘  └──────────┘  └──────────────────┘ │ │
│  │       ↑                                           │             │ │
│  │       │        ┌──────────┐  ┌──────────┐         ↓             │ │
│  │       └────────│  IOSM    │←─│ Auto-    │←────────┘             │ │
│  │                │  Gates
Xem mã nguồn trên GitHub