workflow-automation
workflow-automation — a Claude Code skill from ruvnet/ruflo
Features
- ✓Enterprise-grade AI orchestration
- ✓Multi-agent system deployment
- ✓Self-learning and optimization
- ✓Custom agent roles and types
- ✓Coordinated swarm management
- ✓Fault-tolerant consensus
- ✓Rust-based WASM kernels
- ✓Visit GitHub for more tools
Installation Guide
# curl-style installer with progress display
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/ruflo@main/scripts/install.sh | bash
# Full setup (global + MCP + diagnostics)
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/ruflo@main/scripts/install.sh | bash -s -- --full<details>
<summary><b>Install Options</b></summary>
| Option | Description |
|--------|-------------|
| --global, -g | Install globally (npm install -g) |
| --minimal, -m | Skip optional deps (faster, ~15s) |
| --setup-mcp | Auto-configure MCP server for Claude Code |
| --doctor, -d | Run diagnostics after install |
| --no-init | Skip project initialization (init runs by default) |
| --full, -f | Full setup: global + MCP + doctor |
| --version=X.X.X | Install specific version |
Examples:
# Minimal global install (fastest)
curl ... | bash -s -- --global --minimal
# With MCP auto-setup
curl ... | bash -s -- --global --setup-mcp
# Full setup with diagnostics
curl ... | bash -s -- --fullSpeed:
| Mode | Time |
|------|------|
| npx (cached) | ~3s |
| npx (fresh) | ~20s |
| global | ~35s |
| --minimal | ~15s |
</details>
#### npm/npx Install
# Quick start (no install needed)
npx ruflo@latest init
# Or install globally
npm install -g ruflo@latest
ruflo init
# With Bun (faster)
bunx ruflo@latest init#### Install Profiles
| Profile | Size | Use Case |
|---------|------|----------|
| --omit=optional | ~45MB | Core CLI only (fastest) |
| Default | ~340MB | Full install with ML/embeddings |
# Minimal install (skip ML/embeddings)
npm install -g ruflo@latest --omit=optional<details>
<summary>🤖 <strong>OpenAI Codex CLI Support</strong> — Full Codex integration with self-learning</summary>
Ruflo supports both Claude Code and OpenAI Codex CLI via the @claude-flow/codex package, following the Agentics Foundation standard.
Quick Start for Codex
# Initialize for Codex CLI (creates AGENTS.md instead of CLAUDE.md)
npx ruflo@latest init --codex
# Full Codex setup with all 137+ skills
npx ruflo@latest init --codex --full
# Initialize for both platforms (dual mode)
npx ruflo@latest init --dualPlatform Comparison
| Feature | Claude Code | OpenAI Codex |
|---------|-------------|--------------|
| Config File | CLAUDE.md | AGENTS.md |
| Skills Dir | .claude/skills/ | .agents/skills/ |
| Skill Syntax | /skill-name | $skill-name |
| Settings | settings.json | config.toml |
| MCP | Native | Via codex mcp add |
| Default Model | claude-sonnet | gpt-5.3 |
Key Concept: Execution Model
┌─────────────────────────────────────────────────────────────────┐
│ CLAUDE-FLOW = ORCHESTRATOR (tracks state, stores memory) │
│ CODEX = EXECUTOR (writes code, runs commands, implements) │
└─────────────────────────────────────────────────────────────────┘Codex does the work. Claude-flow coordinates and learns.
Dual-Mode Integration (Claude Code + Codex)
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 │
└─────────────────────────────────────────────────────────────────┘# Spawn parallel Codex workers from Claude Code
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 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 |
Dual-Mode CLI Commands (NEW)
# List collaboration templates
npx @claude-flow/codex dual templates
# Run feature development swarm (architect → coder → tester → reviewer)
npx @claude-flow/codex dual run --template feature --task "Add user auth"
# Run security audit swarm (scanner → analyzer → fixer)
npx @claude-flow/codex dual run --template security --task "src/auth/"
# Run refactoring swarm (analyzer → planner → refactorer → validator)
npx @claude-flow/codex dual run --template refactor --task "src/legacy/"Pre-Built Collaboration Templates
| Template | Pipeline | Platforms |
|----------|----------|-----------|
| feature | architect → coder → tester → reviewer | Claude + Codex |
| security | scanner → analyzer → fixer | Codex + Claude |
| refactor | analyzer → planner → refactorer → validator | Claude + Codex |
MCP Integration for Codex
When you run init --codex, the MCP server is automatically registered:
# Verify MCP is registered
codex mcp list
# If not present, add manually:
codex mcp add ruflo -- npx ruflo mcp startSelf-Learning Workflow
1. LEARN: memory_search(query="task keywords") → Find similar patterns
2. COORD: swarm_init(topology="hierarchical") → Set up coordination
3. EXECUTE: YOU write code, run commands → Codex does real work
4. REMEMBER: memory_store(key, value, namespace="patterns") → Save for futureThe Intelligence Loop (ADR-050) automates this cycle through hooks. Each session automatically:
node .claude/helpers/hook-handler.cjs statsMCP Tools for Learning
| Tool | Purpose | When to Use |
|------|---------|-------------|
| memory_search | Semantic vector search | BEFORE starting any task |
| memory_store | Save patterns with embeddings | AFTER completing successfully |
| swarm_init | Initialize coordination | Start of complex tasks |
| agent_spawn | Register agent roles | Multi-agent workflows |
| neural_train | Train on patterns | Periodic improvement |
137+ Skills Available
| Category | Examples |
|----------|----------|
| V3 Core | $v3-security-overhaul, $v3-memory-unification, $v3-performance-optimization |
| AgentDB | $agentdb-vector-search, $agentdb-optimization, $agentdb-learning |
| Swarm | $swarm-orchestration, $swarm-advanced, $hive-mind-advanced |
| GitHub | $github-code-review, $github-workflow-automation, $github-multi-repo |
| SPARC | $sparc-methodology, $sparc:architect, $sparc:coder, $sparc:tester |
| Flow Nexus | $flow-nexus-neural, $flow-nexus-swarm, $flow-nexus:workflow |
| Dual-Mode | $dual-spawn, $dual-coordinate, $dual-collect |
Vector Search Details
- Score > 0.7: Strong match, use pattern
- Score 0.5-0.7: Partial match, adapt
- Score < 0.5: Weak match, create new
</details>
Basic Usage
# Initialize project
npx ruflo@latest init
# Start MCP server for Claude Code integration
npx ruflo@latest mcp start
# Spawn a coding agent
npx ruflo@latest agent spawn -t coder --name my-coder
# Launch a hive-mind swarm with an objective
npx ruflo@latest hive-mind spawn "Implement user authentication"
# List available agent types
npx ruflo@latest agent listUpgrading
# Update helpers and statusline (preserves your data)
npx ruflo@latest init upgrade
# Update AND add any missing skills/agents/commands
npx ruflo@latest init upgrade --add-missingThe --add-missing flag automatically detects and installs new skills, agents, and commands that were added in newer versions, without overwriting your existing customizations.
Claude Code MCP Integration
Add ruflo as an MCP server for seamless integration:
# Add ruflo MCP server to Claude Code
claude mcp add ruflo -- npx -y ruflo@latest mcp start
# Verify installation
claude mcp listOnce added, Claude Code can use all 313 ruflo MCP tools directly:
swarm_init - Initialize agent swarmsagent_spawn - Spawn specialized agentsmemory_search - Search patterns with HNSW vector searchhooks_route - Intelligent task routing---