GitHub Actions Integration
February 13, 2026 · View on GitHub
AgentEval integrates with GitHub Actions to post evaluation results as PR comments and generate badges.
Setup
- Add a workflow — copy
examples/agenteval.ymlto.github/workflows/ - Configure secrets —
GITHUB_TOKENis provided automatically by Actions - Create your suite — define
suite.yamlwith your eval cases
Commands
agenteval github-comment
Posts (or updates) a PR comment with a results table.
agenteval github-comment --run <run_id> [--dry-run] [--db agenteval.db]
--dry-runprints the markdown without posting- Requires
GITHUB_TOKEN,GITHUB_REPOSITORY, andGITHUB_EVENT_PATHenv vars (set automatically in Actions) - Uses a hidden HTML marker to update existing comments instead of creating duplicates
agenteval badge
Generates a shields.io-style SVG badge with the pass rate.
agenteval badge --run <run_id> --output badge.svg [--db agenteval.db]
Colors: green (≥90%), yellow (≥70%), red (<70%).
Comment Format
The PR comment includes:
- Pass/fail status with emoji
- Summary line with pass rate and regression count
- Results table (case name, status, score, latency, cost)
- Regression callout section if any detected