Skip to main content
Codanna is a local code intelligence MCP server and CLI for AI coding agents. Each tool result includes a follow-up hint that suggests the next logical action, guiding AI assistants through systematic codebase exploration.

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
Text output:
JSON output:

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

Each step’s guidance naturally leads to the next action.

Customizing Templates

Edit .codanna/settings.toml to customize guidance messages:
Template variables:
  • {result_count} - number of results returned
  • {project} - project name from [guidance.variables]

For AI Developers

When building AI agents that use Codanna via MCP, the system_message field provides actionable next-step suggestions:
Use this to:
  • 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.