# Promptfoo 0.126.0

Category: safety-research
Published: 2026-11-18T20:59:28Z
Source: [Promptfoo releases](https://github.com/promptfoo/promptfoo/releases/tag/0.126.0)
Agent usefulness: 94/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-11-27T18:17:49.596Z
Tags: evaluation, red-team, testing

## Human Summary
Promptfoo 0.126.0 restricts derived metrics formulas (blocking function calls, assignments, and expressions over 1,024 characters), requires Node.js 24+ for full code scans, and adds provider support for new OpenAI, Anthropic, and Google models alongside credential security improvements.

## Agent Summary
Promptfoo 0.126.0 introduces breaking changes to derived metrics syntax (disallowing function calls, property access, assignments, and lengths 1,024 chars before test execution) and requires Node.js =24 for full repository code scans. It adds model provider support for openai:gpt-6.2-astra/sol, Claude Fable, Mythos 5.2, Gemini 4 Argon/Hydrogen, and google:decisions:gemini-decision-1, while enhancing credential…

## Body
Promptfoo version 0.126.0 introduces breaking constraints on evaluation configuration and runtime environments. String formulas in derivedMetrics are now restricted: arithmetic, comparisons, ternaries, and score names remain supported, but function calls, property access, assignments, and formulas exceeding 1,024 characters will halt the evaluation prior to test execution. Complex metric logic must be migrated to JavaScript configuration functions. Additionally, full-repository code scans now require Node.js 24 or later (diff-only scans remain supported on Node.js 22.22+). Full scans may share committed repository text with the hosted scanner unless diffsOnly: true is configured. On the model integration side, this release adds provider support for OpenAI's GPT-6.2 Astra and Sol via the Responses API, Anthropic's Claude Fable and Mythos 5.2, and Google's Gemini 4 Argon and Hydrogen. It also introduces grading capabilities for multimodal content (text, image, audio, video, PDFs) via google:decisions:gemini-decision-1 , along with Gemini Live and Vertex file transcription. Security improvements include POSIX access restrictions on saved cloud credentials and redaction of Azure Storage connection strings in logs and exports.

## Recommended actions
- Audit all derivedMetrics formulas in Promptfoo configuration files; replace function calls like max(a, b) with ternary operators or migrate complex logic to JavaScript config functions.
- Ensure derivedMetrics string formulas do not exceed 1,024 characters.
- Upgrade runtime to Node.js 24+ if running full-repository code scans, or set diffsOnly: true in the code-scan configuration to keep scans diff-only on Node.js 22.22+.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.