Skip to main content
Planning mode controls whether and how agents create execution plans before taking action. This is a powerful feature that can significantly improve performance on complex tasks.

What is Planning?

When planning is enabled, the agent:
  1. Analyzes the task before taking any action
  2. Creates a step-by-step plan of what it will do
  3. Executes the plan methodically
  4. Adjusts the plan if needed based on results
Without planning, agents act more reactively, deciding their next step after each tool call.

Planning Modes

Cotool offers three planning modes:
No planning - Agent acts immediately and reactively.Behavior:
  • Agent decides next action after each tool call
  • More exploratory, adaptive
  • Faster for simple tasks
Best for:
  • Simple 1-3 tool call workflows
  • Well-defined, linear tasks
  • Speed-critical applications
  • Agents with very clear instructions
Example use case:
  • Look up user in Okta → Post result to Slack
  • Check file hash in VirusTotal → Update Jira with score

How Planning Works

Without Planning (Reactive)

Pros: Low latency, good for extremely simple tasks or when you know the task is simple and well-defined Cons: May take inefficient paths, might miss important steps

With Planning (Deliberate)

Pros: Thorough, systematic, less likely to miss steps Cons: Slightly slower, less exploratory

Choosing the Right Mode

  • Task is simple and well-defined
  • Speed is critical
  • Agent instructions are very explicit about steps
  • Typical run has 1-3 tool calls
Examples:
  • Lookup and post result
  • Simple enrichment (check one indicator)
  • Status checks
  • Task complexity varies
  • You want balance of speed and thoroughness
  • You’re unsure which mode is best
  • Agent handles diverse scenarios
Examples:
  • Alert triage (varies by alert type)
  • User requests via Slack
  • General-purpose copilot agents
This is the recommended default.
  • Task is consistently complex (5+ steps)
  • Order of operations matters
  • Missing a step would be problematic
  • Thoroughness > speed
Examples:
  • User offboarding workflows
  • Compliance audits
  • Multi-system incident response
  • Scheduled reports with many data sources

Real-World Examples

Example 1: Alert Triage (Auto)

Example 2: User Lookup (Never)

Example 3: Offboarding (Always)

Impact on Performance

Speed vs Thoroughness: Planning adds 10-20% overhead but significantly improves reliability for complex tasks. For most agents, “Auto” provides the best balance.

Plan Visibility

When an agent creates a plan, you can see it in the execution logs:
This visibility helps you understand the agent’s approach and debug issues.

Dynamic Plan Adjustment

Agents can adjust their plans based on discoveries:
This adaptive behavior works in all planning modes.

Prompt Guidance for Planning

You can influence how agents plan with prompt instructions:

For “Auto” Mode

For “Always” Mode

For “Never” Mode

Testing Planning Modes

Use Builder to compare modes:
1

Test with Current Mode

Run agent with complex test case, note duration and quality
2

Change Planning Mode

Switch to different mode (e.g., Auto → Always)
3

Rerun Same Test

Execute identical test case
4

Compare

  • Which produced better output?
  • Which was more efficient?
  • Did Always mode catch steps Never mode missed?
5

Decide

Choose mode that best balances quality and speed for your use case

Common Pitfalls

Over-planning for Simple Tasks: Don’t use “Always” for agents that typically make 1-2 tool calls. You’re just adding overhead.
Under-planning for Complex Tasks: If your agent frequently misses steps or acts inefficiently, try “Auto” or “Always” mode.
Expecting Perfect Plans: Plans are guides, not guarantees. Agents may deviate based on what they discover.

Advanced: Plan Quality

You can improve plan quality with:
  1. Clear system prompts: Explain the typical workflow
  2. Context documents: Provide runbooks or procedures
  3. Examples: Show what good plans look like
  4. Evaluation criteria: Define what “complete” means

Monitoring Planning

Track planning effectiveness with your internal monitoring and evaluation tools:
  • Planning rate: % of runs where planning occurred (for “Auto” mode)
  • Plan adherence: How closely the agent followed its plan
  • Plan adjustments: How often plans were modified
  • Outcome comparison: Planned vs unplanned success rates

Best Practices

Unless you have specific requirements, use “Auto” mode and let the agent decide when planning helps.
In Builder, test with “Never” and “Always” to understand the quality/speed tradeoff for your specific agent.
Simple agents → Never, Complex agents → Always, Variable agents → Auto
When an agent fails, check if it planned (and if that plan was sound). This reveals prompt gaps.
Planning mode is an optimization. Focus on prompt quality first, then tune planning mode.