Jorge Turbica / blog · Blog ← All articles ES · Leer en español
AI

Skill of the day: Hill Climb makes your coding agent prove it is actually done

A Claude Code and Codex skill that keeps only the agent changes that improve a locked check, and undoes the rest.

An agent that says "done" has proven nothing. Hill Climb, a skill for Claude Code and Codex published on 2 November 2026 with 111 stars on GitHub, is built on that idea: the agent proposes changes, but a Python script decides whether each one stays, by measuring it against a check the agent is not allowed to touch.

What it does

You trigger it with /hill-climb and a goal ("make the test suite 2x faster", "fix every finding from the billing audit"). The SKILL.md turns any goal into a number: failing tests for a fix, milliseconds or query counts for performance, bytes for size, or a score from a panel of model judges for UI or copy.

From there the agent works in small steps, and each one goes through climb.py try "<idea>", which:

  1. Checks that no locked file (tests, benchmark, fixtures) has changed by comparing hashes, and refuses the step if one has.
  2. Runs the check, or several in parallel, and reads the score.
  3. Runs the guards: the old tests, typecheck or lint, which must still pass.
  4. Commits the step with the idea as the message if the score improves and the guards pass. Otherwise it undoes the step in every repo involved.
  5. Writes the step to a log on disk, so the state survives context compaction or a /clear.

What you get is a climb/<name> branch with one commit per measured win instead of one huge diff. For big goals the agent first shows a one-screen plan and waits for you to say "go". It also detects when it is stuck (PLATEAU after five flat steps) and lets you keep hidden cases (holdout) to catch overfitting to the tests.

How to install and use it

As a Claude Code plugin:

text
/plugin marketplace add Bil0000/Hill-Climb
/plugin install hill-climb@hill-climb

With the plugin install, the command is /hill-climb:hill-climb. For Codex or other agents that read SKILL.md, the README says to clone the repo and copy skills/hill-climb into ~/.codex/skills/ (or ~/.claude/skills/). It needs Python 3.9+ and git, and nothing else.

One example from the README shows the model well, with two repos and two test suites:

bash
climb.py init billing-audit --goal "every billing finding fixed" \
  --check "pytest tests/billing -q" \
  --check "cd ../web && npx vitest run billing" \
  --score '(\d+) failed' --direction min --target 0 \
  --repo ../web --guard "pytest tests/legacy -q" \
  --lock tests/billing --lock ../web/src/billing/__tests__

The score is a regular expression over the runner's output (--score), and the README ships patterns for pytest, vitest, jest, rspec, unittest, node, cargo and go.

Risks and limits

  • It deletes things on purpose. Undoing a step runs git reset --hard and git clean -fdq on the climb branch, so untracked files that git does not ignore are gone. The README itself says: if you work in the same checkout at the same time, run the climb in a separate worktree.
  • It runs whatever you tell it. Checks and guards are shell commands (the script runs them with shell=True), and the state in .hill-climb/ is read as-is. Only use it on repos you trust.
  • The lock is not a security boundary. It catches mistakes, not an agent set on cheating: with a shell it can edit anything. Review the branch before you merge it.
  • Network and credentials. The script sends nothing anywhere; only judge.py calls the claude or codex CLI if you use model judges, which costs tokens and sends the work being judged to that provider.
  • Maturity. It has 44 tests that spin up real git repos in temp folders, but it only went public on 2 November 2026, and the runs it shows are, in the author's words, small examples rather than a benchmark.

Versus telling the agent to run the tests

The obvious alternative is to tell the agent "run the tests after every change". That works until the agent tweaks a test to make it pass, breaks something nobody asked it to touch, or loses track after a compaction. Hill Climb does not make the agent smarter; it takes away its final say.

Instruction in the promptHill Climb
Who decides if a step countsThe agentclimb.py, from the measured score
A step that makes things worseStays in the diffUndone in every repo
A test edited to passLooks like a winRefused by the lock
State after compactionLostOn disk (status, notes.md)
HistoryOne big diffOne commit per win

I would reach for it on long, measurable goals (an audit with a dozen findings, cutting the latency of one specific route) in a worktree of its own. For a ten-minute change, the SKILL.md itself recommends skipping most of the process.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗