Skip to main content

handle_diagnose

Function handle_diagnose 

Source
pub fn handle_diagnose(
    colors: Colors,
    config: &Config,
    registry: &AgentRegistry,
    config_path: &Path,
    config_sources: &[ConfigSource],
    executor: &dyn ProcessExecutor,
)
Expand description

Handle –diagnose command.

Outputs comprehensive diagnostic information including:

  • System information (OS, architecture, working directory)
  • Git status and configuration
  • Agent configuration and availability
  • PROMPT.md validation
  • Checkpoint status
  • Project stack detection

This output is designed to be copy-pasted into bug reports.

§Arguments

  • colors - Color configuration for output formatting
  • config - The current Ralph configuration
  • registry - The agent registry
  • config_path - Path to the unified config file
  • config_sources - List of configuration sources that were loaded