/loxihart-ai:evaluating-ai-agentsfrom loxihart-ai
Designs and runs evaluations (evals) for custom AI agents to measure behavioral quality, catch regressions, and establish production readiness. Based on Anthropic's "Demystifying evals for AI agents" (Jan 2026). Covers eval structure (task/trial/transcript/outcome), grader selection (code-based, model-based, human), capability vs. regression suites, task set construction, LLM-as-judge calibration, pass@k vs pass^k reporting, and CI integration. Use when the user mentions: agent eval, evaluate this agent, does my agent work reliably, regression test, agent quality, build an eval suite, test my agent, LLM judge, grader, benchmark my agent, agent accuracy, or any request to measure whether an agent is producing correct or reliable outputs. Also triggers on: my agent feels worse, something regressed, how do I know if my agent is working, I need to test before shipping.
Ships in loxihart-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turns "I think this agent works" into a measurable, repeatable signal. Based on Anthropic's field-tested evaluation framework for real-world agents.
The core problem: without evals, debugging is reactive — wait for complaints, reproduce manually, fix the bug, hope nothing else broke. Evals make behavioral changes visible before they reach users.
Should trigger:
Should NOT trigger:
Learn these before designing any eval. Imprecise vocabulary produces imprecise evals.
| Term | Definition |
|---|---|
| Task | A single test with defined inputs and success criteria |
| Trial | One attempt at a task. Run multiple — agents are stochastic |
| Grader | Logic that scores performance. One task can have multiple graders |
| Transcript | The complete record: outputs, tool calls, reasoning, intermediate results |
| Outcome | The final state in the environment. Not what the agent said happened — what actually happened |
| Eval harness | Infrastructure that runs evals end-to-end and aggregates results |
| Agent harness | The scaffold that enables the model to act as an agent |
| Eval suite | A collection of tasks measuring a specific capability or behavior |
The transcript vs. outcome distinction is critical. A workflow agent might log "Ticket created successfully" (transcript) while the outcome — whether a ticket actually exists in FreshService — is the ground truth. Always grade the outcome, not the agent's report of the outcome.
You're evaluating model + harness together, not the model alone. A change to your n8n workflow or system prompt is a change to the agent being evaluated, regardless of whether the underlying model changed.
What are you trying to measure?
│
├─ "Does this agent work at all / correctly?"
│ → Capability eval (Section 2) — target low pass rate, hill to climb
│
├─ "Did I break something with this change?"
│ → Regression eval (Section 2) — target ~100% pass rate, detect drift
│
├─ "How do I grade this agent's outputs?"
│ → Grader selection (Section 3)
│
├─ "How do I build the test cases?"
│ → Task set construction (Section 4)
│
├─ "I need to evaluate an n8n workflow or Claude API agent specifically"
│ → Agent-type patterns (Section 5)
│
└─ "What numbers should I report?"
→ Metrics and reporting (Section 6)
Question: "What can this agent do well?" Target pass rate: Low — start where the agent struggles. Purpose: A hill to climb. These measure improvement.
Design capability evals around the behaviors that matter most for production:
Question: "Does the agent still handle tasks it used to?" Target pass rate: ~100%. Any drop is a signal to investigate. Purpose: Protection against backsliding.
Seed from real production failures. Every bug you fix in production becomes a regression test. If the agent broke once, it can break again.
After an agent is launched and optimized: Capability evals with high pass rates → graduate → regression suite. "Can we do this at all?" becomes "Can we still do this reliably?"
Run both types continuously, not just at release time.
Code-based, model-based, and human graders; scoring modes. See references/eval-framework.md for the full grader selection guide.
Where to get tasks, task format, and growing the task set. See references/eval-framework.md for the full task-set methodology.
Evaluation patterns for n8n workflow agents, Claude API agents, MCP server tools, and multi-agent systems. See references/eval-framework.md for the full agent-type pattern library.
Report both the optimistic (pass@k) and reliability (pass^k) metrics. See references/eval-framework.md for the statistical formulas and interpretation.
Run regression evals automatically on:
Fail the deploy (or flag for review) if regression pass rate drops below threshold. The threshold for acceptable regression varies by agent risk: higher-stakes agents need stricter thresholds.
Before shipping any eval suite:
references/eval-framework.md — grader selection guide, task-set construction methodology, agent-type pattern library, and the pass@k / pass^k statistical formulas (moved from sections 3–5 and the metrics section).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-ai37 skills in this plugin
/ai-agents-workflowBuilds and implements AI agents, automation workflows, and tool integrations — MCP servers (2025 async, OAuth, stateless spec), LangChain and CrewAI agents, multi-LLM orchestration, and no-code platforms. Use when the user mentions: MCP server, build an agent, tool integration, API orchestration, multi-LLM routing, OAuth flow, webhook, connect services, deploy a workflow, integrate external APIs. Not for conceptual architecture overviews (use orchestrating-ai- agents), not for production n8n incident ops (use operating-n8n-production), and not for pure no-code platform wiring (use workflow-automation).
/ai-solution-architectureDesign pre-sales technical architectures for AI/ML solutions targeting B2B enterprise clients. Use when scoping AI implementations, designing reference architectures, mapping integration patterns, estimating infrastructure requirements, or preparing technical proposals. Triggers on solution design, AI architecture, technical scoping, integration mapping, infrastructure sizing, pre-sales engineering for AI projects./applying-adversarial-reviewApplies Kyle's adversarial review methodology to consequential outputs. Forces every recommendation, audit, plan, or claim through three checks before shipping: a CLAIMS / COUNTEREXAMPLE / CONTRADICTIONS footer, [SOURCED] vs [GENERATED] provenance labeling, and an agreement-streak flag at three consecutive consequential agreements. Use when finishing an audit, writing a recommendation, delivering a plan, drafting a decision memo, or producing any high-stakes deliverable. Also triggers when explicitly asked to pressure-test, stress-test, steelman, play devil's advocate, fight an idea, or check for blind spots. Triggers on: adversarial review, anti-sycophancy, claims footer, stress test this, steelman this, pressure test, devil's advocate, am I missing anything, what could go wrong, sourced vs generated, agreement streak, push back on this, where am I wrong, review this PR, pull request review, code review, PR feedback.
Other plugins' skills for the same job