/multi-execute Command
Multi-model collaborative execution - Get prototype from plan → Claude refactors and implements → Multi-model audit and delivery.Core Protocols
- Language Protocol: Use English when interacting with tools/models
- Code Sovereignty: External models have zero filesystem write access, all modifications by Claude
- Dirty Prototype Refactoring: Treat Codex/Gemini Unified Diff as “dirty prototype”, must refactor to production-grade
- Prerequisite: Only execute after user explicitly confirms plan
Command Syntax
Path to plan file (
.claude/plan/feature.md) or direct task descriptionExecution Workflow
Phase 0: Read Plan
- Identify Input Type - Plan file path or direct task
- Read Plan Content - Extract task type, steps, key files, SESSION_ID
- Pre-Execution Confirmation - Confirm user approval
- Task Type Routing:
- Frontend → Gemini
- Backend → Codex
- Fullstack → Codex ∥ Gemini parallel
Phase 1: Quick Context Retrieval
Callmcp__ace-tool__search_context based on “Key Files” list in plan.
Phase 3: Prototype Acquisition
Route Based on Task Type:- Frontend/UI → Gemini (frontend design authority)
- Backend/Logic → Codex (backend logic authority)
- Fullstack → Parallel calls to both
Phase 4: Code Implementation
Claude as Code Sovereign:- Read Diff - Parse Unified Diff Patch from Codex/Gemini
- Mental Sandbox - Simulate applying Diff
- Refactor and Clean - Convert “dirty prototype” to production-grade code
- Minimal Scope - Changes limited to requirement scope only
- Apply Changes - Use Edit/Write tools
- Self-Verification - Run lint/typecheck/tests
Phase 5: Audit and Delivery
Automatic Audit - Parallel call Codex and Gemini for Code Review:- Codex Review: Security, performance, error handling, logic
- Gemini Review: Accessibility, design consistency, UX
Examples
Key Rules
- Code Sovereignty - All file modifications by Claude
- Dirty Prototype Refactoring - Codex/Gemini output treated as draft
- Trust Rules - Backend follows Codex, Frontend follows Gemini
- Minimal Changes - Only modify necessary code
- Mandatory Audit - Must perform multi-model Code Review after changes
Related
- Commands:
/multi-plan,/multi-workflow