# Ralph Configuration
max_iterations: 100
max_runtime: 14400
agent: claude
verbose: true

# Unified Agent Integration - Auto-Triggered Capabilities
# These agent platforms are automatically available when using /ralph
unified_agents:
  enabled: true
  platforms:
    - name: prometheus
      description: "Knowledge graph code reasoning with AST analysis"
      capabilities:
        - bug_fixing
        - semantic_search
        - context_retrieval
        - regression_testing
        - issue_classification
      mcp_server: "prometheus-mcp"
      auto_trigger:
        - "bug"
        - "fix"
        - "error"
        - "issue"
        - "regression"
        - "test"

    - name: everycode
      description: "Fast terminal-based coding agent with Auto Drive"
      capabilities:
        - auto_drive
        - planning
        - multi_agent_solve
        - auto_review
        - browser_automation
      mcp_server: "everycode-mcp"
      auto_trigger:
        - "plan"
        - "implement"
        - "solve"
        - "review"
        - "browser"
        - "automate"

    - name: dexto
      description: "Agent harness with orchestration and session management"
      capabilities:
        - agent_orchestration
        - session_management
        - mcp_operations
        - memory_management
        - tool_composition
      mcp_server: "dexto-mcp"
      auto_trigger:
        - "orchestrate"
        - "coordinate"
        - "workflow"
        - "multi-step"
        - "session"

# Agent Selection Strategy
agent_selection:
  strategy: intelligent  # Options: intelligent, priority, round_robin
  priorities:
    bug_fixing: [prometheus, everycode, dexto]
    planning: [everycode, prometheus, dexto]
    solving: [everycode, dexto, prometheus]
    review: [everycode, prometheus, dexto]
    context: [prometheus, dexto, everycode]
    orchestration: [dexto, everycode, prometheus]

# MCP Server Configuration
mcp_servers:
  prometheus:
    command: "python"
    args: ["-m", "prometheus_mcp", "--repo", "{repo_path}"]
  everycode:
    command: "python"
    args: ["-m", "everycode_mcp", "--repo", "{repo_path}"]
  dexto:
    command: "node"
    args: ["{dexto_path}/dist/cli.js", "--config", "{dexto_config}"]

# Auto-Trigger Patterns
# When these patterns are detected in /ralph input, automatically use corresponding agents
auto_triggers:
  prometheus:
    patterns:
      - "\\bfix\\s+\\w*bug\\b"
      - "\\bdebug\\b"
      - "\\btest\\b.*\\bfail\\b"
      - "\\breproduction\\b"
      - "\\bregression\\b"
    tools:
      - prometheus_classify_issue
      - prometheus_fix_bug
      - prometheus_run_tests

  everycode:
    patterns:
      - "\\bplan\\b.*\\bimplement\\b"
      - "\\bfeature\\b.*\\badd\\b"
      - "\\bsolve\\b.*\\bproblem\\b"
      - "\\breview\\b.*\\bcode\\b"
      - "\\bauto\\s+drive\\b"
    tools:
      - everycode_auto_drive
      - everycode_plan
      - everycode_solve
      - everycode_auto_review

  dexto:
    patterns:
      - "\\borchestrate\\b"
      - "\\bcoordinate\\b.*\\bagents\\b"
      - "\\bworkflow\\b"
      - "\\bmulti-?step\\b"
      - "\\bpipeline\\b"
    tools:
      - dexto_orchestrate
      - dexto_create_agent
      - dexto_run_agent
