Skip to main content
Starter Kit - Ships with your template. You own it - modify freely.
Debug agents are utility agents designed to help you test, inspect, and debug your Conductor workflows. These agents are particularly useful during development to understand data flow, test error handling, and validate transformations.

Echo Agent

The echo agent returns its input unchanged, making it perfect for debugging data transformations and inspecting what data reaches an agent after flowing through your ensemble.

Description

Returns input unchanged - useful for debugging flows and inspecting what data reaches an agent after transformations.

Source

agents/debug/echo/echo.yaml

Input Schema

The data field accepts any type - objects, strings, arrays, numbers, etc.

Output Schema

Configuration

Examples

Echo an Object

Output:

Echo a String

Output:

Debug Data Transformation

Use Cases

  • Inspect Transformations: See exactly what data looks like after processing
  • Validate Flow Logic: Confirm data reaches agents as expected
  • Debug Type Issues: Check the JavaScript type of data
  • Test Conditional Logic: Verify data before conditions evaluate

Delay Agent

The delay agent introduces artificial delays before returning, making it essential for testing timeout handling, loading states, concurrent execution, and rate limiting behavior.

Description

Adds artificial delay before returning. Useful for testing timeout handling, loading states in UI, concurrent flow behavior, and rate limiting responses.

Source

agents/debug/delay/delay.yaml

Input Schema

Output Schema

Configuration

Examples

Simple Delay

Output:

Delay with Data Passthrough

Output:

Test Timeout Handling

Test Concurrent Execution

Use Cases

  • Test Timeouts: Verify timeout configuration works correctly
  • Simulate Slow APIs: Test how your ensemble handles slow external services
  • Loading State Testing: Test UI loading indicators
  • Rate Limiting: Test behavior when services are rate-limited
  • Concurrent Flow Testing: Understand parallel execution timing
  • Retry Logic: Test backoff strategies with artificial delays

Inspect Context Agent

The inspect-context agent returns information about the current execution context, including auth state, headers, environment variables, and Cloudflare bindings.
Security Critical: Do NOT expose this agent on public endpoints in production. It may reveal internal state, configuration, environment variables, authentication details, and system bindings that should remain private.

Description

Inspects and returns information about the current execution context. Useful for debugging auth propagation, headers, and environment variables.

Source

agents/debug/inspect-context/inspect-context.yaml

Input Schema

Output Schema

Configuration

Examples

Basic Context Inspection

Output:

Full Inspection (Development Only)

Debug Auth Propagation

Safe Development Ensemble

Use Cases

  • Debug Authentication: Verify auth tokens are propagated correctly
  • Inspect Headers: Check what headers reach your ensemble
  • Environment Validation: Confirm environment variables are set
  • Binding Discovery: See what Cloudflare bindings are available
  • Request Debugging: Understand the complete request context
  • Integration Testing: Validate external service auth headers

Security Considerations

Production Security Checklist:
  • Never expose inspect-context on public endpoints
  • Always require authentication for diagnostic endpoints
  • Use environment checks to disable in production
  • Redact sensitive values before logging
  • Consider removing or disabling in production builds
  • Review output before sharing logs or screenshots
  • Use conditional execution based on environment
  • Implement IP whitelisting for diagnostic endpoints
  • Add audit logging when context inspection occurs
  • Consider time-based access tokens for debug endpoints

Common Debug Patterns

Pipeline Inspection

Insert echo agents between pipeline stages to inspect data transformations:

Timeout Testing

Test different timeout scenarios systematically:

Context Validation

Verify execution context before sensitive operations:

Operations Reference

Learn about all available operations

Flow Control

Master conditions and flow patterns

Writing Ensembles

Handle failures and implement fallbacks

Testing & Observability

Write tests for your workflows