@claude-flow/codex 3.0.0-alpha.3 → 3.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +309 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
# @claude-flow/codex
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>OpenAI Codex CLI Adapter for Claude Flow V3</strong><br/>
|
|
5
|
+
<em>Self-learning multi-agent orchestration following the <a href="https://agentics.org">Agentics Foundation</a> standard</em>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://www.npmjs.com/package/@claude-flow/codex"><img src="https://img.shields.io/npm/v/@claude-flow/codex?label=npm&color=blue" alt="npm version"></a>
|
|
10
|
+
<a href="https://github.com/ruvnet/claude-flow"><img src="https://img.shields.io/badge/license-MIT-green" alt="license"></a>
|
|
11
|
+
<a href="https://agentics.org"><img src="https://img.shields.io/badge/standard-Agentics-purple" alt="Agentics Standard"></a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Why @claude-flow/codex?
|
|
17
|
+
|
|
18
|
+
Transform OpenAI Codex CLI into a **self-improving AI development system**. While Codex executes code, claude-flow orchestrates, coordinates, and **learns from every interaction**.
|
|
19
|
+
|
|
20
|
+
| Traditional Codex | With Claude-Flow |
|
|
21
|
+
|-------------------|------------------|
|
|
22
|
+
| Stateless execution | Persistent vector memory |
|
|
23
|
+
| Single-agent | Multi-agent swarms (up to 15) |
|
|
24
|
+
| Manual coordination | Automatic orchestration |
|
|
25
|
+
| No learning | Self-learning patterns (HNSW) |
|
|
26
|
+
| One platform | Dual-mode (Claude Code + Codex) |
|
|
4
27
|
|
|
5
28
|
## Key Concept: Execution Model
|
|
6
29
|
|
|
@@ -13,6 +36,30 @@ OpenAI Codex CLI adapter for Claude Flow V3. Enables multi-agent orchestration w
|
|
|
13
36
|
|
|
14
37
|
**Codex does the work. Claude-flow coordinates and learns.**
|
|
15
38
|
|
|
39
|
+
### The Self-Learning Loop
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
┌──────────────┐
|
|
43
|
+
│ SEARCH │ ──→ Find relevant patterns from past successes
|
|
44
|
+
│ memory │
|
|
45
|
+
└──────┬───────┘
|
|
46
|
+
│
|
|
47
|
+
┌──────▼───────┐
|
|
48
|
+
│ COORDINATE │ ──→ Initialize swarm, spawn specialized agents
|
|
49
|
+
│ swarm │
|
|
50
|
+
└──────┬───────┘
|
|
51
|
+
│
|
|
52
|
+
┌──────▼───────┐
|
|
53
|
+
│ EXECUTE │ ──→ Codex writes code, runs commands
|
|
54
|
+
│ codex │
|
|
55
|
+
└──────┬───────┘
|
|
56
|
+
│
|
|
57
|
+
┌──────▼───────┐
|
|
58
|
+
│ STORE │ ──→ Save successful patterns for future use
|
|
59
|
+
│ memory │
|
|
60
|
+
└──────────────┘
|
|
61
|
+
```
|
|
62
|
+
|
|
16
63
|
## Quick Start
|
|
17
64
|
|
|
18
65
|
```bash
|
|
@@ -26,6 +73,8 @@ npx claude-flow@alpha init --codex --full
|
|
|
26
73
|
npx claude-flow@alpha init --dual
|
|
27
74
|
```
|
|
28
75
|
|
|
76
|
+
**That's it!** The MCP server is auto-registered, skills are installed, and your project is ready for self-learning development.
|
|
77
|
+
|
|
29
78
|
---
|
|
30
79
|
|
|
31
80
|
<details>
|
|
@@ -41,6 +90,8 @@ npx claude-flow@alpha init --dual
|
|
|
41
90
|
| **Auto-Registration** | MCP server registered during init |
|
|
42
91
|
| **HNSW Search** | 150x-12,500x faster pattern matching |
|
|
43
92
|
| **Self-Learning** | Learn from successes, remember patterns |
|
|
93
|
+
| **GPT-5.3 Support** | Optimized for latest OpenAI models |
|
|
94
|
+
| **Neural Training** | Train patterns with SONA architecture |
|
|
44
95
|
|
|
45
96
|
</details>
|
|
46
97
|
|
|
@@ -305,16 +356,154 @@ $github-workflow
|
|
|
305
356
|
$performance-optimization
|
|
306
357
|
```
|
|
307
358
|
|
|
308
|
-
###
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
|
313
|
-
|
|
314
|
-
|
|
|
315
|
-
|
|
|
316
|
-
|
|
|
317
|
-
|
|
|
359
|
+
### Complete Skills Table (137+ Skills)
|
|
360
|
+
|
|
361
|
+
#### V3 Core Skills
|
|
362
|
+
|
|
363
|
+
| Skill | Syntax | Description |
|
|
364
|
+
|-------|--------|-------------|
|
|
365
|
+
| V3 Security Overhaul | `$v3-security-overhaul` | Complete security architecture with CVE remediation |
|
|
366
|
+
| V3 Memory Unification | `$v3-memory-unification` | Unify 6+ memory systems into AgentDB with HNSW |
|
|
367
|
+
| V3 Integration Deep | `$v3-integration-deep` | Deep agentic-flow@alpha integration (ADR-001) |
|
|
368
|
+
| V3 Performance Optimization | `$v3-performance-optimization` | Achieve 2.49x-7.47x speedup targets |
|
|
369
|
+
| V3 Swarm Coordination | `$v3-swarm-coordination` | 15-agent hierarchical mesh coordination |
|
|
370
|
+
| V3 DDD Architecture | `$v3-ddd-architecture` | Domain-Driven Design architecture |
|
|
371
|
+
| V3 Core Implementation | `$v3-core-implementation` | Core module implementation |
|
|
372
|
+
| V3 MCP Optimization | `$v3-mcp-optimization` | MCP server optimization and transport |
|
|
373
|
+
| V3 CLI Modernization | `$v3-cli-modernization` | CLI modernization and hooks enhancement |
|
|
374
|
+
|
|
375
|
+
#### AgentDB & Memory Skills
|
|
376
|
+
|
|
377
|
+
| Skill | Syntax | Description |
|
|
378
|
+
|-------|--------|-------------|
|
|
379
|
+
| AgentDB Advanced | `$agentdb-advanced` | Advanced QUIC sync, distributed coordination |
|
|
380
|
+
| AgentDB Memory Patterns | `$agentdb-memory-patterns` | Persistent memory patterns for AI agents |
|
|
381
|
+
| AgentDB Learning | `$agentdb-learning` | AI learning plugins with AgentDB |
|
|
382
|
+
| AgentDB Optimization | `$agentdb-optimization` | Quantization (4-32bit), performance tuning |
|
|
383
|
+
| AgentDB Vector Search | `$agentdb-vector-search` | Semantic vector search with HNSW |
|
|
384
|
+
| ReasoningBank AgentDB | `$reasoningbank-agentdb` | ReasoningBank with AgentDB integration |
|
|
385
|
+
| ReasoningBank Intelligence | `$reasoningbank-intelligence` | Adaptive learning with ReasoningBank |
|
|
386
|
+
|
|
387
|
+
#### Swarm & Coordination Skills
|
|
388
|
+
|
|
389
|
+
| Skill | Syntax | Description |
|
|
390
|
+
|-------|--------|-------------|
|
|
391
|
+
| Swarm Orchestration | `$swarm-orchestration` | Multi-agent swarms with agentic-flow |
|
|
392
|
+
| Swarm Advanced | `$swarm-advanced` | Advanced swarm patterns for research/analysis |
|
|
393
|
+
| Hive Mind Advanced | `$hive-mind-advanced` | Collective intelligence system |
|
|
394
|
+
| Stream Chain | `$stream-chain` | Stream-JSON chaining for multi-agent pipelines |
|
|
395
|
+
| Worker Integration | `$worker-integration` | Background worker integration |
|
|
396
|
+
| Worker Benchmarks | `$worker-benchmarks` | Worker performance benchmarks |
|
|
397
|
+
|
|
398
|
+
#### GitHub Integration Skills
|
|
399
|
+
|
|
400
|
+
| Skill | Syntax | Description |
|
|
401
|
+
|-------|--------|-------------|
|
|
402
|
+
| GitHub Code Review | `$github-code-review` | AI-powered code review swarms |
|
|
403
|
+
| GitHub Project Management | `$github-project-management` | Swarm-coordinated project management |
|
|
404
|
+
| GitHub Multi-Repo | `$github-multi-repo` | Multi-repository coordination |
|
|
405
|
+
| GitHub Release Management | `$github-release-management` | Release orchestration with AI swarms |
|
|
406
|
+
| GitHub Workflow Automation | `$github-workflow-automation` | GitHub Actions automation |
|
|
407
|
+
|
|
408
|
+
#### SPARC Methodology Skills (30+)
|
|
409
|
+
|
|
410
|
+
| Skill | Syntax | Description |
|
|
411
|
+
|-------|--------|-------------|
|
|
412
|
+
| SPARC Methodology | `$sparc-methodology` | Full SPARC workflow orchestration |
|
|
413
|
+
| SPARC Specification | `$sparc:spec-pseudocode` | Capture full project context |
|
|
414
|
+
| SPARC Architecture | `$sparc:architect` | System architecture design |
|
|
415
|
+
| SPARC Coder | `$sparc:coder` | Clean, efficient code generation |
|
|
416
|
+
| SPARC Tester | `$sparc:tester` | Comprehensive testing |
|
|
417
|
+
| SPARC Reviewer | `$sparc:reviewer` | Code review and quality |
|
|
418
|
+
| SPARC Debugger | `$sparc:debugger` | Runtime bug troubleshooting |
|
|
419
|
+
| SPARC Optimizer | `$sparc:optimizer` | Refactor and modularize |
|
|
420
|
+
| SPARC Documenter | `$sparc:documenter` | Documentation generation |
|
|
421
|
+
| SPARC DevOps | `$sparc:devops` | DevOps automation |
|
|
422
|
+
| SPARC Security Review | `$sparc:security-review` | Static/dynamic security analysis |
|
|
423
|
+
| SPARC Integration | `$sparc:integration` | System integration |
|
|
424
|
+
| SPARC MCP | `$sparc:mcp` | MCP integration management |
|
|
425
|
+
|
|
426
|
+
#### Flow Nexus Skills
|
|
427
|
+
|
|
428
|
+
| Skill | Syntax | Description |
|
|
429
|
+
|-------|--------|-------------|
|
|
430
|
+
| Flow Nexus Neural | `$flow-nexus-neural` | Neural network training in E2B sandboxes |
|
|
431
|
+
| Flow Nexus Platform | `$flow-nexus-platform` | Platform management and authentication |
|
|
432
|
+
| Flow Nexus Swarm | `$flow-nexus-swarm` | Cloud-based AI swarm deployment |
|
|
433
|
+
| Flow Nexus Payments | `$flow-nexus:payments` | Credit management and billing |
|
|
434
|
+
| Flow Nexus Challenges | `$flow-nexus:challenges` | Coding challenges and achievements |
|
|
435
|
+
| Flow Nexus Sandbox | `$flow-nexus:sandbox` | E2B sandbox management |
|
|
436
|
+
| Flow Nexus App Store | `$flow-nexus:app-store` | App publishing and deployment |
|
|
437
|
+
| Flow Nexus Workflow | `$flow-nexus:workflow` | Event-driven workflow automation |
|
|
438
|
+
|
|
439
|
+
#### Development Skills
|
|
440
|
+
|
|
441
|
+
| Skill | Syntax | Description |
|
|
442
|
+
|-------|--------|-------------|
|
|
443
|
+
| Pair Programming | `$pair-programming` | AI-assisted pair programming |
|
|
444
|
+
| Skill Builder | `$skill-builder` | Create new Claude Code Skills |
|
|
445
|
+
| Verification Quality | `$verification-quality` | Truth scoring and quality verification |
|
|
446
|
+
| Performance Analysis | `$performance-analysis` | Bottleneck detection and optimization |
|
|
447
|
+
| Agentic Jujutsu | `$agentic-jujutsu` | Quantum-resistant version control |
|
|
448
|
+
| Hooks Automation | `$hooks-automation` | Automated coordination and learning |
|
|
449
|
+
|
|
450
|
+
#### Memory Management Skills
|
|
451
|
+
|
|
452
|
+
| Skill | Syntax | Description |
|
|
453
|
+
|-------|--------|-------------|
|
|
454
|
+
| Memory Neural | `$memory:neural` | Neural pattern training |
|
|
455
|
+
| Memory Usage | `$memory:memory-usage` | Memory usage analysis |
|
|
456
|
+
| Memory Search | `$memory:memory-search` | Semantic memory search |
|
|
457
|
+
| Memory Persist | `$memory:memory-persist` | Memory persistence |
|
|
458
|
+
|
|
459
|
+
#### Monitoring & Analysis Skills
|
|
460
|
+
|
|
461
|
+
| Skill | Syntax | Description |
|
|
462
|
+
|-------|--------|-------------|
|
|
463
|
+
| Real-Time View | `$monitoring:real-time-view` | Real-time monitoring |
|
|
464
|
+
| Agent Metrics | `$monitoring:agent-metrics` | Agent performance metrics |
|
|
465
|
+
| Swarm Monitor | `$monitoring:swarm-monitor` | Swarm activity monitoring |
|
|
466
|
+
| Token Usage | `$analysis:token-usage` | Token usage optimization |
|
|
467
|
+
| Performance Report | `$analysis:performance-report` | Performance reporting |
|
|
468
|
+
| Bottleneck Detect | `$analysis:bottleneck-detect` | Bottleneck detection |
|
|
469
|
+
|
|
470
|
+
#### Training Skills
|
|
471
|
+
|
|
472
|
+
| Skill | Syntax | Description |
|
|
473
|
+
|-------|--------|-------------|
|
|
474
|
+
| Specialization | `$training:specialization` | Agent specialization training |
|
|
475
|
+
| Neural Patterns | `$training:neural-patterns` | Neural pattern training |
|
|
476
|
+
| Pattern Learn | `$training:pattern-learn` | Pattern learning |
|
|
477
|
+
| Model Update | `$training:model-update` | Model updates |
|
|
478
|
+
|
|
479
|
+
#### Automation & Optimization Skills
|
|
480
|
+
|
|
481
|
+
| Skill | Syntax | Description |
|
|
482
|
+
|-------|--------|-------------|
|
|
483
|
+
| Self-Healing | `$automation:self-healing` | Self-healing workflows |
|
|
484
|
+
| Smart Agents | `$automation:smart-agents` | Smart agent auto-spawning |
|
|
485
|
+
| Session Memory | `$automation:session-memory` | Cross-session memory |
|
|
486
|
+
| Cache Manage | `$optimization:cache-manage` | Cache management |
|
|
487
|
+
| Parallel Execute | `$optimization:parallel-execute` | Parallel task execution |
|
|
488
|
+
| Topology Optimize | `$optimization:topology-optimize` | Automatic topology selection |
|
|
489
|
+
|
|
490
|
+
#### Hooks Skills (17 Hooks + 12 Workers)
|
|
491
|
+
|
|
492
|
+
| Skill | Syntax | Description |
|
|
493
|
+
|-------|--------|-------------|
|
|
494
|
+
| Pre-Edit | `$hooks:pre-edit` | Context before editing |
|
|
495
|
+
| Post-Edit | `$hooks:post-edit` | Record editing outcome |
|
|
496
|
+
| Pre-Task | `$hooks:pre-task` | Record task start |
|
|
497
|
+
| Post-Task | `$hooks:post-task` | Record task completion |
|
|
498
|
+
| Session End | `$hooks:session-end` | End session and persist |
|
|
499
|
+
|
|
500
|
+
#### Dual-Mode Skills (NEW)
|
|
501
|
+
|
|
502
|
+
| Skill | Syntax | Description |
|
|
503
|
+
|-------|--------|-------------|
|
|
504
|
+
| Dual Spawn | `$dual-spawn` | Spawn parallel Codex workers from Claude Code |
|
|
505
|
+
| Dual Coordinate | `$dual-coordinate` | Coordinate Claude Code + Codex execution |
|
|
506
|
+
| Dual Collect | `$dual-collect` | Collect results from parallel Codex instances |
|
|
318
507
|
|
|
319
508
|
### Custom Skills
|
|
320
509
|
|
|
@@ -339,6 +528,114 @@ Invoke with `$my-skill`
|
|
|
339
528
|
|
|
340
529
|
---
|
|
341
530
|
|
|
531
|
+
<details>
|
|
532
|
+
<summary><b>Dual-Mode Integration (Claude Code + Codex)</b></summary>
|
|
533
|
+
|
|
534
|
+
### Hybrid Execution Model
|
|
535
|
+
|
|
536
|
+
Run Claude Code for interactive development and spawn headless Codex workers for parallel background tasks:
|
|
537
|
+
|
|
538
|
+
```
|
|
539
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
540
|
+
│ CLAUDE CODE (interactive) ←→ CODEX WORKERS (headless) │
|
|
541
|
+
│ - Main conversation - Parallel background execution │
|
|
542
|
+
│ - Complex reasoning - Bulk code generation │
|
|
543
|
+
│ - Architecture decisions - Test execution │
|
|
544
|
+
│ - Final integration - File processing │
|
|
545
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
### Setup
|
|
549
|
+
|
|
550
|
+
```bash
|
|
551
|
+
# Initialize dual-mode
|
|
552
|
+
npx claude-flow@alpha init --dual
|
|
553
|
+
|
|
554
|
+
# Creates both:
|
|
555
|
+
# - CLAUDE.md (Claude Code configuration)
|
|
556
|
+
# - AGENTS.md (Codex configuration)
|
|
557
|
+
# - Shared .claude-flow/ runtime
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
### Spawning Parallel Codex Workers
|
|
561
|
+
|
|
562
|
+
From Claude Code, spawn headless Codex instances:
|
|
563
|
+
|
|
564
|
+
```bash
|
|
565
|
+
# Spawn workers in parallel (each runs independently)
|
|
566
|
+
claude -p "Analyze src/auth/ for security issues" --session-id "task-1" &
|
|
567
|
+
claude -p "Write unit tests for src/api/" --session-id "task-2" &
|
|
568
|
+
claude -p "Optimize database queries in src/db/" --session-id "task-3" &
|
|
569
|
+
wait # Wait for all to complete
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
### Dual-Mode Skills
|
|
573
|
+
|
|
574
|
+
| Skill | Platform | Description |
|
|
575
|
+
|-------|----------|-------------|
|
|
576
|
+
| `$dual-spawn` | Codex | Spawn parallel workers from orchestrator |
|
|
577
|
+
| `$dual-coordinate` | Both | Coordinate cross-platform execution |
|
|
578
|
+
| `$dual-collect` | Claude Code | Collect results from Codex workers |
|
|
579
|
+
|
|
580
|
+
### Dual-Mode Agents
|
|
581
|
+
|
|
582
|
+
| Agent | Type | Execution |
|
|
583
|
+
|-------|------|-----------|
|
|
584
|
+
| `codex-worker` | Worker | Headless background execution |
|
|
585
|
+
| `codex-coordinator` | Coordinator | Manage parallel worker pool |
|
|
586
|
+
| `dual-orchestrator` | Orchestrator | Route tasks to appropriate platform |
|
|
587
|
+
|
|
588
|
+
### Task Routing Rules
|
|
589
|
+
|
|
590
|
+
| Task Complexity | Platform | Reason |
|
|
591
|
+
|----------------|----------|--------|
|
|
592
|
+
| Simple (1-2 files) | Codex Headless | Fast, parallel |
|
|
593
|
+
| Medium (3-5 files) | Claude Code | Needs context |
|
|
594
|
+
| Complex (architecture) | Claude Code | Reasoning required |
|
|
595
|
+
| Bulk operations | Codex Workers | Parallelize |
|
|
596
|
+
| Final review | Claude Code | Integration |
|
|
597
|
+
|
|
598
|
+
### Example Workflow
|
|
599
|
+
|
|
600
|
+
```
|
|
601
|
+
1. Claude Code receives complex feature request
|
|
602
|
+
2. Designs architecture and creates plan
|
|
603
|
+
3. Spawns 4 Codex workers:
|
|
604
|
+
- Worker 1: Implement data models
|
|
605
|
+
- Worker 2: Create API endpoints
|
|
606
|
+
- Worker 3: Write unit tests
|
|
607
|
+
- Worker 4: Generate documentation
|
|
608
|
+
4. Workers execute in parallel (headless)
|
|
609
|
+
5. Claude Code collects and integrates results
|
|
610
|
+
6. Final review and refinement in Claude Code
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
### Memory Sharing
|
|
614
|
+
|
|
615
|
+
Both platforms share the same `.claude-flow/` runtime:
|
|
616
|
+
|
|
617
|
+
```
|
|
618
|
+
.claude-flow/
|
|
619
|
+
├── data/
|
|
620
|
+
│ └── memory.db # Shared vector memory
|
|
621
|
+
├── config.yaml # Shared configuration
|
|
622
|
+
└── sessions/ # Cross-platform sessions
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
### Benefits
|
|
626
|
+
|
|
627
|
+
| Feature | Benefit |
|
|
628
|
+
|---------|---------|
|
|
629
|
+
| **Parallel Execution** | 4-8x faster for bulk tasks |
|
|
630
|
+
| **Cost Optimization** | Route simple tasks to cheaper workers |
|
|
631
|
+
| **Context Preservation** | Shared memory across platforms |
|
|
632
|
+
| **Best of Both** | Interactive + batch processing |
|
|
633
|
+
| **Unified Learning** | Patterns learned by both platforms |
|
|
634
|
+
|
|
635
|
+
</details>
|
|
636
|
+
|
|
637
|
+
---
|
|
638
|
+
|
|
342
639
|
<details>
|
|
343
640
|
<summary><b>Configuration</b></summary>
|
|
344
641
|
|
|
@@ -346,7 +643,7 @@ Invoke with `$my-skill`
|
|
|
346
643
|
|
|
347
644
|
```toml
|
|
348
645
|
# Model configuration
|
|
349
|
-
model = "gpt-
|
|
646
|
+
model = "gpt-5.3"
|
|
350
647
|
|
|
351
648
|
# Approval policy: "always" | "on-request" | "never"
|
|
352
649
|
approval_policy = "on-request"
|