How to use the Plan subagent in Claude Code
- Enter plan mode or ask for the Plan subagent by name with the intended change and constraints.
- Use the example below as a starting point and replace the sample task with your own.
Use the Plan subagent to plan replacing our local preferences store. Include migration, rollback, and verification. Keep this pass read-only.Plan a data migration with a rollback
Give Plan the current schema path and a compatibility constraint. Review how it handles existing records, retries, and rollback. Validate those assumptions against the actual code before proceeding.
Connect the plan to implementation
Plan can map dependencies and bring research back to the main conversation. Ask for file references and a verification checklist so you can check each proposed edit against the real product constraints.