agent evals harness
Turn agent testing into defensible numbers with synthetic ground truth, harm counters, and deterministic CI gates.
$4.99
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
| Component | Status | Location |
|---|---|---|
| Behaviors List | Defined (Extraction, Units, Citation) | evals/README.md |
| Ground Truth | 10 Synthetic Cases Generated | evals/cases.json |
| Scoring Script | Precision/Recall + Unit Tolerance | scripts/scorecard.py |
| Baseline | Initial Keyless Floor Recorded | evals/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
| Metric | Keyless Baseline | Model (GPT-4o) | Status |
|---|---|---|---|
| Price Accuracy | 0.00 | 0.92 | PASS |
| Currency Match | 0.10 | 0.98 | PASS |
| Citation Hit@1 | 0.00 | 0.85 | PASS |
| Hallucination Count | 0 | 1 | FAIL |
Next steps
- Review the synthetic cases in
evals/cases.jsonto ensure the price ranges are realistic. - Run
python scripts/scorecard.py --checkin your CI pipeline to gate merges. - 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
- Audit behaviors by reading your project files to identify critical tool choices, routing logic, and potential harms.
- Build the case schema to define test cases including edge cases like missing info or hidden instructions.
- Configure the scorecard script to handle exact matches, unit tolerances, and citation verification.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.
Trust & safety
Security scan
Security scan passed 16 days ago
Permissions
What's inside
Frequently Asked Questions
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.