Skip to main content
Debug agents by enabling debug mode to see detailed execution information including tool calls, context processing, and model interactions.

Enable Debug Mode

The simplest way to debug is enabling the debug flag when running a task.
When debug mode is enabled, you’ll see detailed logs including:
  • Pipeline step execution
  • Tool call information
  • Context management
  • Model request/response details
  • Cache hits/misses
  • Safety policy checks

Debug Agent Configuration

You can also enable debug mode at the agent level for persistent debugging across all tasks.
With agent-level debug mode, every execution provides detailed insights into the agent’s decision-making process and tool usage.