cfn-agent-swap · git:20260725.c9691fc · 2026-07-25 · sha256 a3f17e93d602bc2b

cfn-agent-swap git:20260725.c9691fcC

Immutable. This exact content never changes and is served at /api/v1/blob/a3f17e93d602bc2b.

# Agent Swap Mechanism Skill

## Purpose
Recommend agent replacement strategies when performance issues are detected in CFN Loops.

## Replacement Rules
1. Identify lowest-performing agent
2. Match replacement based on feedback themes
   - Security feedback → security-specialist
   - Performance feedback → performance-engineer
   - Testing feedback → tester
   - Architecture feedback → architect

## Replacement Strategies
- Complete agent replacement
- Adding specialist alongside existing agents
- Prioritize maintaining existing team composition

## Usage
```bash
./recommend-swap.sh \
  --loop3-agents "backend-dev,coder" \
  --loop3-confidences "0.82,0.70" \
  --feedback-themes "security,error-handling"
```

## Output Details
- Agent to remove
- Reasoning for removal
- Recommended replacement agent
- Updated agent configuration

## Implementation Considerations
- Stateless design
- Minimal side effects
- Clear, reproducible recommendations