How It Works
Every tool result includes a guidance message based on:- Result count - different suggestions for 0, 1, or many results
- Custom thresholds - specific advice when results exceed certain counts
Workflow Example
Understanding code before modifying it:1
Search for the concept
2
Get symbol details
3
Check who uses it
4
Understand full impact
Customizing Templates
Edit.codanna/settings.toml to customize guidance messages:
{result_count}- number of results returned{project}- project name from[guidance.variables]
For AI Developers
When building AI agents that use Codanna via MCP, thesystem_message field provides actionable next-step suggestions:
- Chain tool calls automatically
- Provide context for follow-up decisions
- Guide users through systematic exploration
Disabling Guidance
To disable guidance messages:Next Steps
Piping
Chain tools with Unix pipes.
Customization
Configure guidance templates.