Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv7f6850a8ce54
diff --git a/v3/@claude-flow/codex/README.md b/v3/@claude-flow/codex/README.md
index ee1da5164c..ec0b819e12 100644
--- a/v3/@claude-flow/codex/README.md
+++ b/v3/@claude-flow/codex/README.md
@@ -477,6 +477,114 @@ Invoke with `$my-skill`
---
+<details>
+<summary><b>Dual-Mode Integration (Claude Code + Codex)</b></summary>
+
+### Hybrid Execution Model
+
+Run Claude Code for interactive development and spawn headless Codex workers for parallel background tasks:
+
+```
+β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
+β”‚ CLAUDE CODE (interactive) ←→ CODEX WORKERS (headless) β”‚
+β”‚ - Main conversation - Parallel background execution β”‚
+β”‚ - Complex reasoning - Bulk code generation β”‚
+β”‚ - Architecture decisions - Test execution β”‚
+β”‚ - Final integration - File processing β”‚
+β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
+```
+
+### Setup
+
+```bash
+# Initialize dual-mode
+npx claude-flow@alpha init --dual
+
+# Creates both:
+# - CLAUDE.md (Claude Code configuration)
+# - AGENTS.md (Codex configuration)
+# - Shared .claude-flow/ runtime
+```
+
+### Spawning Parallel Codex Workers
+
+From Claude Code, spawn headless Codex instances:
+
+```bash
+# Spawn workers in parallel (each runs independently)
+claude -p "Analyze src/auth/ for security issues" --session-id "task-1" &
+claude -p "Write unit tests for src/api/" --session-id "task-2" &
+claude -p "Optimize database queries in src/db/" --session-id "task-3" &
+wait # Wait for all to complete
+```
+
+### Dual-Mode Skills
+
+| Skill | Platform | Description |
+|-------|----------|-------------|
+| `$dual-spawn` | Codex | Spawn parallel workers from orchestrator |
+| `$dual-coordinate` | Both | Coordinate cross-platform execution |
+| `$dual-collect` | Claude Code | Collect results from Codex workers |
+
+### Dual-Mode Agents
+
+| Agent | Type | Execution |
+|-------|------|-----------|
+| `codex-worker` | Worker | Headless background execution |
+| `codex-coordinator` | Coordinator | Manage parallel worker pool |
+| `dual-orchestrator` | Orchestrator | Route tasks to appropriate platform |
+
+### Task Routing Rules
+
+| Task Complexity | Platform | Reason |
+|----------------|----------|--------|
+| Simple (1-2 files) | Codex Headless | Fast, parallel |
+| Medium (3-5 files) | Claude Code | Needs context |
+| Complex (architecture) | Claude Code | Reasoning required |
+| Bulk operations | Codex Workers | Parallelize |
+| Final review | Claude Code | Integration |
+
+### Example Workflow
+
+```
+1. Claude Code receives complex feature request
+2. Designs architecture and creates plan
+3. Spawns 4 Codex workers:
+ - Worker 1: Implement data models
+ - Worker 2: Create API endpoints
+ - Worker 3: Write unit tests
+ - Worker 4: Generate documentation
+4. Workers execute in parallel (headless)
+5. Claude Code collects and integrates results
+6. Final review and refinement in Claude Code
+```
+
+### Memory Sharing
+
+Both platforms share the same `.claude-flow/` runtime:
+
+```
+.claude-flow/
+β”œβ”€β”€ data/
+β”‚ └── memory.db # Shared vector memory
+β”œβ”€β”€ config.yaml # Shared configuration
+└── sessions/ # Cross-platform sessions
+```
+
+### Benefits
+
+| Feature | Benefit |
+|---------|---------|
+| **Parallel Execution** | 4-8x faster for bulk tasks |
+| **Cost Optimization** | Route simple tasks to cheaper workers |
+| **Context Preservation** | Shared memory across platforms |
+| **Best of Both** | Interactive + batch processing |
+| **Unified Learning** | Patterns learned by both platforms |
+
+</details>
+
+---
+
<details>
<summary><b>Configuration</b></summary>