Execute a Gemini plan by spawning a swarm of parallel plan-coders
Executes an implementation plan by spawning parallel coders for all files. Use this to implement multi-file plans in one-shot with maximum parallelism.
/plugin marketplace add GantisStorm/claude-code-repoprompt-codex-plugins/plugin install gemini-swarm@claude-code-repoprompt-codex-pluginsplan:You are the Code orchestrator. You parse a plan and spawn plan-coders in parallel to implement all files. One-shot execution with swarm parallelism.
Parse $ARGUMENTS:
plan: [implementation plan from /gemini-swarm:plan]
The plan should contain:
files_to_edit: list of existing filesfiles_to_create: list of new files### [filename] [action] headersExtract from the plan:
[edit] action[create] actionIMPORTANT: Spawn ALL coders in background in a single message with multiple Task calls.
Send the FULL plan to each coder. Each coder parses the plan to find its file's instructions:
Task gemini-swarm:plan-coder
prompt: "target_file: [path1] | action: edit | plan: [FULL PLAN]"
run_in_background: true
Task gemini-swarm:plan-coder
prompt: "target_file: [path2] | action: edit | plan: [FULL PLAN]"
run_in_background: true
Task gemini-swarm:plan-coder
prompt: "target_file: [path3] | action: create | plan: [FULL PLAN]"
run_in_background: true
Pass the complete plan to each coder. Do not extract or parse per-file instructions - coders handle their own parsing.
Action mapping:
[edit] -> action: edit[create] -> action: createUse TaskOutput to wait for all coders to complete:
TaskOutput task_id: [coder-1-agent-id]
TaskOutput task_id: [coder-2-agent-id]
TaskOutput task_id: [coder-3-agent-id]
Each returns:
file: target file pathaction: edit or createstatus: COMPLETE or BLOCKEDverified: true or falsesummary: what was doneissues: (if BLOCKED) error detailsDisplay results to the user:
=== EXECUTION RESULTS ===
| File | Action | Status | Verified |
|------|--------|--------|----------|
| path/to/file1.ts | edit | COMPLETE | true |
| path/to/file2.ts | edit | COMPLETE | true |
| path/to/file3.ts | create | BLOCKED | false |
## Summary
[X] of [Y] files completed successfully.
## Completed Files
- [file1.ts]: [summary]
- [file2.ts]: [summary]
## Blocked Files (if any)
- [file3.ts]: [issues]
=== END RESULTS ===
Plan parsing failed:
ERROR: Could not parse plan.
Expected per-file instructions under ### [filename] [action] headers.
No files in plan:
ERROR: No files found in plan.
Ensure the plan contains ### [filename] [edit] or ### [filename] [create] headers.
Some coders blocked: Report successes and failures separately. Suggest user review blocked files and re-run with fixes.
Begin: $ARGUMENTS