agent evals harness

    by Nacho Rodriguez

    1

    Turn agent testing into defensible numbers with synthetic ground truth, harm counters, and deterministic CI gates.

    $4.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    agent evals harness

    Example session with this skill installed

    I have a RAG agent that extracts price data from PDFs. I need to know if it's actually accurate and make sure it stops hallucinating numbers when they aren't there. Build an eval harness.

    • Read your context and instructions
    • Compiled the agent evals harness

    I have analyzed your RAG agent and created a structured evaluation harness in the /evals directory. I've defined precision/recall metrics for the price extraction and a harm counter for invented values.

    Agent Evaluation Harness

    ComponentStatusLocation
    Behaviors ListDefined (Extraction, Units, Citation)evals/README.md
    Ground Truth10 Synthetic Cases Generatedevals/cases.json
    Scoring ScriptPrecision/Recall + Unit Tolerancescripts/scorecard.py
    BaselineInitial Keyless Floor Recordedevals/baseline.json

    Proposed Scorecard Summary

    
    # scripts/scorecard.py snippet
    def score_price_extraction(expected, actual):
        # Tolerance: +/- 0.01 for currency rounding
        if abs(expected['value'] - actual['value']) > 0.01:
            return 0
        if expected['currency'] != actual['currency']:
            return 0
        return 1
    
    # Harm Counter: Invented numbers (hallucinations)
    # Target: 0. Any value > 0 fails CI.
    

    Initial Results Table

    MetricKeyless BaselineModel (GPT-4o)Status
    Price Accuracy0.000.92PASS
    Currency Match0.100.98PASS
    Citation Hit@10.000.85PASS
    Hallucination Count01FAIL

    Next steps

    1. Review the synthetic cases in evals/cases.json to ensure the price ranges are realistic.
    2. Run python scripts/scorecard.py --check in your CI pipeline to gate merges.
    3. Investigate the 1 hallucination recorded in the GPT-4o run to refine the system prompt.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Your agent works, but you cannot prove it. When you change a prompt or swap models, you are guessing if quality improved or regressed. Manual testing does not scale, and using an LLM to "judge" itself lacks the rigor needed for production systems. This skill replaces vibes with a defensible evaluation harness that uses ground truth and deterministic scoring.

    What it does

    • Inventory behaviors and harms to define what the agent must do and what must never happen.
    • Generate synthetic ground truth using independent code or reference solvers to ensure the "right" answer is mathematically certain.
    • Implement keyless baselines so CI pipelines can run for free without hitting API limits.
    • Calculate precision and recall for extractions, routing, and citations using code rather than model-based grading.
    • Enforce CI gates that fail builds if harm counters rise or scores drop below established baselines.

    How it works

    1. Audit behaviors by reading your project files to identify critical tool choices, routing logic, and potential harms.
    2. Build the case schema to define test cases including edge cases like missing info or hidden instructions.
    3. Configure the scorecard script to handle exact matches, unit tolerances, and citation verification.
    4. Initialize the baseline by running the harness and committing the initial results to the repository.

    Frameworks & tools

    Works with any LLM framework (LangChain, AutoGen, or custom scripts). Requires Python for the scoring scripts and basic CI/CD (GitHub Actions, GitLab CI) for the gate enforcement.

    Why this beats prompting it yourself

    Most prompts result in "vibe-check" evals where the model grades itself, leading to circular logic. This skill forces a rigorous separation between the model under test and the ground truth, ensuring your metrics are reproducible and honest.

    Use cases

    • Comparing prompt versions to see if a specific extraction improved.
    • Benchmarking a cheaper model against a flagship model for a specific tool-calling task.
    • Preventing regressions in complex routing logic during refactors.
    • Generating a "known limitations" report for stakeholders based on hard failure data.

    Known limitations

    Does not support non-deterministic "creative" evaluations where no ground truth exists. Requires manual entry or generator logic for ground truth data; it will not hallucinate test cases for you.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill provides a structured framework to replace subjective "vibe-checks" with deterministic metrics like precision, recall, and harm counters, allowing you to prove your agent's reliability with hard data.

    The harness is framework-agnostic and works with any Python-based setup, including LangChain, AutoGen, or custom implementations, provided you can output the agent's responses for scoring.

    Setup involves auditing your agent's behaviors, defining a test case schema, and configuring the scoring scripts to establish your initial performance baseline.

    By using code-based scoring and reference solvers rather than LLM calls for evaluation, the harness allows you to run high-volume testing in CI/CD without incurring API costs.

    The skill is designed for tasks with a "correct" answer or specific constraints; it is not suited for evaluating purely creative writing or subjective "personality" traits where no ground truth exists.

    You receive the core evaluation framework, templates for behavior auditing, custom scoring scripts, and documentation on implementing deterministic CI gates.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.