> Agent-ready spec from Diff of the Day (2026-12-02, idea 3). Give this file to your coding agent (Claude Code, Codex, Cursor) and ask it to build the P0 requirements first.

# Spec: Agent setup race

## Problem Statement
Teams add skills, MCP servers and long instruction files to coding agents without measuring them. One benchmark found a bare agent beat most setups with extra context. Nobody knows if the same is true for their own repo and tasks.

## Goals
- Compare four setups on 5 tasks with 3 runs each, so 60 runs in total.
- Report pass rate, cost and minutes per setup in one table.
- Show the run-to-run spread so that a small difference is not treated as a win.
- Re-run the race after a config change with one command.

## Non-Goals
- A public leaderboard: the tasks come from your repo and would not transfer.
- Judging code style: only a pass or fail check decides, to keep the test objective.
- Testing several models: the model is fixed so that only the setup changes.

## User Stories
- As an engineer, I want to know if my skills help so that I delete the ones that do not.
- As a team lead, I want a cost per passed task so that I can compare setups fairly.
- Edge case: as an engineer, I want a run that hits a time limit to count as a fail and be listed, so that slow runs do not disappear from the table.

## Requirements
### P0
- A task folder format: a prompt, a starting commit and a command that exits with zero on pass.
  - [ ] Five tasks are defined.
  - [ ] Each task runs in a fresh copy of the repository.
- A runner that applies one setup, runs the agent non-interactively with a time limit and records the result.
  - [ ] Each run stores pass or fail, cost, minutes and the setup name.
  - [ ] A timeout counts as a fail.
- A report with one row per setup and the spread over the three runs.
  - [ ] The report shows pass rate, cost per passed task and median minutes.

### P1
- Setup definitions as folders of config files that the runner copies in.
  - [ ] A new setup needs no code change.

### P2
- A chart of pass rate against cost.
  - [ ] The chart is a static image saved next to the report.

## Success Metrics
- Pass rate per setup.
- Cost per passed task per setup.
- Run-to-run spread of the pass rate.

## Open Questions
- Are 15 runs per setup enough to see a real difference?
- How do you keep tasks from leaking into the skills you test?
- Should the runner stop a setup that fails the first two tasks?

## Timeline
One weekend: task format and runner on day one, setups and report on day two.

## Agent Instructions
- Suggested stack: A shell or Python runner, git worktrees for fresh copies, the headless mode of your agent, a CSV for results.
- Build order: Task format, one task by hand, runner, second setup, report, remaining tasks.
- Safety: Run in a throwaway worktree with no production credentials; read keys from the environment and never write them to results; set a spend cap on the account; never let a run push to a remote.
- Done when: The report compares four setups on five tasks with three runs each and shows the spread.

## Sources
- https://lnkd.in/p/dX3uEP_W
- https://jellyfishresearch.substack.com/p/its-not-the-model-its-you
