Multi-agent feature implementation. Spawns independent solver agents that each implement the feature from scratch, then synthesizes the best elements from each...
Spawns multiple agents to implement the same feature independently, then synthesizes the best parts from each. Unlike code-council (majority voting for bugs), this skill merges strengths because features have multiple valid approaches.
Use this for complex features where you want diverse implementations and comprehensive coverage.
Before doing anything else, ask the user how many solver agents to use:
How many solver agents would you like me to use? (3-10)
Recommendations:
- 3 agents: Faster, good for straightforward features
- 5 agents: Good balance of diversity and speed
- 7 agents: Comprehensive coverage
- 10 agents: Maximum diversity (complex features)
Note: Each agent will independently implement the entire feature.
More agents = more diverse approaches and edge case coverage.
Wait for the user's response. If they specified a number (e.g., "feature council of 5"), use that.
Minimum: 3 agents | Maximum: 10 agents
Independent implementations mean:
Take the user's request exactly as stated. Do NOT:
Just capture what the user said.
Spawn ALL agents simultaneously. Each gets the exact same raw prompt:
Task(agent: "feature-solver-1", prompt: "[USER'S EXACT WORDS]")
Task(agent: "feature-solver-2", prompt: "[USER'S EXACT WORDS]")
Task(agent: "feature-solver-3", prompt: "[USER'S EXACT WORDS]")
... (all in the SAME batch - parallel execution)
DO NOT modify the prompt. DO NOT add context. Raw user words only.
Each agent will:
Each agent works in complete isolation.
As agents complete, show progress to the user:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
AGENT PROGRESS
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Agent 1 - Complete
ā Agent 2 - Complete
ā Agent 3 - Complete
ā Agent 4 - Working...
ā Agent 5 - Working...
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Collect all outputs when complete.
DO NOT use majority voting. Instead, analyze each implementation for:
| Category | What to Look For |
|---|---|
| Architecture | Design patterns, code organization, modularity |
| Edge Cases | What edge cases did each agent handle? |
| Error Handling | How robust is the error handling? |
| Type Safety | Type definitions, null checks, validation |
| Performance | Efficiency, caching, optimization |
| Maintainability | Readability, documentation, testability |
| Codebase Fit | How well does it match existing patterns? |
Create a comparison matrix:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
IMPLEMENTATION COMPARISON
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
| Aspect | Agent 1 | Agent 2 | Agent 3 | Agent 4 | Agent 5 |
|-----------------|---------|---------|---------|---------|---------|
| Architecture | MVC | Service | MVC | MVC | Modular |
| Edge Cases | 3 | 5 | 4 | 3 | 6 |
| Error Handling | Basic | Robust | Good | Basic | Robust |
| Type Safety | ā | āā | ā | ā | āā |
| Codebase Match | 90% | 75% | 95% | 85% | 80% |
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Combine the best elements from each agent:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
SYNTHESIS DECISION
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Base: Agent 3 (best codebase pattern match)
Incorporating from other agents:
āā Agent 2: Robust error handling pattern
āā Agent 5: Edge cases for [empty input, concurrent access]
āā Agent 2: Type definitions for [UserInput, ValidationResult]
āā Agent 4: Caching optimization
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Before implementing, create a detailed execution plan from the synthesized solution:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š IMPLEMENTATION PLAN
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## Files to Create
| # | File Path | Purpose | Source |
|---|-----------|---------|--------|
| 1 | path/to/NewService.ts | Main service class | Agent 3 base |
| 2 | path/to/types.ts | Type definitions | Agent 2 |
| 3 | path/to/utils.ts | Helper functions | Agent 5 |
## Files to Modify
| # | File Path | Changes | Source |
|---|-----------|---------|--------|
| 1 | path/to/index.ts | Add export | Agent 3 |
| 2 | path/to/config.ts | Add config entry | Agent 4 |
| 3 | path/to/app.ts | Register service | Agent 3 |
## Implementation Order
1. **Create types.ts** (no dependencies)
- Define interfaces and types
- From: Agent 2
2. **Create utils.ts** (depends on types)
- Add helper functions
- From: Agent 5
3. **Create NewService.ts** (depends on types, utils)
- Main implementation
- From: Agent 3 + Agent 2 error handling
4. **Modify config.ts** (no dependencies)
- Add configuration
- From: Agent 4
5. **Modify index.ts** (depends on NewService)
- Export new service
- From: Agent 3
6. **Modify app.ts** (depends on all above)
- Register and initialize
- From: Agent 3
## Edge Cases to Handle
| Edge Case | How Handled | Source |
|-----------|-------------|--------|
| Empty input | Return early with default | Agent 5 |
| Null values | Null coalescing + validation | Agent 2 |
| Concurrent access | Mutex lock | Agent 5 |
| Network timeout | Retry with backoff | Agent 4 |
## Error Handling Strategy
- Pattern: [from Agent 2]
- Logging: [approach]
- Recovery: [approach]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
This plan ensures:
Follow the plan step-by-step. For each step:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
FEATURE COUNCIL RESULTS
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## š Implementation Comparison
| Agent | Architecture | Edge Cases | Error Handling | Codebase Fit |
|-------|--------------|------------|----------------|--------------|
| 1 | [approach] | [count] | [quality] | [%] |
| 2 | [approach] | [count] | [quality] | [%] |
| ... | ... | ... | ... | ... |
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## š What Each Agent Contributed
### Agent 1
- Approach: [brief description]
- Unique strength: [what this agent did best]
- Used in final: [what was incorporated]
### Agent 2
- Approach: [brief description]
- Unique strength: [what this agent did best]
- Used in final: [what was incorporated]
... (for each agent)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## š Implementation Plan Executed
| Step | File | Action | Status |
|------|------|--------|--------|
| 1 | path/to/types.ts | Created | ā
|
| 2 | path/to/utils.ts | Created | ā
|
| 3 | path/to/Service.ts | Created | ā
|
| 4 | path/to/config.ts | Modified | ā
|
| 5 | path/to/index.ts | Modified | ā
|
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## 𧬠Synthesis Breakdown
| Element | Source Agent | Reason |
|---------|--------------|--------|
| Base architecture | Agent 3 | Best codebase pattern match (95%) |
| Error handling | Agent 2 | Most comprehensive try/catch + logging |
| Edge case: empty input | Agent 5 | Only agent that handled this |
| Edge case: concurrent | Agent 5 | Race condition prevention |
| Type definitions | Agent 2 | Strictest typing |
| Caching layer | Agent 4 | Performance optimization |
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## š Final Solution Quality
- **Edge Cases Covered**: [total unique from all agents]
- **Error Handling**: [description]
- **Codebase Fit**: [% and explanation]
- **Type Safety**: [description]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## ā
Implemented Solution
[The synthesized implementation]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
## š Files Created/Modified
[List of all files with brief descriptions]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
| Mode | Agents | Use Case |
|---|---|---|
feature council of 3 |
3 | Simple features, faster |
feature council of 5 |
5 | Good balance |
feature council of 7 |
7 | Complex features |
feature council of 10 |
10 | Maximum coverage |
If user just says feature council, ask them to choose.
| Aspect | Code Council | Feature Council |
|---|---|---|
| Purpose | Bug fixes, algorithms | Feature implementation |
| Selection | Majority voting | Synthesis/merge |
| Output | Single winning solution | Best-of-all combined |
| Metric | Correctness consensus | Comprehensiveness |
10 feature solver agents in agents/ directory:
feature-solver-1 through feature-solver-10All agents:
With bugs, there's ONE correct answer. With features:
Synthesis captures the union of good ideas rather than picking one.
ā Use feature-council for:
ā Don't use for: