Quick Start
1
Simple Usage
2
With Configuration
Which Approval Mode Should I Use?
Pick how much control you keep over the plan before it runs.How It Works
Configuration Options
Common Patterns
Read-only planning
Auto-approved pipeline
Multi-agent with planning
Best Practices
Use planning for complex multi-step tasks
Use planning for complex multi-step tasks
Planning shines when the path to a solution is unclear. For simple one-step tasks, direct execution is faster.
Enable read_only for safe exploration
Enable read_only for safe exploration
Set
read_only=True when the agent should research code or documents without risk of modification.Provide research tools during planning
Provide research tools during planning
Pass
tools=[search_web, read_file] so the planning phase has relevant context.Enable reasoning for complex requests
Enable reasoning for complex requests
Set
reasoning=True for chain-of-thought analysis in the plan.Related
Workflows
Create reusable multi-step workflows
Hooks
Intercept agent behaviour at lifecycle points

