Skip to main content
Planning Mode separates research from execution so agents create a reviewable plan before taking action.
The user requests complex work; the agent drafts a reviewable plan before executing changes.

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

Planning shines when the path to a solution is unclear. For simple one-step tasks, direct execution is faster.
Set read_only=True when the agent should research code or documents without risk of modification.
Pass tools=[search_web, read_file] so the planning phase has relevant context.
Set reasoning=True for chain-of-thought analysis in the plan.

Workflows

Create reusable multi-step workflows

Hooks

Intercept agent behaviour at lifecycle points