# Eval Set Builder: Regression Evals From Real AI Agent Logs

> Turn your AI agent's production logs into a scrubbed regression eval suite, test prompt or model changes against it before release, and block the release when cases that used to pass now fail.

Eval Set Builder: Regression Evals From Real AI Agent Logs is a paid AI agent skill on Agensi by AGI Tools, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [AGI Tools](https://www.agensi.io/creators/agi-tools)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0.2
- Last updated: 2026-12-01
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/eval-set-builder-regression-evals-from-real-ai-agent-logs
- Tags: testing, llm-ops, ai-agents, python, regression-testing, pii-scrubbing, evals, llm-evaluation

## About this skill

### The problem
Prompt and model changes ship on gut feeling because building an eval set by hand takes days. Then a refusal turns into compliance, a tool call goes to the wrong tool, or an answer loses the order number, and you hear about it from a customer.

### What Eval Set Builder does
Your best test cases already exist: the conversations your agent handled in production. Eval Set Builder turns them into a regression suite with a real program, not another prompt:

- **Build from your logs:** chat transcripts in OpenAI message format, OpenAI or Anthropic API request/response logs, and prompt/completion logs (JSONL, JSON or CSV). Tool calls are kept as structured name and arguments.
- **Scrub before writing:** emails, phone numbers, card numbers (Luhn-checked), IBANs, IPv4 addresses, common API key and token formats, JWTs, private keys, labelled passwords and credentials in URLs become placeholders such as [EMAIL_1] before anything is written.
- **Clean and stable:** exact and near-duplicate removal, a count of identical questions answered differently, and a dev/test split fixed by a hash of each case, so the test set does not move when you add logs.
- **Checks from the logged answer:** the tool name and ids of tool calls, JSON fields, refusals that must stay refusals, exact short answers, and conservative checks for free text, which is flagged for your review.
- **Grade and gate:** grade the current version and the candidate on the same cases, then `gate` exits 1 when a case that passed now fails, a critical case fails, or the pass rate drops. Markdown summary for people, JSON and JUnit XML for CI.

### Fails closed
A missing output, two different outputs for one case, a case without valid checks, a passing case that disappeared, checks changed between the two runs, or a report edited after grading all fail the gate. Missing evidence never becomes a PASS.

### What you get
- `scripts/evalset.py`: build, grade and gate. Python 3.9+, standard library only. No install, no account, no network.
- `SKILL.md`: the workflow your agent follows, from collecting logs to the release decision.
- `reference/formats.md`: supported log shapes, the ten check types, the scrubbing scope, report fields and gate rules.
- A reproducible demo (`examples/demo.py`) on synthetic logs that rebuilds the example below, with every generated file.
- 88 automated tests, run on Linux and Windows with Python 3.9 and 3.13. macOS has not been verified.

### Limits
- Checks are deterministic: they catch the regressions they encode, not tone or overall helpfulness. Free-text cases are flagged for review.
- Scrubbing is pattern-based, not anonymisation: personal names, street addresses, dates of birth, national IDs and IPv6 addresses are not detected.
- It does not run your model or agent: you produce the outputs with your own runner and save one {"id", "output"} line per case.

### Privacy
Runs locally. Makes no network calls and sends nothing anywhere. Reads only the log files you name and writes only the output folder and reports you name.

Built by AGI Tools Team.

## Requires

- Python 3.9+

Your agent or your own script produces the outputs to grade (one {"id", "output"} line per case). No model access is needed by the skill itself.

## Known limitations

Checks are deterministic and catch the regressions they encode; they do not score free-text quality, tone or helpfulness. Scrubbing is pattern-based: personal names, street addresses, dates of birth, national IDs and IPv6 addresses are not detected. It does not run your model or agent: you produce the outputs to grade with your own runner. Reference answers come from your logs and can be wrong: review the flagged cases before relying on them.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Eval Set Builder: Regression Evals From Real AI Agent Logs skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it call a model or need an API key?

No. You run your agent on the cases with your own runner and save one {"id", "output"} line per case. The skill builds, grades and gates locally with Python's standard library.

### What is scrubbed from my logs?

Emails, phone numbers, card numbers, IBANs, IPv4 addresses, common API key and token formats, JWTs, private keys, labelled passwords and credentials in URLs are replaced before anything is written. Names and street addresses are not detected, so review cases before sharing them.

### Can a missing output or an edited report pass the gate?

No. Missing or conflicting outputs, cases without valid checks, checks changed between runs and reports edited after grading all fail the gate. The integrity check catches edits; it is not a cryptographic signature.

### Does it work on Windows and macOS?

Windows and Linux: yes, the full test suite passes on both with Python 3.9 and 3.13. macOS: not verified yet. The script uses only the Python standard library and nothing platform-specific, but check the results before relying on them there.

### Is a PASS proof of answer quality?

No. The checks catch the regressions they encode, such as a wrong tool, a missing order number, broken JSON or a refusal turned into compliance. They do not score tone or helpfulness, so free-text cases are flagged for review.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
