harness-experiment

Run controlled experiments on agent scaffolding changes, measuring pass rates, token usage, and cache hits across repeated eval runs.

554|41|Updated Oct 28, 2026
Ready to run
npx skills add https://github.com/MiniMax-AI/mcode-stack --skill harness-experiment-minimax-ai
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: harness-experiment
Source: https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/harness-experiment
Command: npx skills add https://github.com/MiniMax-AI/mcode-stack --skill harness-experiment-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agent engineering requires measuring the actual impact of changes before deploying them. Without structured experimentation, you risk shipping regressions or optimizing for the wrong metric. This Skill enforces a disciplined approach: state a hypothesis, change one thing, measure both before and after, and make an informed decision based on evidence. ## Core Features & Use Cases - Baseline Measurement: Run golden tasks multiple times to establish a noise-aware baseline across pass rate, token usage, and cache performance. - Single-Variable Change: Make exactly one change (prompt edit, tool addition, subagent merge, threshold adjustment) and re-measure on identical tasks. - Flipped Task Analysis: Identify tasks that passed then failed (or vice versa) and trace the trajectory to understand root causes. - Metric Tracking: Record pass rate per task, flipped tasks, model requests, input/output tokens, cache hit rate, and wall-clock time. - Use Case: You want to simplify a system prompt. Run baseline eval on your golden tasks (5 runs each), document pass rates and token counts. Make the prompt change. Run the same 5 runs again. Compare metrics and inspect tasks that flipped to decide whether to keep the change. ## Quick Start Define your hypothesis in one sentence, identify your golden eval tasks, pin all variables except the one you are testing, run baseline measurements, make exactly one change, re-measure, and document which tasks flipped and why.

Frequently Asked Questions about harness-experiment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a controlled experiment on a prompt change?▼

Establish a baseline by running your golden eval tasks multiple times and recording pass rate, tokens, and cache hits. Then modify only the prompt, re-run the identical tasks the same number of times, and compare metrics. Inspect tasks that flipped to understand why.

Why measure flipped tasks instead of just comparing average scores?▼

Averages hide regressions. A change might raise overall score but break a must-not-break rule or fail on edge cases. Flipped tasks reveal the specific scenarios where your change helps or hurts.

What metrics should I track in an experiment?▼

Record pass rate per task over repeated runs, flipped tasks with causes, model requests per task, input and output tokens, cache hit rate, and wall-clock time. Only report numbers you actually measured.

When should I run experiments after a model upgrade?▼

After each model upgrade, rerun your eval and check which parts of your harness still earn their keep. Scaffolding built around a model's weak spots ages fastest and may no longer be needed.

How many runs do I need for a reliable baseline?▼

Agent runs are noisy. Run each task several times on both baseline and candidate to make flipped tasks and regressions visible. A handful of golden tasks with 3-5 runs each is a practical starting point.