DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to gate promptfoo eval results before a release with Eval Forge

Convert promptfoo JSON output into a portable artifact and run a policy gate on it.

Short answer: Install the gate with pip install evalforge-ci; then run promptfoo eval --output build/promptfoo-results.json; run evalforge import promptfoo build/promptfoo-results.json --output build/evalforge-artifact.json --source-revision "$GITHUB_SHA". All steps.

Who it is forA developer who already runs promptfoo evaluations and wants a release decision in CI without sending prompts or traces anywhere.

The problempromptfoo output uses its own result shape, so it cannot be compared with a baseline or fed to a CI policy directly.

The outcomeA portable Eval Forge artifact built from promptfoo results, checked by a policy file that does not copy prompts, responses, or traces.

What you need first

  • Python 3 with pip and a virtual environment
  • A committed evaluation artifact, or results from promptfoo, Ragas, or DeepEval
  • Git, and a GitHub repository if you want the composite Action
  • Docker, only if you use the Compose path

Steps

  1. Install the gate with pip install evalforge-ci.
  2. Run promptfoo eval --output build/promptfoo-results.json.
  3. Run evalforge import promptfoo build/promptfoo-results.json --output build/evalforge-artifact.json --source-revision "$GITHUB_SHA". (inferred, check the README)
  4. Run evalforge gate build/evalforge-artifact.json --policy examples/promptfoo_policy.json. (inferred, check the README)

Prompt for your agent

In the EvalForge repo (https://github.com/jsdhwfmax/EvalForge), convert a promptfoo results file at <promptfoo-results-path> with `evalforge import promptfoo <promptfoo-results-path> --output build/evalforge-artifact.json`, then run `evalforge gate build/evalforge-artifact.json --policy examples/promptfoo_policy.json`. Expected output is the gate verdict; verify the adapter accepted results schema 3.

Caveat. The promptfoo adapter is verified against promptfoo 0.122.2 and requires results schema 3, so other promptfoo versions may be rejected.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for jsdhwfmax/EvalForge and "Gate promptfoo eval results before a release"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer