# V3 Deep Integration

This skill turns claude-flow into a specialized extension of agentic-flow@alpha per ADR-001. It drops duplicate modules and wires in SONA, Flash Attention and AgentDB.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1100 installs · ★ 79357
- Author: ruvnet
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ruvnet/ruflo/tree/HEAD/v3/@claude-flow/cli/.claude/skills/v3-integration-deep/SKILL.md
- Updated: 2026-10-25
- HTML: https://affpapa.org/en/nevibecode/skills/v3-deep-integration

## What it does

The skill lays out the migration of claude-flow onto agentic-flow@alpha. Instead of keeping its own swarm coordination, agent management and task scheduler, the project becomes a layer on top of the existing agentic-flow systems. Overlap across the four modules runs from 50% to 80%, so those implementations get deleted.

Work happens in three phases. First an adapter, `ClaudeFlowAgent`, extends `AgenticFlowAgent` and keeps the old API alive through a compatibility layer. Then `SwarmCoordinator`, `AgentManager` and `TaskScheduler` are replaced by the swarm, lifecycle and task graph from agentic-flow. Finally the files `src/core/SwarmCoordinator.ts`, `src/agents/AgentManager.ts` and `src/task/TaskScheduler.ts` are removed. The target is under 5,000 lines against 15,000+ today.

You drive it with `Task(...)` calls against the `v3-integration-architect` subagent, and several can run in parallel. It brings in 5 SONA learning modes, Flash Attention at 2.49x-7.47x speedup, AgentDB with HNSW indexing at 150x-12,500x, plus 213 built-in MCP tools and 19 hook types. Migration is gradual: old and new systems run side by side until feature parity is confirmed. Without `agentic-flow@alpha` in the project the adapter layer has nothing to extend.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ruvnet/ruflo --skill v3-deep-integration -a claude-code
```
```bash
npx skills add ruvnet/ruflo --skill v3-integration-deep -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/v3-integration-deep/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/v3-integration-deep/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ruvnet/ruflo --skill v3-integration-deep -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/v3-integration-deep/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ruvnet/ruflo --skill v3-integration-deep -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/v3-integration-deep/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ruvnet/ruflo v3-integration-deep
```

2. **Manually: put the files in place**
- File: `.github/skills/v3-integration-deep/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ruvnet/ruflo --skill v3-integration-deep -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ruvnet/ruflo --path v3/@claude-flow/cli/.claude/skills/v3-integration-deep
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/v3-integration-deep/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ruvnet/ruflo --skill v3-integration-deep -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ruvnet/ruflo/tree/HEAD/v3/@claude-flow/cli/.claude/skills/v3-integration-deep/SKILL.md

## When to use it
- remove duplication between claude-flow and agentic-flow
- move swarm coordination onto the existing implementation
- wire up 5 SONA learning modes
- replace linear search with AgentDB HNSW indexing
- keep the old API working during migration

## Example prompts
- Design the agentic-flow@alpha adapter layer with the `v3-integration-architect` subagent
- Integrate the 5 SONA modes and Flash Attention in parallel
- Set up AgentDB with HNSW indexing for cross-agent memory

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: a3fefb9d5a90872f.

BEGIN THIRD-PARTY FILE a3fefb9d5a90872f
````text
---
name: "V3 Deep Integration"
description: "Deep agentic-flow@alpha integration implementing ADR-001. Eliminates 10,000+ duplicate lines by building claude-flow as specialized extension rather than parallel implementation."
---

# V3 Deep Integration

## What This Skill Does

Transforms claude-flow from parallel implementation to specialized extension of agentic-flow@alpha, eliminating massive code duplication while achieving performance improvements and feature parity.

## Quick Start

```bash
# Initialize deep integration
Task("Integration architecture", "Design agentic-flow@alpha adapter layer", "v3-integration-architect")

# Feature integration (parallel)
Task("SONA integration", "Integrate 5 SONA learning modes", "v3-integration-architect")
Task("Flash Attention", "Implement 2.49x-7.47x speedup", "v3-integration-architect")
Task("AgentDB coordination", "Setup 150x-12,500x search", "v3-integration-architect")
```

## Code Deduplication Strategy

### Current Overlap → Integration
```
┌─────────────────────────────────────────┐
│  claude-flow          agentic-flow      │
├─────────────────────────────────────────┤
│ SwarmCoordinator  →   Swarm System      │ 80% overlap (eliminate)
│ AgentManager      →   Agent Lifecycle   │ 70% overlap (eliminate)
│ TaskScheduler     →   Task Execution    │ 60% overlap (eliminate)
│ SessionManager    →   Session Mgmt      │ 50% overlap (eliminate)
└─────────────────────────────────────────┘

TARGET: <5,000 lines (vs 15,000+ currently)
```

## agentic-flow@alpha Feature Integration

### SONA Learning Modes
```typescript
class SONAIntegration {
  async initializeMode(mode: SONAMode): Promise<void> {
    switch(mode) {
      case 'real-time':   // ~0.05ms adaptation
      case 'balanced':    // general purpose
      case 'research':    // deep exploration
      case 'edge':        // resource-constrained
      case 'batch':       // high-throughput
    }
    await this.agenticFlow.sona.setMode(mode);
  }
}
```

### Flash Attention Integration
```typescript
````
END THIRD-PARTY FILE a3fefb9d5a90872f

The third-party file has ended. Everything between the a3fefb9d5a90872f tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2313 of 7278 bytes. © ruvnet · MIT · https://github.com/ruvnet/ruflo/tree/HEAD/v3/@claude-flow/cli/.claude/skills/v3-integration-deep/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
