🔖 Checkpoint: Edit /home/eric/IdeaProjects/claude-flow/docs/ARCHITECTURE.md

This commit is contained in:
Eric Vogt committed 2025-08-13 20:54:24 +02:00
1 parent 03142bed81
commit 3addedf440
4 files changed
+109 -35

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250813-205320", "file": "/home/eric/IdeaProjects/claude-flow/docs/API_DOCUMENTATION.md", "timestamp": "2025-08-13T18:53:20Z", "type": "pre-edit", "original_branch": "fix_readme-and-documentation"}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250813-205321", "file": "/home/eric/IdeaProjects/claude-flow/docs/ARCHITECTURE.md", "timestamp": "2025-08-13T18:53:21Z", "type": "post-edit", "branch": "fix_readme-and-documentation", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755111178.json | 1 + .claude/checkpoints/1755111196.json | 1 + docs/ARCHITECTURE.md | 175 +++++++++++++++++++++++++++++++++ 5 files changed, 181 insertions(+), 4 deletions(-) "}
+1
View File
@@ -0,0 +1 @@
{"tag": "checkpoint-20250813-205326", "file": "/home/eric/IdeaProjects/claude-flow/docs/API_DOCUMENTATION.md", "timestamp": "2025-08-13T18:53:26Z", "type": "post-edit", "branch": "fix_readme-and-documentation", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/task-metrics.json | 6 +- docs/API_DOCUMENTATION.md | 2201 +++++++++----------------------- 3 files changed, 573 insertions(+), 1636 deletions(-) "}
+106 -35
View File
@@ -301,53 +301,124 @@ class MemoryManager {
### Swarm Topologies
#### Centralized Topology
Claude-Flow implements sophisticated swarm coordination patterns with real-time adaptation:
#### 1. Centralized (Queen-Led) Topology
```
┌──────────┐
│ Queen │
└────┬─────┘
│
┌─────────┼─────────┐
│ │ │
┌───▼───┐ ┌──▼───┐ ┌───▼───┐
│Worker1│ │Worker2│ │Worker3│
└───────┘ └──────┘ └───────┘
┌──────────────────┐
│ Queen Agent │
│ ┌──────────────┐ │
│ │ Consensus │ │
│ │ Engine │ │
│ └──────────────┘ │
└─────────┬────────┘
│ Commands
┌──────────────┼──────────────┐
│ │ │
┌───▼────┐ ┌────▼────┐ ┌────▼────┐
│Worker1 │ │Worker2 │ │Worker3 │
│(Coder) │ │(Tester) │ │(Review) │
└───┬────┘ └────┬────┘ └────┬────┘
│ │ │
└─────────────┼─────────────┘
▼ Results
┌─────────────────┐
│ Result Aggr. │
└─────────────────┘
```
#### Mesh Topology
**Features:**
- Byzantine fault tolerance with 66% threshold
- Consensus-driven task allocation
- Centralized result aggregation
- Performance: 2.8-4.4x speed improvement
#### 2. Mesh (Peer-to-Peer) Topology
```
┌───────┐ ┌───────┐
│Agent1 │◄────►Agent2 │
└───┬───┘ └───┬───┘
│ ╳ │
│ ╱ ╲ │
┌───▼───┐ ┌───▼───┐
│Agent3 │◄────►Agent4 │
└───────┘ └───────┘
┌─────────────┐ ┌─────────────┐
│ Agent1 │◄───►│ Agent2 │
│ Researcher │ │ Architect │
└─────┬───────┘ └─────┬───────┘
│ ╳ │
│ ╱ ╲ │
│ ╱ ╲ │
┌─────▼─────┐ ┌───────▼─┐
│ Agent3 │◄───►│ Agent4 │
│ Coder │ │ Monitor│
└───────────┘ └─────────┘
```
#### Hierarchical Topology
**Features:**
- Distributed consensus via voting
- P2P communication with message routing
- Adaptive load balancing
- Fault-tolerant with circuit breakers
#### 3. Hierarchical (Multi-Level) Topology
```
┌──────────┐
│ Root │
└────┬─────┘
│
┌────────┴────────┐
│ │
┌────▼────┐ ┌────▼────┐
│Manager1 │ │Manager2 │
└────┬────┘ └────┬────┘
│ │
┌───┴───┐ ┌───┴───┐
│ │ │ │
┌──▼─┐ ┌──▼─┐ ┌──▼─┐ ┌──▼─┐
│ W1 │ │ W2 │ │ W3 │ │ W4 │
└────┘ └────┘ └────┘ └────┘
┌─────────────────────┐
│ Root Coordinator │
│ ┌───────────────┐ │
│ │ Neural Pattern│ │
│ │ & Memory Mgmt │ │
│ └───────────────┘ │
└──────────┬──────────┘
│
┌────────────┴────────────┐
│ │
┌─────▼──────┐ ┌─────▼──────┐
│ Manager1 │ │ Manager2 │
│(Frontend) │ │(Backend) │
└─────┬──────┘ └─────┬──────┘
│ │
┌──────┴──────┐ ┌──────┴──────┐
│ │ │ │
┌────▼────┐ ┌───▼────┐ ┌───▼────┐ ┌───▼────┐
│React │ │Mobile │ │API │ │Database│
│Agent │ │Agent │ │Agent │ │Agent │
└─────────┘ └────────┘ └────────┘ └────────┘
```
**Features:**
- Multi-tier command hierarchy
- Domain-specific agent clusters
- Resource pooling and optimization
- Cross-cluster communication
#### 4. Distributed (Cloud-Native) Topology
```
┌─────────────────────────────────────────────────────┐
│ Load Balancer │
└─────────────────┬───────────────────────────────────┘
│
┌────────────┼────────────┐
│ │ │
┌────▼────┐ ┌───▼────┐ ┌───▼────┐
│Region 1 │ │Region 2│ │Region 3│
│ ┌─────┐ │ │ ┌─────┐│ │ ┌─────┐│
│ │Agent│ │ │ │Agent││ │ │Agent││
│ │Pool │ │ │ │Pool ││ │ │Pool ││
│ └─────┘ │ │ └─────┘│ │ └─────┘│
└─────────┘ └────────┘ └────────┘
│ │ │
└────────────┼────────────┘
▼
┌─────────────────────┐
│ Distributed Memory │
│ & State Management │
└─────────────────────┘
```
**Features:**
- Geographic distribution
- Auto-scaling based on load
- Distributed state synchronization
- Edge computing capabilities
---
## Data Flow