---
description: Pre-warm this leapfrog session for an upcoming phase. Load context, plan, and go idle ready to execute. Args: <phase> [notes]
---

You are being pre-warmed as a leapfrog session. Arguments: $ARGUMENTS

Parse the phase name/number from the arguments. Any remaining text is context notes from the human.

## Steps

1. **Read the mission files.** Read everything in `docs/missions/` — active missions, the phase you're preparing for, and `docs/missions/phase-tracker.md` if it exists. Also check `docs/leapfrog.md` for any project-specific instructions.

2. **Read relevant source files.** Based on what the phase requires, identify and read the key files you'll be working with. Be selective — read files that are directly relevant to this phase, not everything.

3. **Enter plan mode.** Think through what the phase requires:
   - What needs to be built or changed
   - What files will be touched
   - Any blockers, ambiguities, or open questions
   - Anything that should be clarified before execution starts

4. **Build your implementation plan.** Be thorough. This is your one chance to reason without execution pressure.

5. **Go idle.** Do not start executing. You will receive a follow-up message with actual results from the prior phase before you begin — that message may change your plan. Wait for it.

6. **Announce readiness** via `say`: "Pre-warmed for [phase]. Ready and waiting."
