Files
wehub-resource-sync 23f7624596
ADR-166 MCP Bridge Security Lock / Static-source security lock (push) Failing after 0s
ADR-166 MCP Bridge Security Lock / Compose default binds loopback + Mongo has auth (push) Failing after 2s
CodeQL Advanced / Analyze (rust) (push) Failing after 0s
ADR-166 MCP Bridge Security Lock / plugin-agent-federation bindHost default (push) Failing after 1s
ADR-166 MCP Bridge Security Lock / Runtime behavior — 401 + terminal gate + fail-closed (push) Failing after 4s
business-pods-smoke / smoke (push) Failing after 1s
all-plugins-smoke / smoke-all (push) Failing after 2s
CI/CD Pipeline / Security & Code Quality (push) Failing after 1s
CI/CD Pipeline / Test Suite (ubuntu-latest) (push) Failing after 1s
CI/CD Pipeline / Build & Package (macos-latest) (push) Has been skipped
CI/CD Pipeline / Build & Package (ubuntu-latest) (push) Has been skipped
CI/CD Pipeline / Build & Package (windows-latest) (push) Has been skipped
CI/CD Pipeline / Documentation & Examples (push) Failing after 1s
Clone Tracker (14-day rolling) / Snapshot clones for ruflo ecosystem (push) Failing after 1s
CodeQL Advanced / Analyze (actions) (push) Failing after 1s
CodeQL Advanced / Analyze (javascript-typescript) (push) Failing after 1s
federation-peer-rust / stable-noop (push) Failing after 1s
metaharness-ci / score (push) Failing after 1s
metaharness-ci / router-compat (push) Failing after 0s
metaharness-ci / similarity-tests (push) Failing after 0s
no-agentbbs-smoke / smoke-without-agentbbs (push) Failing after 1s
V3 CI/CD Pipeline / Build V3 (windows-latest) (push) Has been skipped
codex-integration-audit / Codex integration audit (push) Failing after 1s
helpers-manifest-guard / guard (push) Failing after 1s
🔗 Cross-Agent Integration Tests / 🤝 Agent Coordination Tests (push) Has been skipped
🔗 Cross-Agent Integration Tests / 🧠 Memory Sharing Integration (push) Has been skipped
🔗 Cross-Agent Integration Tests / 🛡️ Fault Tolerance Tests (push) Has been skipped
🔗 Cross-Agent Integration Tests / ⚡ Performance Integration Tests (push) Has been skipped
metaharness-ci / mcp-scan (push) Failing after 1s
metaharness-ci / eject-dryrun (push) Failing after 1s
metaharness-ci / metaharness-real-data (push) Failing after 0s
no-cli-optdep-bloat-2561 / guard (push) Failing after 1s
no-metaharness-smoke / smoke-without-metaharness (push) Failing after 1s
no-phantom-agentic-flow-subpath / guard (push) Failing after 1s
🔄 Automated Rollback Manager / 🚨 Failure Detection (push) Failing after 1s
V3 CI/CD Pipeline / Plugin hooks smoke / ubuntu-latest / Node 22 (push) Failing after 1s
V3 CI/CD Pipeline / ruflo-graph-intelligence build + test smoke (#2044, ADR-123) (push) Failing after 1s
CVE Audit Gate / Audit root (critical-blocking) (push) Failing after 2s
cost-tracker-smoke / smoke (push) Failing after 3s
oia-audit-weekly / audit (push) Failing after 2s
ruflo-agent-smoke / ruflo-agent structural smoke (push) Failing after 1s
📊 Status Badges Update / 📊 Update Status Badges (push) Failing after 1s
V3 CI/CD Pipeline / Static regression guards (#2267 YAML + (push) Failing after 1s
V3 CI/CD Pipeline / Test V3 Packages (push) Failing after 0s
V3 CI/CD Pipeline / agent_execute provider routing smoke (#2042) (push) Failing after 0s
CVE Audit Gate / Audit v3 (critical-blocking) (push) Failing after 1s
federation-peer-rust / stable-native (push) Failing after 2s
🔗 Cross-Agent Integration Tests / 🚀 Integration Test Setup (push) Failing after 2s
neural-trader-smoke / runtime-smoke (push) Failing after 1s
V3 CI/CD Pipeline / Build V3 (macos-latest) (push) Has been skipped
V3 CI/CD Pipeline / Build V3 (ubuntu-latest) (push) Has been skipped
V3 CI/CD Pipeline / Type Check V3 (push) Failing after 1s
V3 CI/CD Pipeline / Smoke (no better-sqlite3) / ubuntu-latest / Node 24 (push) Failing after 1s
V3 CI/CD Pipeline / Smoke (no better-sqlite3) / ubuntu-latest / Node 22 (push) Failing after 2s
V3 CI/CD Pipeline / browser rvf create flag smoke (#2015) (push) Failing after 0s
V3 CI/CD Pipeline / Dependency review (#2046) (push) Has been skipped
V3 CI/CD Pipeline / Supply-chain audit (#2046) (push) Failing after 0s
V3 CI/CD Pipeline / witness marker drift smoke (#2021) (push) Failing after 1s
V3 CI/CD Pipeline / neural-trader portfolio CG smoke (#2068, ADR-126 Phase 3) (push) Failing after 1s
V3 CI/CD Pipeline / neural-trader backtest signing smoke (#2068, ADR-126 Phase 4) (push) Failing after 1s
V3 CI/CD Pipeline / kg-extract type-import classification smoke (#2049) (push) Failing after 0s
V3 CI/CD Pipeline / witness verify precondition smoke (#1880) (push) Failing after 2s
V3 CI/CD Pipeline / neural-trader pipeline risk-gate smoke (#2068, ADR-126 Phase 5) (push) Failing after 0s
V3 CI/CD Pipeline / neural-trader feature attribution smoke (#2068, ADR-126 Phase 6) (push) Failing after 0s
V3 CI/CD Pipeline / plugin-registry signature verification smoke (#1922, CWE-347) (push) Failing after 4s
V3 CI/CD Pipeline / memory stats legacy-DB smoke (#2120) (push) Failing after 4s
V3 CI/CD Pipeline / github deprecated actions smoke (#2089, ADR-127 Phase 3) (push) Failing after 1s
V3 CI/CD Pipeline / graph query + pathfinder smoke (ADR-130 P2+P5) (push) Has been skipped
V3 CI/CD Pipeline / graph trajectory hooks smoke (ADR-130 P3) (push) Has been skipped
V3 CI/CD Pipeline / graph plugin adapter smoke (ADR-130 P4) (push) Has been skipped
V3 CI/CD Pipeline / graph benchmark (ADR-130 P6) (push) Has been skipped
V3 CI/CD Pipeline / statusline generator delegation smoke (#2195) (push) Failing after 1s
V3 CI/CD Pipeline / wizard init regression guard (#2206 (push) Failing after 1s
V3 CI/CD Pipeline / memory no-stray-db smoke (ADR-125 P7) (push) Failing after 1s
V3 CI/CD Pipeline / github-safe injection smoke (#2089, ADR-127 Phase 1) (push) Failing after 1s
V3 CI/CD Pipeline / github actions pin smoke (#2089, ADR-127 Phase 1) (push) Failing after 1s
V3 CI/CD Pipeline / github attribution opt-in smoke (#2089, ADR-127 Phase 4) (push) Failing after 1s
V3 CI/CD Pipeline / pre-bash hook safety smoke (#2017) (push) Failing after 1s
V3 CI/CD Pipeline / Memory import smoke / ubuntu-latest (push) Failing after 0s
V3 CI/CD Pipeline / MCP protocol smoke / ubuntu-latest (push) Failing after 2s
V3 CI/CD Pipeline / ruvllm WASM auto-init smoke (#2086) (push) Failing after 4s
V3 CI/CD Pipeline / MCP paired-tool round-trip smoke (#1889) (push) Failing after 1s
V3 CI/CD Pipeline / Plugin package install-safety (#1902/#1903/#1904) (push) Failing after 1s
V3 CI/CD Pipeline / Tool description discoverability (ADR-112) (push) Failing after 3s
V3 CI/CD Pipeline / CLI npx-install smoke (#1147 / (22) (push) Failing after 1s
V3 CI/CD Pipeline / CLI npx-install smoke (#1147 / (24) (push) Failing after 1s
V3 CI/CD Pipeline / Windows hook shim smoke (#2132) / ubuntu-latest (push) Failing after 2s
V3 CI/CD Pipeline / Windows hook execution smoke (#2132) / ubuntu-latest (push) Failing after 1s
V3 CI/CD Pipeline / Windows init hooks smoke (#2132) / ubuntu-latest (push) Failing after 1s
V3 CI/CD Pipeline / Vector-index dimension audit (#1947) (push) Failing after 0s
V3 CI/CD Pipeline / Hook-command install safety (#1921) (push) Failing after 1s
V3 CI/CD Pipeline / ToolOutputGuardrail smoke (ADR-131, (push) Failing after 1s
V3 CI/CD Pipeline / init-bundle invariants smoke (#2095, ADR-128 Phase 5) (push) Failing after 1s
V3 CI/CD Pipeline / wasm provider bridge smoke (ADR-129 P1) (push) Failing after 2s
V3 CI/CD Pipeline / wasm gallery CRUD smoke (ADR-129 P3) (push) Failing after 1s
V3 CI/CD Pipeline / wasm plugin bridge smoke (ADR-129 P4) (push) Failing after 0s
V3 CI/CD Pipeline / wasm compose smoke (ADR-129 P2) (push) Failing after 4s
V3 CI/CD Pipeline / graph schema smoke (ADR-130 P1) (push) Failing after 0s
Validate Marketplace / validate (push) Failing after 1s
🔍 Verification Pipeline / 🚀 Setup Verification (push) Failing after 1s
🔍 Verification Pipeline / 🛡️ Security Verification (push) Has been skipped
🔍 Verification Pipeline / 📝 Code Quality (push) Has been skipped
🔍 Verification Pipeline / 🧪 Test Verification (${{ matrix.os }}, Node ${{ matrix.node }}) (push) Has been skipped
🔍 Verification Pipeline / 🏗️ Build Verification (push) Has been skipped
🔍 Verification Pipeline / 📚 Documentation Verification (push) Has been skipped
CVE Audit Gate / High-severity report (warn only) (push) Has been cancelled
🔄 Automated Rollback Manager / 🔄 Execute Rollback (push) Has been cancelled
🔄 Automated Rollback Manager / ✅ Post-Rollback Verification (push) Has been cancelled
🔄 Automated Rollback Manager / 📊 Rollback Monitoring (push) Has been cancelled
V3 CI/CD Pipeline / Windows init hooks smoke (#2132) / windows-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook execution smoke (#2132) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook execution smoke (#2132) / windows-latest (push) Has been cancelled
🔄 Automated Rollback Manager / ⏳ Manual Rollback Approval (push) Has been cancelled
V3 CI/CD Pipeline / MCP protocol smoke / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Memory import smoke / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook shim smoke (#2132) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows hook shim smoke (#2132) / windows-latest (push) Has been cancelled
V3 CI/CD Pipeline / Windows init hooks smoke (#2132) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Witness verify (signed manifest) / macos-latest (push) Has been cancelled
V3 CI/CD Pipeline / Witness verify (signed manifest) / ubuntu-latest (push) Has been cancelled
V3 CI/CD Pipeline / Witness verify (signed manifest) / windows-latest (push) Has been cancelled
V3 CI/CD Pipeline / Publish to npm (alpha) (push) Has been cancelled
V3 CI/CD Pipeline / Smoke (no better-sqlite3) / macos-latest / Node 22 (push) Has been cancelled
V3 CI/CD Pipeline / Plugin hooks smoke / macos-latest / Node 22 (push) Has been cancelled
CI/CD Pipeline / Deploy & Release (push) Has been cancelled
CI/CD Pipeline / CI Status (push) Has been cancelled
🔗 Cross-Agent Integration Tests / 📊 Integration Test Report (push) Has been cancelled
🔄 Automated Rollback Manager / 🔍 Pre-Rollback Validation (push) Has been cancelled
🔍 Verification Pipeline / ⚡ Performance Verification (push) Has been cancelled
🔍 Verification Pipeline / 📊 Verification Report (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:02:19 +08:00

14 KiB

ADR-014: Cross-Platform Workers System

Status

Implemented (Extended with CLI Integration 2026-01-06)

Date

2026-01-05

Last Updated

2026-01-06

Context

V3 needs a robust background worker system for:

  1. Continuous monitoring of system health, security, and performance
  2. Automatic DDD and ADR compliance tracking
  3. Pattern consolidation and learning optimization
  4. Git status tracking and swarm coordination
  5. Cache cleanup and resource management

V2 relies on shell scripts (.claude/helpers/) which are:

  • Platform-specific (Linux/macOS only)
  • Difficult to test
  • Not integrated with the TypeScript codebase
  • Lacking persistence and historical tracking

Decision

1. Create TypeScript Worker System in @claude-flow/hooks

A cross-platform worker system with:

  • 10 Built-in Workers: performance, health, security, adr, ddd, patterns, learning, cache, git, swarm
  • WorkerManager Class: Central orchestration with EventEmitter pattern
  • Persistence: State saved to disk, survives restarts
  • Historical Metrics: Track trends over time (max 1000 entries)
  • Alert System: Threshold-based notifications
  • Statusline Integration: Real-time metrics for display

2. Architecture

@claude-flow/hooks/src/workers/
├── index.ts           # WorkerManager, all worker implementations
├── mcp-tools.ts       # MCP tool definitions for workers
├── session-hook.ts    # Claude Code session integration
└── __tests__/         # Comprehensive test suite
    └── workers.test.ts

3. Worker Manager Features

class WorkerManager extends EventEmitter {
  // Core methods
  register(name: string, handler: WorkerHandler): void;
  async initialize(): Promise<void>;
  async start(options?: StartOptions): Promise<void>;
  async stop(): Promise<void>;
  async runWorker(name: string): Promise<WorkerResult>;
  async runAll(concurrency?: number): Promise<WorkerResult[]>;

  // Persistence
  async loadState(): Promise<boolean>;
  async saveState(): Promise<void>;

  // Alerts
  setThresholds(worker: string, thresholds: AlertThreshold[]): void;
  getAlerts(limit?: number): WorkerAlert[];
  clearAlerts(): void;

  // History
  getHistory(worker?: string, limit?: number): HistoricalMetric[];

  // Statusline
  getStatuslineData(): StatuslineData;
  getStatuslineString(): string;
  async exportStatusline(): Promise<void>;
}

4. Built-in Workers

Worker Interval Description
performance 5 min Memory, CPU, V3 code stats
health 5 min System health monitoring
security 30 min Secret/vulnerability scanning
adr 15 min ADR compliance checking
ddd 10 min DDD pattern tracking
patterns 15 min Pattern consolidation
learning 30 min SONA optimization
cache 1 hour Temp file cleanup
git 5 min Branch/commit status
swarm 1 min Agent coordination

5. Alert Thresholds

const DEFAULT_THRESHOLDS = {
  health: [
    { metric: 'memory.usedPct', warning: 80, critical: 95, comparison: 'gt' },
    { metric: 'disk.usedPct', warning: 85, critical: 95, comparison: 'gt' },
  ],
  security: [
    { metric: 'secrets', warning: 1, critical: 5, comparison: 'gt' },
    { metric: 'vulnerabilities', warning: 10, critical: 50, comparison: 'gt' },
  ],
  adr: [
    { metric: 'compliance', warning: 70, critical: 50, comparison: 'lt' },
  ],
};

6. MCP Tools

8 MCP tools for Claude Code integration:

  • worker/run - Run specific worker
  • worker/status - Get worker status
  • worker/alerts - Get recent alerts
  • worker/history - Get historical metrics
  • worker/statusline - Get statusline data
  • worker/run-all - Run all workers
  • worker/start - Start scheduling
  • worker/stop - Stop and save

7. Session Integration

// Auto-start on session begin
export async function onSessionStart(config?: SessionHookConfig): Promise<SessionHookResult>;

// Clean shutdown on session end
export async function onSessionEnd(manager: WorkerManager): Promise<void>;

8. Security Hardening

Implemented safeguards:

  • safePath() - Path traversal prevention
  • safeReadFile() - File size limits (10MB)
  • MAX_RECURSION_DEPTH - Depth limit (20)
  • MAX_CONCURRENCY - Batch limit (5)
  • Symlink skipping
  • Cache deletion path validation

Consequences

Positive

  • Cross-platform (Linux, macOS, Windows)
  • Type-safe TypeScript implementation
  • Comprehensive test coverage
  • Persistence across restarts
  • Historical trend tracking
  • Threshold-based alerting
  • MCP tool integration
  • Statusline export for shell consumption
  • Security hardened

Negative

  • Requires Node.js runtime (not shell-only)
  • Additional memory for history storage
  • Slightly more complex than shell scripts

Trade-offs

  • JSON persistence vs SQLite: Chose JSON for simplicity and portability
  • Fixed intervals vs dynamic: Chose fixed for predictability
  • In-memory history vs disk: Chose in-memory with periodic save for performance

Performance Metrics

Metric Target Achieved
All workers run time <2s 527ms
Individual worker <500ms Max 301ms (security)
State save time <100ms <50ms
Memory overhead <50MB ~5MB

Test Coverage

Tests:       45 passed (45)
Duration:    1.2s

Coverage:
- WorkerManager: Unit tests
- Alert System: Threshold tests
- Historical Metrics: Recording tests
- Statusline: Export tests
- Persistence: Save/load tests
- Security: Boundary tests
- Built-in Workers: Integration tests

Usage Examples

Basic Usage

import { createWorkerManager } from '@claude-flow/hooks';

const manager = createWorkerManager('/path/to/project');
await manager.initialize();
await manager.start();

// Run specific worker
const result = await manager.runWorker('security');
console.log(result.data);

// Get alerts
const alerts = manager.getAlerts(10);

// Get statusline
const statusline = manager.getStatuslineString();
// "👷0/10 │ 🟢15% │ 🛡️0 │ 📋71% │ 🏗️13% │ ⚡1.0x"

MCP Integration

import { createWorkerToolHandler, workerMCPTools } from '@claude-flow/hooks';

// Register tools with MCP server
const handler = createWorkerToolHandler(manager);

// Handle tool call
const result = await handler('worker/run', { worker: 'health' });

Session Hook

import { onSessionStart, formatSessionStartOutput } from '@claude-flow/hooks';

const result = await onSessionStart({
  projectRoot: '/path/to/project',
  autoStart: true,
  runInitialScan: true,
  workers: ['health', 'security', 'git'],
});

console.log(formatSessionStartOutput(result));
// [Workers] System initialized
//   ✓ Health: healthy
//   ✓ Security: clean (0 issues)
//   ├─ Branch: v3
//   └─ Uncommitted: 5
// [Workers] Background scheduling started

References

  • V2 Shell Scripts: .claude/helpers/worker-manager.sh
  • ADR-002: Domain-Driven Design Structure
  • ADR-006: Unified Memory Service
  • ADR-012: MCP Security Features

Extension: CLI Integration (2026-01-06)

CLI Hooks Worker Subcommand

Extended the worker system with CLI integration via hooks worker command in @claude-flow/cli.

New Worker Types (12 Total)

In addition to the original system workers, the CLI exposes 12 trigger-based workers:

Worker Priority Est. Time Description
ultralearn normal 60s Deep knowledge acquisition and learning
optimize high 30s Performance optimization and tuning
consolidate low 20s Memory consolidation and cleanup
predict normal 15s Predictive preloading and anticipation
audit critical 45s Security analysis and vulnerability scanning
map normal 30s Codebase mapping and architecture analysis
preload low 10s Resource preloading and cache warming
deepdive normal 60s Deep code analysis and examination
document normal 45s Auto-documentation generation
refactor normal 30s Code refactoring suggestions
benchmark normal 60s Performance benchmarking
testgaps normal 30s Test coverage analysis

CLI Commands

# List all available workers
claude-flow hooks worker list

# Detect triggers from prompt text (<5ms target)
claude-flow hooks worker detect --prompt "optimize performance"

# Auto-dispatch when triggers match (confidence ≥0.6)
claude-flow hooks worker detect --prompt "deep dive" --auto-dispatch --min-confidence 0.6

# Manually dispatch a worker
claude-flow hooks worker dispatch --trigger refactor --context "auth module"

# Check worker status
claude-flow hooks worker status

# Cancel a running worker
claude-flow hooks worker cancel --id worker_refactor_1_abc123

MCP Tools Added

5 new MCP tools in @claude-flow/cli/src/mcp-tools/hooks-tools.ts:

  • hooks/worker-list - List all 12 background workers
  • hooks/worker-dispatch - Dispatch a worker by trigger type
  • hooks/worker-status - Get status of running workers
  • hooks/worker-detect - Detect worker triggers from prompt text
  • hooks/worker-cancel - Cancel a running worker

UserPromptSubmit Integration

Workers are automatically triggered via the UserPromptSubmit hook in .claude/settings.json:

{
  "hooks": {
    "UserPromptSubmit": [{
      "matcher": ".*",
      "hooks": [{
        "type": "command",
        "timeout": 6000,
        "command": "claude-flow hooks worker detect --prompt \"$USER_PROMPT\" --auto-dispatch --min-confidence 0.6"
      }]
    }]
  }
}

Parser Enhancement

Fixed nested subcommand routing in parser.ts to support 3 levels of subcommands:

  • Level 1: hooks
  • Level 2: worker
  • Level 3: list, dispatch, status, detect, cancel

Performance Targets

Metric Target Status
Trigger detection <5ms
Worker spawn <50ms
Max concurrent 10

Extension: Node.js Worker Daemon (2026-01-07)

Daemon Service Architecture

Extended the worker system with a full Node.js daemon service in @claude-flow/cli/src/services/worker-daemon.ts. This replaces the shell-based helpers in .claude/helpers/ with a cross-platform TypeScript implementation.

Key Components

Component Location Purpose
WorkerDaemon services/worker-daemon.ts EventEmitter-based daemon service
daemon command commands/daemon.ts CLI with start/stop/status/trigger/enable
Session integration hooks-tools.ts Auto-start on SessionStart, auto-stop on SessionEnd
Init settings init/settings-generator.ts Daemon config in v3 init output

Daemon CLI Commands

# Start the daemon (runs workers on intervals)
npx claude-flow@v3alpha daemon start
npx claude-flow@v3alpha daemon start --quiet  # Run once and exit

# Stop the daemon
npx claude-flow@v3alpha daemon stop

# Check status and worker history
npx claude-flow@v3alpha daemon status

# Manually trigger a worker
npx claude-flow@v3alpha daemon trigger <worker>
npx claude-flow@v3alpha daemon trigger map --force

# Enable/disable workers
npx claude-flow@v3alpha daemon enable map audit optimize
npx claude-flow@v3alpha daemon enable --all

Worker Intervals (5 Enabled by Default)

Worker Interval Priority Description
map 5min normal Codebase structure mapping
audit 10min critical Security vulnerability scanning
optimize 15min high Performance optimization analysis
consolidate 30min low Memory consolidation and cleanup
testgaps 20min normal Test coverage gap analysis
predict 10min normal Predictive preloading (disabled by default)
document 30min low Auto-documentation (disabled by default)

Metrics Output

Workers write JSON metrics to .claude-flow/metrics/:

.claude-flow/metrics/
├── codebase-map.json      # map worker output
├── security-audit.json    # audit worker output
├── performance.json       # optimize worker output
├── consolidation.json     # consolidate worker output
├── test-gaps.json         # testgaps worker output
├── agent-metrics.json     # Agent performance data
└── task-metrics.json      # Task execution data

State Persistence

Daemon state is persisted to .claude-flow/daemon-state.json:

interface DaemonState {
  workers: {
    [key: string]: {
      enabled: boolean;
      runCount: number;
      successCount: number;
      failureCount: number;
      lastRun?: Date;
      lastError?: string;
    };
  };
  pid?: number;
  startedAt?: string;
}

Session Integration

// Auto-start on SessionStart hook
hooks.SessionStart = [{
  hooks: [{
    type: 'command',
    command: 'npx claude-flow@v3alpha daemon start --quiet 2>/dev/null || true',
    timeout: 5000,
    continueOnError: true,
  }]
}];

Performance Characteristics

Metric Target Achieved
Daemon startup <500ms ~200ms
Worker execution <500ms ~1ms per worker
State persistence <50ms ~10ms
Memory overhead <50MB ~5MB

Package Integration

The root package.json now links claude-flow@v3alpha to the V3 CLI:

{
  "name": "claude-flow",
  "bin": {
    "claude-flow": "./v3/@claude-flow/cli/bin/cli.js"
  },
  "publishConfig": {
    "access": "public",
    "tag": "v3alpha"
  }
}

This means all V3 CLI commands (including daemon) are available via:

  • npx claude-flow@v3alpha daemon start
  • npx claude-flow@v3alpha daemon status
  • npx claude-flow@v3alpha hooks ...
  • etc.

Document Maintained By: Architecture Team Last Updated: 2026-01-07