Skip to content
Development
Command

/start

Start a new pair programming session with AI assistance.

From plugin
agentic-flow
788133 skills103 agents133 commands2 MCP
Install
$ npx -y skills add ruvnet/agentic-flow --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/start

Context preview

What this command does when you run it.

Start a new pair programming session with AI assistance.

Command definition

start.md

pair --start

Start a new pair programming session with AI assistance.

Usage

claude-flow pair --start [options]

Options

  • `--agent <name>` - AI pair partner (default: auto-select)
  • `--mode <type>` - Programming mode: driver, navigator, switch
  • `--verify` - Enable real-time verification
  • `--threshold <0-1>` - Verification threshold (default: 0.95)
  • `--focus <area>` - Focus area: refactor, test, debug, implement
  • `--language <lang>` - Primary programming language
  • `--review` - Enable continuous code review
  • `--test` - Run tests after each change
  • `--interval <time>` - Switch interval for switch mode (default: 10m)

Examples

Basic Start

claude-flow pair --start

Expert Refactoring Session

claude-flow pair --start \
  --agent senior-dev \
  --focus refactor \
  --verify \
  --threshold 0.98

TDD Session

claude-flow pair --start \
  --mode driver \
  --focus test \
  --test \
  --language javascript

Debugging Session

claude-flow pair --start \
  --agent debugger-expert \
  --focus debug \
  --review

Session Initialization

When starting a session, the system:

1. **Selects AI Partner** - Matches expertise to your needs 2. **Configures Environment** - Sets up verification and testing 3. **Establishes Roles** - Defines driver/navigator responsibilities 4. **Loads Context** - Imports project information 5. **Begins Monitoring** - Tracks quality metrics

Modes Explained

Driver Mode

You write code while AI:

  • Provides real-time suggestions
  • Reviews changes instantly
  • Catches potential issues
  • Suggests improvements

Navigator Mode

AI writes code while you:

  • Provide high-level guidance
  • Review generated code
  • Request modifications
  • Control direction

Switch Mode

Automatically alternates roles:

  • Default: 10-minute intervals
  • Configurable timing
  • Smooth handoffs
  • Shared context

Focus Areas

Refactor

  • Code structure improvements
  • Pattern implementation
  • Performance optimization
  • Readability enhancement

Test

  • Test-driven development
  • Test coverage improvement
  • Edge case identification
  • Mock creation

Debug

  • Issue identification
  • Root cause analysis
  • Fix suggestions
  • Prevention strategies

Implement

  • Feature development
  • API creation
  • UI components
  • Business logic

Quality Features

Verification

  • Real-time truth scoring
  • Automatic rollback on failures
  • Quality gates before commits
  • Continuous monitoring

Code Review

  • Instant feedback
  • Best practice enforcement
  • Security scanning
  • Performance analysis

Testing

  • Automatic test generation
  • Coverage tracking
  • Integration suggestions
  • Regression prevention

Session Output

๐Ÿ‘ฅ Pair Programming Session Started
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Session ID: pair_1755021234567
Partner: senior-dev
Mode: Switch (10m intervals)
Focus: Implementation
Language: JavaScript

Verification: โœ… Enabled (0.95 threshold)
Testing: โœ… Auto-run on save
Review: โœ… Continuous

Current Role: DRIVER (you)
Navigator: senior-dev is ready...

๐Ÿ“ Workspace: /workspaces/my-project
๐Ÿ“Š Truth Score: 0.972 โœ…
๐Ÿงช Test Coverage: 84%

Type /help for commands or start coding...

Background Execution

Start sessions in background for long-running collaboration:

# Start in background
claude-flow pair --start --background

# Monitor session
claude-flow pair status

# View session output
claude-flow pair output session_id

# End background session
claude-flow pair --end session_id

Integration

With Git

claude-flow pair --start --git --auto-commit

With CI/CD

claude-flow pair --start --ci --non-interactive

With IDE

claude-flow pair --start --ide vscode

Best Practices

1. **Clear Goals** - Define session objectives 2. **Appropriate Mode** - Choose based on task 3. **Enable Verification** - For critical code 4. **Regular Testing** - Maintain quality 5. **Session Notes** - Document decisions

Related Commands

  • `pair --end` - End current session
  • `pair --status` - Check session status
  • `pair --history` - View past sessions
  • `pair --config` - Configure defaults
Read more
Ships withagentic-flow

Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.

Get the whole plugin