Sync and consolidate findings from all agents into prioritized action items
Consolidate findings from all agents into a prioritized action list. Use when you need to review and act on issues discovered by your swarm of code analysis agents.
/plugin marketplace add arevlo/claude-code-workflows/plugin install arevlo-swarm@claude-code-workflowsConsolidate all agent findings into a prioritized list of action items.
/sync [--to-notion] [--to-github]
Arguments:
--to-notion - Also save to Notion database--to-github - Create GitHub issues for critical itemsGather all reports:
bash/zsh (macOS, Linux, Git Bash, WSL):
# Collect all report files from last 60 minutes
find .claude/swarm/reports -name "*.md" -mmin -60
PowerShell (Windows):
# Collect all report files from last 60 minutes
Get-ChildItem .claude/swarm/reports -Filter "*.md" |
Where-Object { $_.LastWriteTime -gt (Get-Date).AddMinutes(-60) }
Parse and deduplicate:
Prioritize issues:
Priority scoring:
- Critical (unhandled errors, security) = 100
- Type errors = 80
- Complexity warnings = 60
- Style suggestions = 40
- Documentation = 20
Generate consolidated report:
.claude/swarm/sync/sync-<timestamp>.md# Swarm Sync Report
Generated: <timestamp>
Agents: reviewer, type-analyzer, silent-hunter
## Critical (Fix Now)
- [ ] figma.ts:45 - Unhandled promise rejection
- [ ] api.ts:120 - Missing error boundary
## High Priority
- [ ] handler.ts:120 - Reduce complexity (15 → <10)
- [ ] types.ts:30 - Add explicit return type
## Suggestions
- [ ] utils.ts:15 - Consider extracting helper
Update shared context:
.claude/swarm/context/latest.mdIf --to-notion:
If --to-github:
gh issue create --title "Fix: <issue>" --body "<details>"
SYNC COMPLETE
═══════════════════════════════════════════════════
Processed: 12 reports from 3 agents
Timeframe: Last 60 minutes
CONSOLIDATED ISSUES
┌──────────┬───────┬─────────────────────────────────┐
│ Priority │ Count │ Summary │
├──────────┼───────┼─────────────────────────────────┤
│ Critical │ 2 │ Unhandled async, missing catch │
│ High │ 4 │ Complexity, types │
│ Medium │ 3 │ Patterns, structure │
│ Low │ 5 │ Style, docs │
└──────────┴───────┴─────────────────────────────────┘
Report saved: .claude/swarm/sync/sync-1705312200.md
Context updated: .claude/swarm/context/latest.md
Next steps:
1. Review critical issues first
2. Run /load-context swarm to bring findings into session
3. Fix issues and agents will re-analyze automatically
/load-context swarm to bring findings into main session