| layout | default |
|---|---|
| title | Chapter 1: Getting Started |
| nav_order | 1 |
| parent | Claude Flow Tutorial |
Welcome to Chapter 1: Getting Started. In this part of Claude Flow Tutorial: Multi-Agent Orchestration, MCP Tooling, and V3 Module Architecture, you will build an intuitive mental model first, then move into concrete implementation details and practical production tradeoffs.
This chapter gets Claude Flow running quickly and sets expectations for how it should be used.
- install and initialize Claude Flow CLI paths
- understand project positioning around orchestration versus execution
- validate first swarm and memory commands
- establish a safe baseline before scaling complexity
- ensure Node.js 18+ (V2) or Node.js 20+ (V3 docs) for the selected flow
- initialize with
npx claude-flow@alpha init --wizardor equivalent install path - run basic swarm setup and status checks
- test one memory store/search loop
- pair with your coding host while keeping execution responsibility explicit in your workflow
You now have a practical bootstrap path and a clearer operating model for early adoption.
Next: Chapter 2: V3 Architecture and ADRs
The initializeV3Swarm function in v3/index.ts handles a key part of this chapter's functionality:
* @example
* ```typescript
* import { initializeV3Swarm } from './v3';
*
* const swarm = await initializeV3Swarm();
* await swarm.spawnAllAgents();
*
* // Submit a task
* const task = swarm.submitTask({
* type: 'implementation',
* title: 'Implement feature X',
* description: 'Detailed description...',
* domain: 'core',
* phase: 'phase-2-core',
* priority: 'high'
* });
* ```
*/
export async function initializeV3Swarm(config?: Partial<SwarmConfig>): Promise<ISwarmHub> {
const { createSwarmHub } = await import('./coordination/swarm-hub');
const swarm = createSwarmHub();
await swarm.initialize(config);
return swarm;
}
/**
* Get the current V3 swarm instance
* Creates a new one if none exists
*/
export async function getOrCreateSwarm(): Promise<ISwarmHub> {
const { getSwarmHub } = await import('./coordination/swarm-hub');
const swarm = getSwarmHub();This function is important because it defines how Claude Flow Tutorial: Multi-Agent Orchestration, MCP Tooling, and V3 Module Architecture implements the patterns covered in this chapter.
flowchart TD
A[initializeV3Swarm]