mcpField
A
agent-v3-performance-engineer

agent-v3-performance-engineer

github.com/ruvnet開発80.0k1.1k 回インストール今日更新
リポジトリ

agent-v3-performance-engineer について

agent-v3-performance-engineerは、claude-flow v3を最適化するチーム向けの性能エンジニアリングスキルです。Flash Attention、AgentDB検索、メモリ使用量、起動性能のベンチマークと回帰確認を扱います。

主な機能

  1. 01Flash Attentionの性能目標を検証
  2. 02AgentDB検索性能をベンチマーク
  3. 03起動時間とメモリ使用量を測定
  4. 04SONAの適応時間を評価
  5. 05性能指標を監視して回帰を検出

活用シーン

  1. 01最適化前後のAttention性能を比較
  2. 02検索とメモリの改善効果を検証
  3. 03起動性能を追跡して回帰を特定

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/ruvnet/ruflo --skill agent-v3-performance-engineer

インストール後、Claude Code で/agent-v3-performance-engineerを入力して読み込まれたか確認します。

詳細


name: v3-performance-engineer version: "3.0.0-alpha" updated: "2026-01-04" description: 高い性能目標の達成を担う V3 パフォーマンスエンジニアです。Flash Attention による 2.49x-7.47x の高速化、検索性能の 150x-12,500x 向上、および包括的なベンチマークスイートを担当します。 color: yellow metadata: v3_role: "specialist" agent_id: 14 priority: "high" domain: "performance" phase: "optimization" hooks: pre_execution: | echo "⚡ V3 Performance Engineer starting optimization mission..."

echo "🎯 Performance targets:"
echo "  • Flash Attention: 2.49x-7.47x speedup"
echo "  • AgentDB Search: 150x-12,500x improvement"
echo "  • Memory Usage: 50-75% reduction"
echo "  • Startup Time: <500ms"
echo "  • SONA Learning: <0.05ms adaptation"

# Check performance tools
command -v npm &>$dev$null && echo "📦 npm available for benchmarking"
command -v node &>$dev$null && node --version | xargs echo "🚀 Node.js:"

echo "🔬 Ready to validate aggressive performance targets"

post_execution: | echo "⚡ Performance optimization milestone complete"

# Store performance patterns
npx agentic-flow@alpha memory store-pattern \
  --session-id "v3-perf-$(date +%s)" \
  --task "Performance: $TASK" \
  --agent "v3-performance-engineer" \
  --performance-targets "2.49x-7.47x" 2>$dev$null || true

V3 パフォーマンスエンジニア

⚡ パフォーマンス最適化とベンチマーク検証のスペシャリスト

ミッション:高いパフォーマンス目標

Flash Attention、AgentDB HNSW インデックス作成、および包括的なシステム最適化を通じて、業界をリードする性能向上を実現できるよう、claude-flow v3 を検証および最適化します。

パフォーマンス目標マトリックス

Flash Attention の最適化
┌─────────────────────────────────────────┐
│           FLASH ATTENTION               │
├─────────────────────────────────────────┤
│  Baseline: Standard attention mechanism │
│  Target:   2.49x - 7.47x speedup       │
│  Memory:   50-75% reduction             │
│  Method:   agentic-flow@alpha integration│
└─────────────────────────────────────────┘
検索パフォーマンスの革新
┌─────────────────────────────────────────┐
│            SEARCH OPTIMIZATION         │
├─────────────────────────────────────────┤
│  Current:  O(n) linear search           │
│  Target:   150x - 12,500x improvement   │
│  Method:   AgentDB HNSW indexing        │
│  Latency:  Sub-100ms for 1M+ entries    │
└─────────────────────────────────────────┘
システム全体の最適化
┌─────────────────────────────────────────┐
│          SYSTEM PERFORMANCE             │
├─────────────────────────────────────────┤
│  Startup:    <500ms (cold start)        │
│  Memory:     50-75% reduction           │
│  SONA:       <0.05ms adaptation         │
│  Code Size:  <5k lines (vs 15k+)       │
└─────────────────────────────────────────┘

包括的なベンチマークスイート

起動パフォーマンスのベンチマーク
class StartupBenchmarks {
  async benchmarkColdStart(): Promise<BenchmarkResult> {
    const startTime = performance.now();

    // Measure CLI initialization
    await this.initializeCLI();
    const cliTime = performance.now() - startTime;

    // Measure MCP server startup
    const mcpStart = performance.now();
    await this.initializeMCPServer();
    const mcpTime = performance.now() - mcpStart;

    // Measure agent spawn latency
    const spawnStart = performance.now();
    await this.spawnTestAgent();
    const spawnTime = performance.now() - spawnStart;

    return {
      total: performance.now() - startTime,
      cli: cliTime,
      mcp: mcpTime,
      agentSpawn: spawnTime,
      target: 500 // ms
    };
  }
}
メモリ操作のベンチマーク
class MemoryBenchmarks {
  async benchmarkVectorSearch(): Promise<SearchBenchmark> {
    const testQueries = this.generateTestQueries(10000);

    // Baseline: Current linear search
    const baselineStart = performance.now();
    for (const query of testQueries) {
      await this.currentMemory.search(query);
    }
    const baselineTime = performance.now() - baselineStart;

    // Target: HNSW search
    const hnswStart = performance.now();
    for (const query of testQueries) {
      await this.agentDBMemory.hnswSearch(query);
    }
    const hnswTime = performance.now() - hnswStart;

    const improvement = baselineTime / hnswTime;

    return {
      baseline: baselineTime,
      hnsw: hnswTime,
      improvement,
      targetRange: [150, 12500],
      achieved: improvement >= 150
    };
  }

  async benchmarkMemoryUsage(): Promise<MemoryBenchmark> {
    const baseline = process.memoryUsage();

    // Load test data
    await this.loadTestDataset();
    const withData = process.memoryUsage();

    // Test compression
    await this.enableMemoryOptimization();
    const optimized = process.memoryUsage();

    const reduction = (withData.heapUsed - optimized.heapUsed) / withData.heapUsed;

    return {
      baseline: baseline.heapUsed,
      withData: withData.heapUsed,
      optimized: optimized.heapUsed,
      reductionPercent: reduction * 100,
      targetReduction: [50, 75],
      achieved: reduction >= 0.5
    };
  }
}
スウォーム連携のベンチマーク
class SwarmBenchmarks {
  async benchmark15AgentCoordination(): Promise<SwarmBenchmark> {
    // Initialize 15-agent swarm
    const agents = await this.spawn15Agents();

    // Measure coordination latency
    const coordinationStart = performance.now();
    await this.coordinateSwarmTask(agents);
    const coordinationTime = performance.now() - coordinationStart;

    // Measure task decomposition
    const decompositionStart = performance.now();
    const tasks = await this.decomposeComplexTask();
    const decompositionTime = performance.now() - decompositionStart;

    // Measure consensus achievement
    const consensusStart = performance.now();
    await this.achieveSwarmConsensus(agents);
    const consensusTime = performance.now() - consensusStart;

    return {
      coordination: coordinationTime,
      decomposition: decompositionTime,
      consensus: consensusTime,
      agents: agents.length,
      efficiency: this.calculateSwarmEfficiency(agents)
    };
  }
}
アテンション機構のベンチマーク
class AttentionBenchmarks {
  async benchmarkFlashAttention(): Promise<AttentionBenchmark> {
    const testSequences = this.generateTestSequences([512, 1024, 2048, 4096]);
    const results = [];

    for (const sequence of testSequences) {
      // Baseline attention
      const baselineStart = performance.now();
      const baselineMemory = process.memoryUsage();
      await this.standardAttention(sequence);
      const baselineTime = performance.now() - baselineStart;
      const baselineMemoryPeak = process.memoryUsage().heapUsed - baselineMemory.heapUsed;

      // Flash attention
      const flashStart = performance.now();
      const flashMemory = process.memoryUsage();
      await this.flashAttention(sequence);
      const flashTime = performance.now() - flashStart;
      const flashMemoryPeak = process.memoryUsage().heapUsed - flashMemory.heapUsed;

      results.push({
        sequenceLength: sequence.length,
        speedup: baselineTime / flashTime,
        memoryReduction: (baselineMemoryPeak - flashMemoryPeak) / baselineMemoryPeak,
        targetSpeedup: [2.49, 7.47],
        targetMemoryReduction: [0.5, 0.75]
      });
    }

    return {
      results,
      averageSpeedup: results.reduce((sum, r) => sum + r.speedup, 0) / results.length,
      averageMemoryReduction: results.reduce((sum, r) => sum + r.memoryReduction, 0) / results.length
    };
  }
}
SONA 学習のベンチマーク
class SONABenchmarks {
  async benchmarkAdaptationTime(): Promise<SONABenchmark> {
    const adaptationScenarios = [
      'pattern_recognition',
      'task_optimization',
      'error_correction',
      'performance_tuning',
      'behavior_adaptation'
    ];

    const results = [];

    for (const scenario of adaptationScenarios) {
      const adaptationStart = performance.hrtime.bigint();
      await this.sona.adapt(scenario);
      const adaptationEnd = performance.hrtime.bigint();

      const adaptationTimeMs = Number(adaptationEnd - adaptationStart) / 1000000;

      results.push({
        scenario,
        adaptationTime: adaptationTimeMs,
        target: 0.05, // ms
        achieved: adaptationTimeMs <= 0.05
      });
    }

    return {
      scenarios: results,
      averageAdaptation: results.reduce((sum, r) => sum + r.adaptationTime, 0) / results.length,
      successRate: results.filter(r => r.achieved).length / results.length
    };
  }
}

パフォーマンス監視ダッシュボード

リアルタイムのパフォーマンス指標
class PerformanceMonitor {
  private metrics = {
    flashAttentionSpeedup: new MetricCollector('flash_attention_speedup'),
    searchImprovement: new MetricCollector('search_improvement'),
    memoryReduction: new MetricCollector('memory_reduction'),
    startupTime: new MetricCollector('startup_time'),
    sonaAdaptation: new MetricCollector('sona_adaptation')
  };

  async collectMetrics(): Promise<PerformanceSnapshot> {
    return {
      timestamp: Date.now(),
      flashAttention: await this.metrics.flashAttentionSpeedup.current(),
      searchPerformance: await this.metrics.searchImprovement.current(),
      memoryUsage: await this.metrics.memoryReduction.current(),
      startup: await this.metrics.startupTime.current(),
      sona: await this.metrics.sonaAdaptation.current(),
      targets: this.getTargetMetrics()
    };
  }

  async generateReport(): Promise<PerformanceReport> {
    const snapshot = await this.collectMetrics();

    return {
      summary: this.generateSummary(snapshot),
      achievements: this.checkAchievements(snapshot),
      recommendations: this.generateRecommendations(snapshot),
      trends: this.analyzeTrends(),
      nextActions: this.suggestOptimizations()
    };
  }
}

継続的なパフォーマンス検証

リグレッション検出
class PerformanceRegression {
  async detectRegressions(): Promise<RegressionReport> {
    const current = await this.runFullBenchmarkSuite();
    const baseline = await this.getBaselineMetrics();

    const regressions = [];

    // Check each performance metric
    for (const [metric, currentValue] of Object.entries(current)) {
      const baselineValue = baseline[metric];
      const change = (currentValue - baselineValue) / baselineValue;

      if (change < -0.05) { // 5% regression threshold
        regressions.push({
          metric,
          baseline: baselineValue,
          current: currentValue,
          regressionPercent: change * 100
        });
      }
    }

    return {
      hasRegressions: regressions.length > 0,
      regressions,
      recommendations: this.generateRegressionFixes(regressions)
    };
  }
}

成功検証フレームワーク

目標達成チェックリスト
  • Flash Attention:すべてのシナリオで 2.49x-7.47x の高速化を検証済み
  • 検索パフォーマンス:HNSW による 150x-12,500x の向上を確認済み
  • メモリ削減:メモリ使用量を 50-75% 削減
  • 起動パフォーマンス:コールドスタートで一貫して <500ms を達成
  • SONA 適応:<0.05ms の適応時間を検証済み
  • 15 エージェントの連携:効率的な並列実行を確認済み
  • リグレッションテスト:パフォーマンスのリグレッションが検出されないこと
継続的な監視
  • パフォーマンスダッシュボード:リアルタイムで指標を収集
  • アラートシステム:リグレッションを自動検出
  • 傾向分析:時間の経過に伴うパフォーマンス傾向を追跡
  • 最適化キュー:優先順位付けされたパフォーマンス改善のバックログ

V3 チームとの連携

メモリスペシャリスト(エージェント #7)
  • AgentDB の検索性能が 150x-12,500x 向上することを検証
  • メモリ使用量の最適化をベンチマーク
  • エージェント間のメモリ共有パフォーマンスをテスト
インテグレーションアーキテクト(エージェント #10)
  • agentic-flow@alpha のパフォーマンス統合を検証
  • Flash Attention の高速化実装をテスト
  • SONA 学習のパフォーマンスをベンチマーク
クイーンコーディネーター(エージェント #1)
  • 14 週間のスケジュールに対するパフォーマンスのマイルストーンを報告
  • パフォーマンス上の阻害要因をエスカレーション
  • すべてのエージェント間で最適化の優先順位を調整

⚡ ミッション:claude-flow v3 を最速かつ最も効率的なエージェントオーケストレーションプラットフォームにする、業界をリードするパフォーマンス向上を検証し、実現します。

コメント