How it works
When p0 is in Plan mode, it can read and analyze your codebase but cannot execute commands or modify files. The AI will:- Explore your codebase using read-only tools
- Analyze the requirements and current implementation
- Create a detailed plan outlining the steps needed
- Present the plan for your review and approval
Available tools
In Plan mode, p0 has access to these read-only tools:- Read - View file contents
- Grep - Search for patterns in files
- Glob - Find files by name patterns
- WebSearch - Search the web for information
- WebFetch - Fetch content from URLs
- Task - Break down complex analysis tasks
- Thinking - Internal reasoning about the problem
When to use Plan mode
Plan mode is ideal for:- Complex tasks - Understanding multi-step changes before execution
- Unfamiliar codebases - Exploring architecture and patterns first
- Multi-file changes - Mapping out dependencies and impact
- Architecture decisions - Evaluating different approaches before implementing
Switching to Agent mode
After reviewing the plan, you have two options:- Approve the plan - p0 will automatically switch to Agent mode and send an “Implement plan” message to execute the proposed changes
- Use the /agent command - Manually switch to Agent mode at any time

Next steps
Agent mode
Execute changes with full tool access
Spec-driven workflow
Use the five-phase pipeline for complex features