Skip to main content
Block merges and deploys when your agent’s pass rate drops below your configured threshold, using GitHub Actions as the runner.

Prerequisites

  1. A dataset with CI/CD enabled in AgentX settings.
  2. Your AGENTX_API_KEY stored as a GitHub Actions secret.
  3. Your AGENTX_DATASET_ID, visible in the dataset settings page URL.

Workflow template

Save as .github/workflows/eval.yml in your repository:

Using a dedicated eval script

For larger test setups, use a separate script:
In the workflow:

Adding required status checks

To block merges when the gate fails:
  1. Go to your GitHub repo → Settings → Branches
  2. Add a branch protection rule for main
  3. Enable Require status checks to pass before merging
  4. Add eval / Evaluate agent as a required check

Viewing results

Every CI run is recorded in the CI Runs tab in your AgentX workspace, showing:
  • Gate result (PASS / FAIL) badge
  • Per-question scores and justifications
  • Branch, commit SHA, and PR number
  • Threshold violations

Environment variables