AI configuration - Momentic

Options

ai.agentConfig

Record<agent, version>

Choose which version of prompts and models to use for each AI task. Use the latest version for new projects. Omit an agent to inherit the organization default. See Agents for available versions per agent.

momentic.config.yaml

ai:
  agentConfig:
    locator: v5
    assertion: v5
    visual-assertion: v5
    text-extraction: v3
    failure-recovery: v2

Mobile projects also set the platform locator agents:

momentic.config.yaml

ai:
  agentConfig:
    android-locator: v2
    ios-locator: v2

ai.classification

boolean | object

Classification’s on/off toggle and exit-code override are configured here in momentic.config.yaml, so they live alongside your tests and apply to local and CI runs. Failure categories and their actions stay cloud-managed.

Default: false. Enable results classification for failed CLI runs. Use the true shorthand to enable with defaults, or an object for finer control:

momentic.config.yaml

ai:
  classification:
    enabled: true
    overrideExitCode: true

We recommend enabling classification. Beyond triaging failed runs, it also affects transient failure recovery: when recovery is eligible (its config is on and the run is in CI), the classifier runs while the run is still executing and decides whether a failed step is recovered. Only failures whose category action is Heal and that the classifier judges recoverable are retried. With classification off, a built-in recovery planner makes that decision instead.

ai.useMemory

boolean

Default: true. Allow AI agents to use data from past test runs to keep element locators and assertions consistent across runs. It sets the project default and can be overridden per test. See Memory for details.

momentic.config.yaml

ai:
  useMemory: true

ai.failureRecovery

boolean

Default: false. Enable Failure recovery. Momentic proposes and executes step changes to recover from certain test failures.

momentic.config.yaml

ai:
  failureRecovery: true

ai.aiPageFiltering

boolean

Deprecated and kept only for backwards compatibility. Page filtering is always enabled for large browser pages and cannot be customized after CLI version 2.94.0. Safe to remove from existing config files.

Default: true.