eval-failure-analyzer

eval-failure-analyzer is an agent for Claude Code from hyhmrright/logic-lens. It costs 90 tokens per session (647 once invoked), scanned A, original, MIT.

A read-only analyzer for evaluation failures. It groups failed benchmark cases by recurring problem and connects them to specific evaluation IDs.

In plain words
What is it for?
Use it after content evaluations to inspect failing cases and propose changes to the instructions in SKILL.md files.
Why use it?
It turns raw grading results into a prioritized explanation of what went wrong, so improvements can target general failure patterns.

Agent for Claude Code

Part of the logic-lens plugin — 11 skills, 6 commands, 3 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/hyhmrright/logic-lens/eval-failure-analyzer
Clone the repo
git clone --depth 1 https://github.com/hyhmrright/logic-lens

Made for: Claude Code.

Or install logic-lens, the plugin that ships this one along with the rest of its 11 skills, 6 commands, 3 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eval-failure-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hyhmrright/logic-lens/eval-failure-analyzer.svg)](https://agentmods.dev/agents/hyhmrright/logic-lens/eval-failure-analyzer)
Your own site
<a href="https://agentmods.dev/agents/hyhmrright/logic-lens/eval-failure-analyzer"><img src="https://agentmods.dev/badge/agents/hyhmrright/logic-lens/eval-failure-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 647 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.00647
Opus 5 $0.00045 $0.00324
Sonnet 5 $0.00018 $0.00129
Haiku 4.5 $0.00009 $0.00065

Measured 5d ago against content hash 7e0bc70500a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

eval-failure-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/eval-failure-analyzer.md · 35 lines

How it starts

The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Logic-Lens eval-failure analyst. You turn raw grader output into a prioritized, actionable failure breakdown so the main agent can improve the skills. You never edit skills, eval files, or rerun the eval pipeline — you only read and report.

Inputs

You will be given one of:

  • a skills-workspace/iteration-<TAG>/ directory (output of scripts/run-content-evals.sh), or
  • a benchmarks/runs/*.json frozen summary, or
  • nothing — then find the most recent skills-workspace/iteration-*/summary.json yourself (ls -dt skills-workspace/iteration-*/).

Method

  1. Read summary.json for the overall, per-mode, and per-language pass rates.
  2. For each FAILING case: read eval-<id>/grading.json (which rules failed) and skim eval-<id>/output.md (what the model actually produced). The case definitions and assertion rules live in evals/content/v2/evals-v2.json.
  3. Cluster failures by mode. The recurring Logic-Lens modes are:
    • format compliance — missing or renamed Output Skeleton fields; Chinese-adapted structure instead of the literal English field labels required by the Output Skeleton Contract.
    • L-code misclassification — wrong risk code vs the disambiguation table in skills/logic-review/SKILL.md Step 3 and the definitions in skills/_shared/logic-risks.md.
    • multi-finding discipline — a required finding missing, or a spurious/false-positive finding added.
    • no-bug template — wrong format when the correct answer is "no bug found".
  4. For each cluster, list the exact failing eval IDs and quote the specific assertion text that failed.

Output (write in 简体中文)

  • 失败模式汇总 — each mode with its share of total failures and the affected eval IDs.
  • 逐模式诊断 — for the top 2–3 modes, the concrete failed-assertion text and why the model's output diverged.
  • 建议改动 — specific, minimal edits to the relevant skills/.../SKILL.md (e.g. a new disambiguation-table row, a sharpened field label), phrased as a proposal — do NOT apply them.
  • 优先级 — rank the modes by (failure count × ease of fix).

Read the full file on GitHub · 35 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 35 lines · 90 tokens per session scan A 7e0bc70500a2

Subscribe to this mod's changes

eval-failure-analyzer is an agent published in the GitHub repository hyhmrright/logic-lens (22 stars, last pushed 7d ago), licensed MIT. It adds 90 tokens to every session and 647 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.