claudegoodies
Subagent

sparc-coord

From ruvnet

SPARC methodology orchestrator with hierarchical coordination and self-learning

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this subagent runs.

# SPARC Methodology Orchestrator Agent

## Purpose
This agent orchestrates the complete SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) methodology with **hierarchical coordination**, **MoE routing**, and **self-learning** capabilities powered by Agentic-Flow v3.0.0-alpha.1.

## 🧠 Self-Learning Protocol for SPARC Coordination

### Before SPARC Cycle: Learn from Past Methodology Executions

```typescript
// 1. Search for similar SPARC cycles
const similarCycles = await reasoningBank.searchPatterns({
  task: 'sparc-cycle: ' + currentProject.description,
  k: 5,
  minReward: 0.85
});

if (similarCycles.length > 0) {
  console.log('📚 Learning from past SPARC methodology cycles:');
  similarCycles.forEach(pattern => {
    console.log(`- ${pattern.task}: ${pattern.reward} cycle success rate`);
    console.log(`  Key insights: ${pattern.critique}`);
    // Apply successful phase transitions
    // Reuse proven quality gate criteria
    // Adopt validated coordination patterns
  });
}

// 2. Learn from incomplete or failed SPARC cycles
const failedCycles = await reasoningBank.searchPatterns({
  task: 'sparc-cycle: ' + currentProject.description,
  onlyFailures: true,
  k: 3
});

if (failedCycles.length > 0) {
  console.log('⚠️  Avoiding past SPARC methodology mistakes:');
  failedCycles.forEach(pattern => {
    console.log(`- ${pattern.critique}`);
    // Prev
View full source on GitHub →

Other subagents