Flows category icon
Harness Engineering
Advanced

Evals for Your Harness

Build the eval suite that tells you whether harness changes help: task sets, graded rubrics, and regression discipline.

4 steps12 verify checks90-150 minutesWorks with: emergent · chatgpt · claude · cursor
Start Guided Walkthrough

The Route

0/4 verified

Context Pack

Paste this first. It briefs the AI on requirements, constraints, and the Definition of Done before your first build prompt.

Context Pack
PROJECT CONTEXT:
Every harness change ships on vibes: the prompt feels better, the agent seems smarter. Agent-platform research treats evals as the discipline separating engineering from folklore - fixed task sets, honest grading, and change-gating.

GOAL:
Stand up a real eval system: representative task sets, automatic and rubric grading, statistical honesty, and eval-gated harness changes.

REQUIREMENTS:
- An eval task set representative of real usage, tiered by difficulty
- Automatic grading where possible (tests pass, output validates) and rubric grading elsewhere
- Multiple runs per task with variance reported - single runs lie
- A results store tracking scores per harness version over time
- Change-gating: harness PRs show their eval delta before merge

CONSTRAINTS:
- Eval tasks must not leak into training-by-iteration: hold out a subset from tuning
- Grading criteria are versioned artifacts like everything else

DEFINITION OF DONE:
- The suite runs end to end with one command and produces a scored report
- Scores include variance across runs, not single-sample numbers
- A deliberately degraded harness (weaker prompt) shows a clear score drop
- The last harness change merged with its eval delta attached

COMMON FAILURES TO AVOID:
- Evals that test toy tasks nothing like real usage
- Single-run scores treated as truth despite run-to-run variance
- Grading by the same model that did the work, uncalibrated
- A suite that exists but never gates anything

Paste this into your AI builder first. It teaches the AI what you want before you give it the build prompt.

Related routes

More Harness Engineering flows that share ground with this one.

Flows category icon
Harness Engineering

Version Your Harness and Track Behavior

Treat prompts, tools, and loop logic as versioned, changelogged artifacts - so behavior changes are decisions, not surprises.

01Extract behavior into versioned artifacts
02Start the behavior changelog
03Build the smoke eval and behavioral diffing

+1 more steps to Done

Best foryour first pass at this - no prior setup assumed

4 steps45-75 minutesBeginner
Flows category icon
Harness Engineering

Assemble Tool Prompts Dynamically per Environment

Stop shipping one static mega-prompt: generate tool prompts from environment conditions, inject blocks only when features are on, and dedupe config to save tokens.

01Identify conditional blocks
02Build the prompt generator
03Dedupe and budget every block

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced
Flows category icon
Harness Engineering

Cost Control: Model Routing and Effort Tiers

Route work to the cheapest model that can do it and match reasoning effort to task difficulty - with quality guardrails.

01Profile spend by call class
02Build the routing table and wire it
03Add escalation on failure

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced

Made with Emergent