GitHub Copilot Super Command
Processes multiple PRs in parallel with automated Copilot analysis and fixes.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
Purpose: Run comprehensive Copilot analysis on multiple PRs using orchestration agents
Usage: /copilotsuper PR1 [PR2 PR3...] or /copilots PR1 [PR2 PR3...]
Action: Uses orchestration system (see orchestrate.md) to spawn individual agents for processing multiple PRs in parallel with full Copilot analysis and fixes
copilot.py with parallel data collection๐จ ORCHESTRATION INTEGRATION: Uses the orchestration system's agent reuse architecture (see orchestrate.md for complete details).
Core Workflow:
/orchestrate to spawn individual agents per PRIndividual Agent Per PR with Custom Workspace Management:
# Delegates to orchestration system with custom workspace configuration for tmux-pr naming
for PR in $PR_LIST; do
# Calculate workspace paths consistent with tmux-pr naming convention
main_repo_path="$(git rev-parse --show-toplevel 2>/dev/null)"
worktrees_root="${WORKTREE_ROOT:-"$(dirname "$main_repo_path")/.worktrees"}"
workspace_name="tmux-pr${PR}"
# Delegate to orchestration with custom workspace configuration
/orchestrate "Run copilot analysis on PR #$PR --workspace-name $workspace_name --workspace-root $worktrees_root"
done
Integrated with Orchestration System: Each tmux agent spawns in independent git worktrees using the orchestration system's configurable workspace management, ensuring complete isolation and preventing conflicts.
Enhanced Orchestration Integration:
# Copilotsuper delegates to orchestration with embedded workspace configuration
for PR in $PR_LIST; do
# Calculate workspace paths following tmux-pr{ID} naming convention
main_repo_path="$(git rev-parse --show-toplevel 2>/dev/null)"
worktrees_root="${WORKTREE_ROOT:-"$(dirname "$main_repo_path")/.worktrees"}"
workspace_name="tmux-pr${PR}"
# Delegate to orchestration with workspace config embedded in task description
/orchestrate "Run copilot analysis on PR #$PR --workspace-name $workspace_name --workspace-root $worktrees_root"
done
Orchestration System Integration:
The orchestration system's create_dynamic_agent() function now accepts custom workspace configuration and automatically aligns agent names with workspace directories:
# Enhanced orchestration agent creation with unified naming
agent_spec = {
"name": agent_name, # Will be updated to match workspace_name
"focus": f"Run copilot analysis on PR #{pr_number}",
"workspace_config": {
"workspace_name": f"tmux-pr{pr_number}", # Agent name becomes: tmux-pr1234
"workspace_root": worktrees_root # External .worktrees directory
}
}
# Result: Agent session name = tmux-pr1234, Workspace directory = tmux-pr1234
Unified Naming & Workspace Management:
tmux-pr{ID} format for all PR-related work across both systems.worktrees directory outside main repoNew Naming Examples:
task-agent-implement-auth (instead of task-agent-44509833)tmux-pr1234 (agent name = workspace name = tmux-pr1234)agent_workspace_ prefix)Worktree Benefits:
tmux-pr1234 format for easy identification.worktrees directory outside main repoKey Benefits (via orchestration system):
โ See orchestrate.md for complete agent reuse architecture and implementation details.
718 719 720)User: /copilotsuper 718 719 720
1. Validate PRs: Check accessibility of 718, 719, 720
2. Delegate to orchestration system (see orchestrate.md):
- Spawns individual agents per PR with reuse optimization
- Each PR gets dedicated agent via orchestration system
3. Orchestration handles:
- Agent reuse optimization (50-80% efficiency gains)
- Isolated worktree management
- Parallel execution coordination
- Progress monitoring
4. Aggregate results from orchestration agents
5. Present comprehensive summary report
โ See orchestrate.md for detailed agent lifecycle and reuse architecture
๐ค COPILOT SUPER ANALYSIS COMPLETE
๐ BATCH RESULTS:
- Processed: 3 PRs
- Fully Fixed: 2 PRs (718, 719)
- Needs Attention: 1 PR (720)
๐ DETAILED RESULTS:
โ
PR #718: handoff-reviewsuper-command
- Fixed: 5 Copilot suggestions
- Resolved: 2 failing tests
- Status: Ready to merge
- Commits: 3 new commits pushed
โ
PR #719: feature-auth-improvements
- Fixed: 3 security vulnerabilities
- Resolved: 1 CI/CD failure
- Status: Ready to merge
- Commits: 2 new commits pushed
โ ๏ธ PR #720: database-optimization
- Fixed: 4 style issues
- Remaining: 1 performance blocker
- Status: Needs manual review
- Commits: 1 new commit pushed
๐ฏ SUMMARY: 2 PRs ready for merge, 1 needs attention
Batch PR Cleanup:
/copilotsuper 715 716 717 718
# Clean up multiple feature PRs before merge
Release Preparation:
/copilotsuper 720 721 722
# Ensure all release PRs are mergeable
Daily Review Cycle:
/copilots $(gh pr list --json number -q '.[].number' | head -5)
# Process 5 most recent PRs using convenient alias
Enhanced Performance through Worktree Management:
tmux-pr{ID} worktrees reused for 50-80% setup time savings.worktrees directory prevent repo contaminationtmux-pr1234 format enables efficient worktree lookup and managementAdditional Performance (via orchestration system):
โ See orchestrate.md for complete performance architecture and optimization details.
Enhanced Safety through Git Worktree Isolation:
tmux-pr{ID} external directorytmux-pr1234 format for easy identification and management.worktrees directory outside main repoAdditional Safety (via orchestration system):
โ See orchestrate.md for complete orchestration safety protocols.
Relationship to /copilot:
/copilot: Single PR analysis (runs in current terminal)/copilotsuper: Multi-PR parallel processing (spawns orchestration agents)Synergy with /reviewsuper:
/reviewsuper: Critical architectural review/copilotsuper: Automated issue fixingCommand Integration: Uses orchestration system for all agent management
Dependencies: Orchestration system + existing copilot.py infrastructure
Error Handling: Managed by orchestration system's fault tolerance
โ See orchestrate.md for complete implementation details, dependencies, and error handling protocols.