What is Planning?
When planning is enabled, the agent:- Analyzes the task before taking any action
- Creates a step-by-step plan of what it will do
- Executes the plan methodically
- Adjusts the plan if needed based on results
Planning Modes
Cotool offers three planning modes:- Never
- Auto (Recommended)
- Always
No planning - Agent acts immediately and reactively.Behavior:
- Agent decides next action after each tool call
- More exploratory, adaptive
- Faster for simple tasks
- Simple 1-3 tool call workflows
- Well-defined, linear tasks
- Speed-critical applications
- Agents with very clear instructions
- Look up user in Okta → Post result to Slack
- Check file hash in VirusTotal → Update Jira with score
How Planning Works
Without Planning (Reactive)
With Planning (Deliberate)
Choosing the Right Mode
Choose 'Never' When...
Choose 'Never' When...
- Task is simple and well-defined
- Speed is critical
- Agent instructions are very explicit about steps
- Typical run has 1-3 tool calls
- Lookup and post result
- Simple enrichment (check one indicator)
- Status checks
Choose 'Auto' When...
Choose 'Auto' When...
- Task complexity varies
- You want balance of speed and thoroughness
- You’re unsure which mode is best
- Agent handles diverse scenarios
- Alert triage (varies by alert type)
- User requests via Slack
- General-purpose copilot agents
Choose 'Always' When...
Choose 'Always' When...
- Task is consistently complex (5+ steps)
- Order of operations matters
- Missing a step would be problematic
- Thoroughness > speed
- 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
| Metric | Never | Auto | Always |
|---|---|---|---|
| Average Duration | Fastest | Medium | Slowest (+10-20%) |
| Token Usage | Lowest | Medium | Highest (+15-25%) |
| Reliability | Good | Better | Best |
| Thoroughness | Good | Better | Best |
| Best for | Simple tasks | Mixed | Complex tasks |
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:Dynamic Plan Adjustment
Agents can adjust their plans based on discoveries: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:- Clear system prompts: Explain the typical workflow
- Context documents: Provide runbooks or procedures
- Examples: Show what good plans look like
- 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
Start with Auto
Start with Auto
Unless you have specific requirements, use “Auto” mode and let the agent decide when planning helps.
Test Both Extremes
Test Both Extremes
In Builder, test with “Never” and “Always” to understand the quality/speed tradeoff for your specific agent.
Match Mode to Task Complexity
Match Mode to Task Complexity
Simple agents → Never, Complex agents → Always, Variable agents → Auto
Review Plans in Failed Executions
Review Plans in Failed Executions
When an agent fails, check if it planned (and if that plan was sound). This reveals prompt gaps.
Don't Overthink It
Don't Overthink It
Planning mode is an optimization. Focus on prompt quality first, then tune planning mode.