Let an agent climb your metric.
Hillclimb tests one idea at a time and keeps only the gains that hold up on data the agent never sees.
Every idea is measured. Only real gains are kept.
Each attempt is scored on a clean checkout. A change ships only if it beats the best by more than the noise.
A journal the next idea learns from.
Every hypothesis, score and reason for rejection goes into the next prompt. No idea is tried twice.
- 1Replace the 7-day mean/stdev rumination z-score with a 14-day median/MAD baseline that…13.06Kept
- 2Subtract the herd-wide median rumination deviation from its own 7-day baseline today from…41.79Conflicted with a newer win
- 3Add 0.6 times yesterday's multi-signal score (computed from history before yesterday) to…9.04Kept
- 4Veto the risk score (return -1) on any day when activity is above the animal's own 14-day…12.54Not better than the best
- 5Compute each animal's median/MAD baseline from days 3–16 back, skipping the most recent 2…6.29Kept
- 6Subtract the herd-wide median of today's per-animal multi-signal score from each animal's…1.42Kept
- 7Add 0.35 times the multi-signal score from two days ago to the existing today +…5.82Blocked by held-out
- 8Weight activity surges (activity above the animal's baseline, a sign of oestrus) at 2.0…6.11Not better than the best
- 9Widen each animal's median/MAD baseline window from 14 to 21 days (still skipping the…1.04Kept
- 10Divide each animal's herd-median-adjusted score by the herd's robust day-wide spread of…–Agent reverted its own edit
It catches wins that don’t generalize.
Experiment 7 improved the score the agent could see. On a farm it never saw, it made things worse, so Hillclimb blocked it.
Experiment 7Add 0.35 times the multi-signal score from two days ago to the existing today + 0.6×yesterday sum
Dev set visible to the agent
6.29 → 5.82
Better
Held-out set a second farm, never shown
10.16 → 12.60
Worse, blocked
What the agent was told next: not kept after validation (details withheld)
−95%
Held-out false alarms, 49.74 → 2.35, in a synthetic herd-alert demo.
10
Experiments by Claude Sonnet in that demo. 5 were kept.
1.9 min
Wall-clock time for the whole demo run, with two workers.
Bring a command that prints a score.
Hillclimb uses your logged-in Claude Code, so you don’t need an API key. Full quickstart
$ uv sync
$ uv run hillclimb init --metric "python3 eval.py"
$ uv run hillclimb run