# Function executeCliRetryLoop

CLI Adapters exports - CLI integration with defensive parsing Split from index.ts for file size compliance (Issue #285)

- executeCliRetryLoop(
  executeFn: () => Promise<Result<CliResponse, CliError>>,
  config: CliRetryLoopConfig,
  ): Promise<Result<CliRetryResult, CliError>>

  Executes a CLI operation with retry logic and optional circuit breaker.

  Used by both BaseCliAdapter (no circuit breaker) and GeminiCliAdapter (with circuit breaker) to eliminate duplicate retry implementations.

  #### Parameters

  - executeFn: () => Promise<Result<CliResponse, CliError>>
  - config: CliRetryLoopConfig

  #### Returns Promise<Result<CliRetryResult, CliError>>

  - Defined in packages/nexus-agents/src/cli-adapters/cli-retry-loop.ts:107