Skip to main content
The --planning flag enables planning mode where the agent creates a multi-step plan before execution.
Donโ€™t confuse --planning with --plan. --planning enables the agentโ€™s multi-step plan-then-execute workflow (this page). --plan on praisonai run / praisonai code is a completely different flag: it selects the read-only planning permission mode (PermissionMode.PLAN) so mutating tools are denied. Inside praisonai chat / praisonai code, the interactive /plan slash command toggles the same read-only permission mode on/off. See Slash Commands โ€บ /plan, Permissions, and Permission Modes.

Quick Start

Planning mode example

Usage

Basic Planning

Expected Output:

With Planning Tools

With Reasoning

Auto-Approve Plans

Combine Options

How It Works

  1. Plan Creation: Agent analyzes the task and creates a multi-step plan
  2. User Approval: Plan is shown for approval (unless --auto-approve-plan)
  3. Step Execution: Each step is executed sequentially
  4. Context Passing: Results from each step inform the next
  5. Final Result: Combined output from all steps

Planning Options

YAML Equivalent

Use planning: true inside an agent definition for YAML-based planning:

Examples

Research Task

Code Project

Analysis Task

Programmatic Usage

What happens:
  1. ๐Ÿ“‹ Agent creates a multi-step plan
  2. ๐Ÿš€ Executes each step sequentially
  3. ๐Ÿ“Š Shows progress with context passing
  4. โœ… Returns final result

Best Practices

Use planning mode for complex, multi-step tasks that benefit from structured execution.
Planning mode adds overhead for simple tasks. Use it for complex tasks with multiple steps.