claude-agent-orchestration
Health Uyari
- License รขโฌโ License: MIT
- Description รขโฌโ Repository has a description
- Active repo รขโฌโ Last push 0 days ago
- Low visibility รขโฌโ Only 9 GitHub stars
Code Gecti
- Code scan รขโฌโ Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions รขโฌโ No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Top claude agent orchestration framework ๐ Star if you like it! ๐
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 IntelligenceQueen-led hierarchy with cross-domain mesh routing spanning 6 specialized bounded contexts: Security, Core Architecture, Integration, Quality, Performance, and Release Engineering. |
๐ Native MCP Protocol ServerZero-configuration Model Context Protocol (MCP) server supporting Stdio, HTTP, WebSocket, and JSON-RPC 2.0 transports with runtime tool introspection. |
๐ง Hybrid Memory & HNSW Vector StoreDual-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 LatencyMixture-of-Experts (MoE) attention routing and GraphRoPE positional encodings delivering 2.49x โ 7.47x token throughput acceleration. |
๐ DAG Workflow Engine & Auto-RollbackTopological dependency resolution for Directed Acyclic Graph (DAG) task execution with reverse-order transactional state rollback upon failure. |
๐ก๏ธ Enterprise Hardened SecurityBcrypt 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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ Star History
๐ License
Distributed under the MIT License. See LICENSE for more information.
Built with โค๏ธ for Autonomous Agent Intelligence
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi