# Function computeAdaptiveThresholds

- computeAdaptiveThresholds(
  store: OutcomeStore,
  cli: "claude" | "gemini" | "codex" | "opencode",
  category:
  | "planning"
  | "code_generation"
  | "code_review"
  | "research"
  | "architecture"
  | "security_review"
  | "documentation"
  | "testing"
  | "devops"
  | "exploration",
  ): AdaptiveThresholdResult

  Computes adaptive thresholds for a CLI+category pair from outcome data.

  Below cold start threshold: returns defaults with zero confidence. Above threshold: adjusts baseline toward observed rate, scales max bonus by confidence, and detects trend.

  #### Parameters

  - store: OutcomeStore
  - cli: "claude" | "gemini" | "codex" | "opencode"
  - category:
    | "planning"
    | "code_generation"
    | "code_review"
    | "research"
    | "architecture"
    | "security_review"
    | "documentation"
    | "testing"
    | "devops"
    | "exploration"

  #### Returns AdaptiveThresholdResult

  - Defined in packages/nexus-agents/src/orchestration/outcomes/adaptive-thresholds.ts:63