Skip to content
Back to skills

Dual Mode

ASecurity

Dual-mode orchestration for Claude Code + Codex hybrid workflows with parallel headless workers

  • 126 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
code-qualitybashtestingapisecuritydocumentation

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add henryalouf/ruflow --skill dual-mode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dual Mode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dual Mode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/henryalouf-dual-mode/badge)](https://www.skillsdirectory.com/skills/henryalouf-dual-mode)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dual-mode
description: Dual-mode orchestration for Claude Code + Codex hybrid workflows with parallel headless workers
version: 1.0.0
tags: [dual-mode, codex, parallel, headless, orchestration]
triggers: [/dual-spawn, /dual-coordinate, /dual-collect]
---

# Dual-Mode Orchestration Skill

Orchestrate hybrid workflows using Claude Code for interactive reasoning and headless Codex workers for parallel background execution.

## Sub-Skills

| Command | File | Purpose |
|---------|------|---------|
| `/dual-spawn` | dual-spawn.md | Spawn headless Codex workers for parallel execution |
| `/dual-coordinate` | dual-coordinate.md | Coordinate hybrid Claude+Codex workflows |
| `/dual-collect` | dual-collect.md | Collect and aggregate results from headless workers |

## When to Use

- Tasks that benefit from parallel execution (multi-file implementation, bulk testing)
- Feature development requiring both design (interactive) and implementation (parallel)
- Documentation sprints across multiple modules
- Any task where spawning background `claude -p` workers speeds up delivery

## Architecture

```
Claude Code (Interactive)          Codex Workers (Headless)
+-------------------+             +------------------+
| Design & Planning |  -- spawn ->| Worker 1 (coder) |
| Quality Review    |             | Worker 2 (tester)|
| Final Integration |  <- collect-| Worker 3 (docs)  |
+-------------------+             +------------------+
        |                                  |
        +--- Shared Memory (claude-flow) --+
```

## Workflow Phases

1. **Route** -- Analyze task, determine platform split
2. **Design** -- Interactive reasoning in Claude Code (architecture, planning)
3. **Execute** -- Spawn headless Codex workers for parallel implementation
4. **Collect** -- Gather results from shared memory
5. **Review** -- Interactive quality review in Claude Code

## Quick Start

```bash
# Spawn 3 parallel implementation workers
/dual-spawn "Implement user authentication" --workers 3 --type coder

# Run a full hybrid workflow
/dual-coordinate --workflow hybrid_development --task "Build user API"

# Collect results from all workers
/dual-collect --format detailed
```

## Available Workflows

| Workflow | Description |
|----------|-------------|
| `hybrid_development` | Design interactively, implement in parallel, review interactively |
| `parallel_feature` | Spawn multiple workers for parallel implementation |
| `design_and_execute` | Interactive design phase, then batch execution |

## Worker Types

| Type | Platform | Use Case |
|------|----------|----------|
| `coder` | Codex | Implementation, code generation |
| `tester` | Codex | Test writing, coverage |
| `docs` | Codex | Documentation generation |
| `reviewer` | Claude | Code review, security analysis |

## Memory Coordination

All workers share state via claude-flow memory:

```bash
# Store context for workers
npx claude-flow@v3alpha memory store --namespace results --key "design" --value "..."

# Search worker results
npx claude-flow@v3alpha memory search --namespace results --query "authentication"

# List all results
npx claude-flow@v3alpha memory list --namespace results
```

## Related Agents

- `dual-orchestrator` -- Hybrid workflow orchestration
- `codex-coordinator` -- Parallel worker coordination
- `codex-worker` -- Headless execution worker

Files in this skill

  • README.md1.8 KB
  • SKILL.md3.3 KB
  • dual-collect.md2.5 KB
  • dual-coordinate.md2.2 KB
  • dual-spawn.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…