# Function cliCalculateBackoffDelay

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

- cliCalculateBackoffDelay(
  attempt: number,
  baseDelayMs: number,
  maxDelayMs: number,
  ): number

  Calculates exponential backoff delay with jitter.

  #### Parameters

  - attempt: number

    Current attempt number (1-indexed)

  - baseDelayMs: number

    Base delay in milliseconds

  - maxDelayMs: number

    Maximum delay cap in milliseconds

  #### Returns number

  Delay in milliseconds with jitter applied

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