| name | reflect |
| description | Reflect on conversation + codebase to ensure prompts capture everything before execution. Use when the user says "reflect", "verify the prompt", "check the plan", or automatically as part of the handoff flow.
|
| allowed-tools | Read, Grep, Glob, Task |
Reflect
Deduplication: If this plan/artifact already has a "REFLECT COMPLETE" marker and nothing changed since, report that and stop.
Quick exit: If the plan is a single straightforward task (<5 files, no sub-agents, no handoff), just verify file paths exist and are absolute, then stop. Full reflection is overkill for simple plans.
Reflect on:
- Our discussion, and any details and decisions we'd agreed upon on the subject $ARGUMENTS
- the artifacts, prompt files, and/or other plans we most recently generated for this
- our conversation and the codebase against the artifacts, plans, or prompts we recently generated to ensure they will succeed.
This is your last chance to catch gaps before a fresh agent executes these tasks with no memory of our discussion. Your goal is to ensure the implementation planned will succeed by providing the best, most accurate context and instructions possible.
Focus on capturing what was agreed in this conversation that the execution agent won't have access to. That's what matters - not elaboration beyond what we discussed.
Make any refinements to ensure:
Verify against codebase:
If this is a multi-prompt chain with separate task files (from /distill):
Capture from our discussion:
Execution structure:
Directly update the artifacts with refinements required.
End with "REFLECT COMPLETE" to signal verification is done.