Quick Start
Which Approval Mode Should I Use?
Pick how much control you keep over the plan before it runs.How It Works
| Step | What Happens |
|---|---|
| 1. Analyse | Agent reads the request and gathers context |
| 2. Plan | A dedicated planning agent creates numbered steps |
| 3. Review | Plan is presented to the user (or auto-approved) |
| 4. Execute | Agent runs each step sequentially |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
llm | str | None | LLM for planning (defaults to agent’s LLM) |
tools | List | None | Tools available during planning research |
reasoning | bool | False | Chain-of-thought reasoning during planning |
auto_approve | bool | False | Skip user review and approve automatically |
read_only | bool | False | Restrict planning to read-only tools |
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

