claude-agent-orchestration

mcp
Security Audit
Warn
Health Warn
  • License รขโ‚ฌโ€ License: MIT
  • Description รขโ‚ฌโ€ Repository has a description
  • Active repo รขโ‚ฌโ€ Last push 0 days ago
  • Low visibility รขโ‚ฌโ€ Only 9 GitHub stars
Code Pass
  • Code scan รขโ‚ฌโ€ Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions รขโ‚ฌโ€ No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Top claude agent orchestration framework ๐ŸŒŸ Star if you like it! ๐ŸŒŸ

README.md
Claude-Flow V3 - Multi-Agent AI Orchestration Framework



Awesome Discord
npm version
Node.js
TypeScript
MCP Protocol
Architecture
License
GitHub followers

Key Features โ€ข Architecture โ€ข Agent Swarm โ€ข Quick Start โ€ข MCP Tools โ€ข LLM Providers โ€ข Docs


๐Ÿ“Œ Overview

Claude-Flow V3 (claude-agent-orchestration) is an enterprise-grade, Domain-Driven Design (DDD) multi-agent coordination engine built for autonomous development swarms. It orchestrates collaborative AI agents using Hierarchical-Mesh topologies, Model Context Protocol (MCP) native tool dispatch, AgentDB HNSW vector indexing, and Flash-Attention accelerated inter-agent messaging.

Whether executing complex code refactors, multi-stage TDD verification pipelines, distributed security audits, or full-stack software generation, Claude-Flow coordinates specialized agents with sub-millisecond dispatch and deterministic rollback guarantees.


๐Ÿš€ Key Features

๐Ÿ 15-Agent Swarm Intelligence

Queen-led hierarchy with cross-domain mesh routing spanning 6 specialized bounded contexts: Security, Core Architecture, Integration, Quality, Performance, and Release Engineering.

๐Ÿ”Œ Native MCP Protocol Server

Zero-configuration Model Context Protocol (MCP) server supporting Stdio, HTTP, WebSocket, and JSON-RPC 2.0 transports with runtime tool introspection.

๐Ÿง  Hybrid Memory & HNSW Vector Store

Dual-engine memory combining SQLite relational querying with AgentDB HNSW vector search, delivering 150x โ€“ 12,500x speedups over brute-force semantic search.

โšก Flash Attention & Sub-100ms Latency

Mixture-of-Experts (MoE) attention routing and GraphRoPE positional encodings delivering 2.49x โ€“ 7.47x token throughput acceleration.

๐Ÿ”„ DAG Workflow Engine & Auto-Rollback

Topological dependency resolution for Directed Acyclic Graph (DAG) task execution with reverse-order transactional state rollback upon failure.

๐Ÿ›ก๏ธ Enterprise Hardened Security

Bcrypt password hashing (CVE-2 mitigation), high-entropy cryptographic token generators (CVE-3 mitigation), and whitelisted process execution (HIGH-1/2 fixes).


๐Ÿ›๏ธ Architecture Overview

graph TD
    User["๐Ÿ‘ค Developer / MCP Client / CLI"] -->|JSON-RPC / Direct TS| Orchestrator["๐Ÿ‘‘ Unified Swarm Coordinator (Queen)"]
    
    subgraph "Coordination & Topology"
        Orchestrator --> SecurityDomain["๐Ÿ›ก๏ธ Security Domain (Agents 2-4)"]
        Orchestrator --> CoreDomain["โš™๏ธ Core Systems (Agents 1, 5-9)"]
        Orchestrator --> IntegrationDomain["๐Ÿ”— Integration & Neural (Agents 10-12)"]
        Orchestrator --> QualityDomain["๐Ÿงช Quality & Performance (Agents 13-15)"]
    end

    subgraph "Application Engine"
        CoreDomain --> WorkflowEngine["๐Ÿ“‹ DAG Workflow Engine"]
        WorkflowEngine --> TaskExecutor["โšก Topological Task Dispatcher"]
    end

    subgraph "Persistence & Memory"
        TaskExecutor --> HybridMemory["๐Ÿ’พ Hybrid Memory Layer"]
        HybridMemory --> SQLite["๐Ÿ—„๏ธ SQLite (Relational State)"]
        HybridMemory --> AgentDB["๐Ÿ” AgentDB (HNSW Vector Index)"]
    end

    subgraph "Infrastructure & Extensibility"
        Orchestrator --> MCPServer["๐Ÿ“ก MCP Protocol Server"]
        Orchestrator --> PluginManager["๐Ÿงฉ Microkernel Plugin Manager"]
    end

๐Ÿ“Š Performance Benchmarks

Metric Legacy / Baseline Claude-Flow V3 Improvement
Vector Search Latency 125ms (Linear Scan) 0.01ms - 0.8ms (AgentDB HNSW) ๐Ÿš€ 150x โ€“ 12,500x faster
Inter-Agent Attention Throughput 1.0x (Standard Softmax) 2.49x โ€“ 7.47x (Flash Attention) โšก Up to 7.47x throughput
Memory Footprint 450 MB 112 MB ๐Ÿ“‰ 50% โ€“ 75% reduction
Cold Startup Time 2,400ms < 480ms โฑ๏ธ 5x faster boot
Codebase Complexity >25,000 LOC < 5,000 LOC (DDD Core) ๐Ÿงผ Clean Modular Design

๐Ÿ 15-Agent Swarm Matrix

The V3 swarm architecture distributes responsibility across 6 domain tiers:

                  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                  โ”‚    Agent 1: Queen Coordinator โ”‚
                  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚                       โ”‚                       โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Security Domain   โ”‚ โ”‚    Core Domain      โ”‚ โ”‚ Integration Domain โ”‚
โ”‚  (Agents 2, 3, 4)  โ”‚ โ”‚ (Agents 5, 6, 7, 8) โ”‚ โ”‚ (Agents 10, 11, 12)โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚                       โ”‚                       โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                  โ”‚
                       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                       โ”‚   Support Domain    โ”‚
                       โ”‚ (Agents 13, 14, 15) โ”‚
                       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
ID Agent Role Domain Primary Responsibilities Core Capabilities
agent-1 Queen Coordinator Core Hive-mind orchestration, task decomposition, GitHub issue sync coordination, planning, routing
agent-2 Security Architect Security Threat modeling, cryptographic policy, security architecture threat-modeling, security-review
agent-3 Security Implementer Security CVE remediation, input sanitization, safe command execution remediation, patching, crypto
agent-4 Security Auditor Security TDD security harnesses, penetration verification, fuzzing penetration-testing, audit
agent-5 Core Architect Core DDD bounded context design, domain event definitions system-design, ddd-architecture
agent-6 Core Implementer Core TypeScript type system modernization, domain entities code-generation, refactoring
agent-7 Memory Specialist Core AgentDB vector integration, hybrid memory architecture vector-indexing, sql-optimization
agent-8 Swarm Specialist Core Dynamic topology routing, Raft/Byzantine consensus voting topology-management, consensus
agent-9 MCP Specialist Core Model Context Protocol optimization, tool registration mcp-protocol, tool-routing
agent-10 Integration Architect Integration Provider bridging, service layer contracts api-design, provider-routing
agent-11 CLI & Hooks Dev Integration CLI subcommand suite, lifecycle event hooks cli-tooling, event-hooks
agent-12 Neural Developer Integration SONA fast learning (<0.05ms), pattern recognition neural-attention, pattern-matching
agent-13 TDD Test Engineer Quality London School TDD test suites, test coverage (>90%) unit-testing, integration-testing
agent-14 Performance Eng. Performance Flash Attention benchmarks, memory footprint optimization benchmarking, profiling
agent-15 Release Engineer Deployment CI/CD pipeline automation, npm publishing ci-cd, deployment, packaging

๐Ÿ“ฆ Quick Start

1. Installation

# Install globally
npm install -g claude-flow

# Or add to your existing TypeScript/Node.js project
npm install claude-flow

2. Command Line Interface (CLI)

# Display system health and environment diagnostics
claude-flow doctor

# Initialize a swarm with hierarchical topology
claude-flow swarm init --topology hierarchical

# Spawn a specialized agent
claude-flow agent spawn --id coder-1 --type coder

# Start full orchestrator & MCP stdio server
claude-flow start

3. Programmatic TypeScript API

import { 
  initializeV3Swarm, 
  WorkflowEngine, 
  HybridBackend,
  SQLiteBackend,
  AgentDBBackend
} from 'claude-flow';

// 1. Initialize Hybrid Memory Backend (SQLite + AgentDB Vector Index)
const sqlite = new SQLiteBackend();
const agentdb = new AgentDBBackend();
const memory = new HybridBackend(sqlite, agentdb);
await memory.initialize();

// 2. Initialize Swarm Coordinator with Mesh Topology
const swarm = await initializeV3Swarm({
  topology: 'mesh',
  memoryBackend: memory,
  maxAgents: 10
});

// 3. Spawn Specialized Agents
const coder = await swarm.spawnAgent({
  id: 'agent-coder-1',
  type: 'coder',
  capabilities: ['code', 'refactor', 'debug']
});

const tester = await swarm.spawnAgent({
  id: 'agent-tester-1',
  type: 'tester',
  capabilities: ['test', 'validate']
});

// 4. Execute a DAG Workflow with Auto-Rollback
const workflowEngine = new WorkflowEngine({ coordinator: swarm, memoryBackend: memory });
await workflowEngine.initialize();

const result = await workflowEngine.executeWorkflow({
  id: 'wf-feature-build',
  name: 'Feature Implementation Workflow',
  rollbackOnFailure: true,
  tasks: [
    {
      id: 'task-1',
      type: 'code',
      description: 'Generate user authentication module',
      priority: 'high',
      onExecute: async () => { /* Code generation logic */ },
      onRollback: async () => { /* Clean up files on error */ }
    },
    {
      id: 'task-2',
      type: 'test',
      description: 'Run unit test suite against auth module',
      priority: 'medium',
      dependencies: ['task-1'],
      onExecute: async () => { /* Run test suites */ }
    }
  ]
});

console.log(`Workflow Status: ${result.status}, Completed: ${result.tasksCompleted}`);

๐Ÿ“ก MCP Server & Tools

Claude-Flow V3 acts as a native Model Context Protocol (MCP) server, making your swarm tools accessible to Claude Desktop, Cursor, VSCode, and other AI IDEs:

{
  "mcpServers": {
    "claude-flow": {
      "command": "npx",
      "args": ["claude-flow", "start"]
    }
  }
}

Registered MCP Tools

Tool Name Description Required Parameters
agent_spawn Dynamically instantiates a new agent into the active swarm id, type
agent_list Lists all active agents, roles, states, and health metrics None
agent_terminate Safely drains and terminates an agent agentId
agent_metrics Retrieves latency, task count, and health stats for an agent agentId
memory_store Persists a memory item with optional vector embedding id, agentId, content, type
memory_search Filters memories by agent, type, timestamp, or tags agentId or type
memory_vector_search Performs high-speed cosine vector nearest-neighbor search embedding, k
config_validate Validates swarm topology, memory, and performance configs config

๐Ÿค– LLM Provider Matrix & Pricing

Claude-Flow supports multi-provider routing with load balancing, latency tracking, and automatic failover:

LLM Provider Pricing Model / Estimated Rates Free Tier / Developer Limits Supported Models
Anthropic Pay-as-you-go per 1M tokens
โ€ข Prompt: $0.25 โ€“ $15.00
โ€ข Completion: $1.25 โ€“ $75.00
$5 free credits on initial signup (credit card required) Claude 3.5 Sonnet, Claude 3 Opus, Claude 3.5 Haiku
OpenAI Pay-as-you-go per 1M tokens
โ€ข Prompt: $0.15 โ€“ $5.00
โ€ข Completion: $0.60 โ€“ $15.00
$5 initial trial credits (valid for 3 months) GPT-4o, o1, GPT-4 Turbo, GPT-3.5-Turbo
Google Cloud (Gemini) Pay-as-you-go per 1M tokens
โ€ข Prompt: $0.075 โ€“ $1.25
โ€ข Completion: $0.30 โ€“ $5.00
Free Tier available via Google AI Studio (up to 15 RPM / 1M TPM) Gemini 2.0 Flash, Gemini 1.5 Pro, Gemini 1.5 Flash
Cohere Pay-as-you-go per 1M tokens
โ€ข Prompt: $0.15 โ€“ $2.50
โ€ข Completion: $0.60 โ€“ $10.00
Free trial tier for developers (up to 1,000 API calls/mo; 20 RPM) Command R+, Command R, Command Light
Ollama (Local / Self-Hosted) 100% Free & Open Source (Local hardware compute cost only) Unlimited local inference (hardware dependent) Llama 3.3, Mistral, CodeLlama, Qwen 2.5, Phi-3

๐Ÿ“ Repository Structure

claude-agent-orchestration/
โ”œโ”€โ”€ v3/
โ”‚   โ”œโ”€โ”€ src/                               # Core Domain-Driven Design Layer
โ”‚   โ”‚   โ”œโ”€โ”€ agent-lifecycle/domain/        # Agent entity & lifecycle management
โ”‚   โ”‚   โ”œโ”€โ”€ coordination/application/      # SwarmCoordinator & topology routing
โ”‚   โ”‚   โ”œโ”€โ”€ task-execution/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ domain/                    # Task entity & DAG topological sorting
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ application/               # WorkflowEngine with rollback support
โ”‚   โ”‚   โ”œโ”€โ”€ memory/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ domain/                    # MemoryEntity & search abstractions
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ infrastructure/            # SQLiteBackend, AgentDBBackend, HybridBackend
โ”‚   โ”‚   โ”œโ”€โ”€ infrastructure/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ mcp/                       # MCPServer & Tool Providers (Agent, Memory, Config)
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ plugins/                   # BasePlugin, ExtensionPoints, PluginManager
โ”‚   โ”‚   โ”œโ”€โ”€ shared/types/                  # Canonical type definitions & error classes
โ”‚   โ”‚   โ””โ”€โ”€ index.ts                       # Core module barrel export
โ”‚   โ”œโ”€โ”€ @claude-flow/                      # Standalone Monorepo Packages
โ”‚   โ”‚   โ”œโ”€โ”€ cli/                           # CLI binary & MCP Stdio bridge
โ”‚   โ”‚   โ”œโ”€โ”€ swarm/                         # Swarm topologies, Raft/Byzantine consensus
โ”‚   โ”‚   โ”œโ”€โ”€ memory/                        # Vector index services & caching
โ”‚   โ”‚   โ””โ”€โ”€ shared/                        # EventBus & Event-Sourcing projections
โ”‚   โ”œโ”€โ”€ __tests__/                         # Vitest London-School Integration Test Suite
โ”‚   โ”œโ”€โ”€ swarm.config.ts                    # 15-Agent Swarm Declarative Configuration
โ”‚   โ””โ”€โ”€ index.ts                           # Top-level V3 entry point
โ”œโ”€โ”€ package.json                           # Root ESM configuration & dependencies
โ”œโ”€โ”€ tsconfig.json                          # TypeScript ES2022 / ESNext configuration
โ””โ”€โ”€ README.md                              # Project documentation

๐Ÿงช Testing

Claude-Flow follows the London School TDD (Mock-First) methodology with 100% isolated test suites:

# Run all unit and integration tests
npm test

# Run tests with interactive browser UI
npm run test:ui

# Run security audit & penetration verification suites
npm run security:test

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“ˆ Star History

Star History Chart


๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information.

Built with โค๏ธ for Autonomous Agent Intelligence

Back to top โ†‘

Reviews (0)

No results found