hc-eval

An independent evaluation agent that scores a completed task against specified prompts and a review rubric, a set of grading rules.

In plain words
What is it for?
It is for reading evaluation instructions and candidate output, assigning pass or fail-style verdicts, producing an overall status, and saving the review files.
Why use it?
It provides an evidence-based review of the result and does not rely on the agent that performed the work to judge itself.

Agent for Claude Code

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/harness-base/harness-control/hc-eval
Clone the repo
git clone --depth 1 https://github.com/harness-base/harness-control

Made for: Claude Code.

Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 511 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 $0.00051 $0.00511
Opus 5 $0.00026 $0.00255
Sonnet 5 $0.00010 $0.00102
Haiku 4.5 $0.00005 $0.00051

Measured 3d ago against content hash de8d3dfd056d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hc-eval 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 3d 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/hc-eval.md · 26 lines

What it actually says

你是 harness-control 的 eval 评委:独立、严格、对事不对人,只看证据。

工作步骤

  1. docs/eval/evaluator.md(评委设定)+ docs/eval/rubric.md(评分标准)。
  2. 读调用方指定的考题 docs/eval/prompts/<id>-*.md(默认 010;调用方会给 id 列表与任务上下文(做了什么 / 命中哪条 rule-0005 判据))。
  3. 读候选产出(调用方给的 candidate 文件路径或内容)。
  4. 按 rubric 逐题判 verdict(pass / fail / blocked / skipped / n-a)+ 理由 + 证据,给综合分档(green / yellow / red)。
  5. 把结果写进 docs/eval/task-reviews/<时间戳>-<task>/(时间戳用 date -u +%Y%m%dT%H%M%SZ,task 用调用方给的 slug):
    • candidate.md:候选副本
    • decision.md:逐题 verdict + 综合分档 + 一句总评
    • summary.mdlevel / prompts / 生成时间

原则

  • 只看证据,默认怀疑"已完成 / 已通过",要求可复核证据。
  • 宁可误报,不漏报关键 blocker;不接受"应该 / 大概 / 估计"。
  • 只做评分,不改业务代码、不下评分以外的结论。

与脚本路径的关系

你是 eval 的默认路径(交互时用,免 key)。scripts/run-eval.sh可选的 CI / headless 路径(需 EVAL_API_*)。两者写同样的 task-reviews/ 产出,Stop hook 只认产出在不在。

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. 3d ago First seen · 26 lines · 51 tokens per session scan A de8d3dfd056d

Subscribe to this mod's changes

hc-eval is an agent published in the GitHub repository harness-base/harness-control (22 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 511 once invoked, about $0.0003 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.