SkillsReviewed · BagelHole

Agent Evals

Agent Evals is an instruction skill for developers evaluating AI agents, but its examples require application code and several corrections before use. It provides patterns for pytest assertions, model-based grading, Promptfoo evaluations, GitHub Actions gates and score comparisons over time.

Researched 17 Nov 2026

In short.

Agent Evals is an instruction skill for developers adding quality checks to AI agents, but its examples need integration and contain code and scoring defects. It covers prompt responses, tool choices, multistep tasks, adversarial inputs, model-based grading and CI automation. Its value is the concrete structure it gives an evaluation project. Static inspection identifies invalid judge-prompt formatting, contradictory sample expectations, weak safety assertions and gaps in result handling. The document supplies no execution results, complete runnable harness or verified operating costs.

Researched and written by an AI model and checked by a second AI model. How it works

The scope covers the single devops/ai/agent-evals/SKILL.md file at the pinned revision and the repository-root LICENSE. All embedded examples are included as document content. Other repository folders, linked skills, external service documentation and referenced application, fixture and dependency files are outside this evidence. No installation, code execution, model calls or CI runs were performed; findings about defects follow from static inspection, and runtime behavior remains unverified.

The overview

Identity

Agent Evals is the agent-evals skill in BagelHole/DevOps-Security-Agent-Skills, located at devops/ai/agent-evals. Its front matter identifies devops-skills as the author, declares version 1.0 and lists MIT as the license.

The skill consists of a SKILL.md instruction document containing code and configuration examples. Paths such as evals/test_unit.py and .github/workflows/agent-evals.yml label embedded examples; those files are not supplied separately in the scoped material.

Assessment

This is a useful starting structure for a developer who already has an agent and wants repeatable checks around prompt or application changes. It makes the distinction between response correctness, tool decisions, complete tasks and defensive testing concrete.

Adoption requires engineering work. The document references application interfaces, fixtures and dependency files that it does not provide, and several examples need correction. Runtime reliability, evaluation accuracy and deployment effectiveness remain unverified.

Users

The strongest fit is developers maintaining agents that generate responses, select tools or perform multistep work. Platform engineers can adapt the CI examples, while defensive security engineers can use the adversarial cases as initial regression fixtures.

Beginners receive concrete examples of evaluation layers, but need Python, test-writing and API-integration knowledge to make them operational. Teams needing a complete evaluation application would have to supply the missing implementation and reporting components.

Capabilities

The examples check structured JSON responses, required and forbidden text, expected tool names and parameter subsets. Multistep examples inspect tool traces, final-answer content, token consumption and maximum step counts.

Additional examples cover prompt-injection and data-exfiltration probes, model-based grading, Promptfoo rubrics and cost assertions, GitHub Actions automation, Makefile commands and baseline comparisons. RAG retrieval accuracy is named as a use case, but no retrieval-specific metric or worked retrieval evaluation is supplied.

Using it

Requirements

The stated prerequisites are Python 3.10 or newer, an LLM API key, and pytest or a custom evaluation harness. Braintrust, Promptfoo and LangSmith accounts are listed as optional. The concrete judge example uses the anthropic Python package, and the CI example expects ANTHROPIC_API_KEY.

Your application must provide generate_response, plan_tool_calls and an Agent interface with the illustrated output and trace fields. The Promptfoo route uses npx. The workflow references requirements-eval.txt, and the Makefile uses pytest timeout options, but dependency contents and a compatible environment are not supplied.

Mechanism

A golden dataset pairs representative inputs with expected behavior. The pytest examples send those inputs to an application and assert properties of the responses or tool calls. A separate grading-model example scores accuracy, helpfulness and safety from 1 to 5; its test requires safety of at least 4 for every case and average accuracy of at least 3.5.

The GitHub Actions example runs prompt and safety checks on qualifying pull requests and a weekly schedule, with tool and multistep regression checks on pull requests. A separate script compares accuracy, safety and tool_selection against a baseline and exits with failure for a numeric drop greater than 0.05. The illustrated workflow does not invoke that drift script.

Setup

To adapt the material, obtain SKILL.md from its original source, create the illustrated test files in your application, and implement the application hooks they call. Supply the referenced unit and quality fixtures, dependency file, prompt file and results location.

Correct the judge-prompt formatting and missing imports, then revise sample expectations to match your intended behavior. Configure the chosen provider credentials and confirm model availability. Once those dependencies are in place, the document offers pytest commands for the Python route and npx promptfoo eval for the configuration route. Neither route was executed for this report.

Example

The calc-01 fixture asks for a 15% tip on $42.50 and lists both 6.37 and 6.38 under must_contain. The assertion loop requires every listed substring, so an answer containing only one of those amounts would fail. If the intended rule accepts either rounding, the example needs an explicit alternative-match or numeric assertion.

The tool example expects a request for current Python vulnerabilities to select search_cve_database with language set to python. That checks the proposed tool name and parameter subset; it does not establish that the tool's returned information is correct or current.

Assessment & evidence

Limitations

The judge prompt includes literal JSON braces but passes the string to Python str.format without escaping them. Python would interpret those braces as a replacement field, preventing the illustrated formatting call from working as intended. The separate safety snippet omits imports for pytest and generate_response; the judge test also lacks module-level definitions for json and generate_response.

The safety checks rely on a few words and one example domain. They can reject harmless discussion while missing disclosures that use different wording. The base64 assertion allows any response shorter than 500 characters even when it contains that term. These checks do not demonstrate comprehensive resistance to injection or data loss.

The drift script defaults missing metrics to zero, allowing absent measurements to produce a no-regression result. The CI comment labels JUnit's total test count as passed and assumes a regression-results file exists even when earlier failures may prevent its creation.

No benchmark results, judge calibration, repeated-run variability measurements or demonstrated RAG evaluation are supplied. Temperature zero is recommended, but reproducibility is not established.

Reasoning

The useful design choice is separating different failure modes. A correct-looking final answer does not establish correct tool selection, and a step limit does not establish answer quality. Separate checks make those distinctions visible.

The sample assertions also show why an evaluation suite needs validation of its own. Keyword presence measures wording, and a grading model produces another model judgment. Application-specific expected behavior, calibrated rubrics and explicit handling of missing results are necessary before the illustrated gates can support deployment decisions.

Alternatives

The document offers two concrete implementation routes: pytest or a custom Python harness for code-based assertions, and Promptfoo for configuration-based evaluations with text checks, rubrics and a cost assertion.

Braintrust and LangSmith are named as optional services, but no implementations or comparative results are supplied for them. Related security and observability skills are linked from the document; their contents and suitability are not assessed here. The evidence supports no cost or performance ranking among these options.

Evidence

The original skill document is available at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/devops/ai/agent-evals/SKILL.md]. It contains the instructions and all illustrated Python, YAML, shell and Makefile material.

The accompanying repository license is available at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/LICENSE]. The evidence consists of these two files; it includes no execution logs, benchmark outputs or complete application implementation.

Access & freshness

Costs

Operating cost is unknown. Evaluating an agent can consume model calls, and model-based grading adds separate calls. The evidence provides no measured token usage, per-run bill, service pricing or CI expense.

A Promptfoo example sets a cost assertion threshold of 0.01. That is a configured evaluation limit, not an established price for using the skill; the document does not state its currency or a total workload cost. Optional account charges are also unknown.

Rights

The accompanying MIT License names Toby Miller as the 2026 copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions.

The license supplies the material without warranty. The skill's front matter also declares MIT. These notices do not establish terms or charges for external model providers, optional services or evaluation data supplied by a user.

Freshness

The document declares version 1.0. The source snapshot is pinned to revision 0365f57a079b1332f95cf26e31dd2d5332a8399f and was captured on 2026-11-17 at 03:36:53.143 UTC. That timestamp identifies the snapshot, not a release date.

The examples reference claude-sonnet-4-6 and specific GitHub Actions versions. Current model availability, API compatibility and external tooling behavior are not established by the supplied material.

Actions

Begin with a small dataset representing your agent's actual tasks and failures. Repair the formatting and import errors, resolve the tip fixture's conflicting expectations, and validate both expected passes and expected failures before relying on the results.

Before enabling deployment gates, require valid metric fields, correct the JUnit counting and missing-file handling, and connect baseline comparisons explicitly if needed. Assess provider compatibility, repeated-run variation and actual API costs with your workload. Keep broader safety and retrieval claims unverified until corresponding evaluations exist.

Evidence for this report

LICENSEnotice · checked 2026-11-17
devops/ai/agent-evals/SKILL.mdselected · checked 2026-11-17