hill-climb
/hill-climb
Ustala jeden mierzalny cel, dowodzi, że wynik nie da się oszukać, i zachowuje tylko zmiany, które realnie poprawiają wynik.
- Autor
- ChanceTheHacker ↗
- Repozytorium
- hill-climb-skill ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 03.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 15
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 03.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/hc.py, scripts/no_ask_hook.py
Co robi i kiedy
Ustala jeden mierzalny cel, dowodzi, że wynik nie da się oszukać, i zachowuje tylko zmiany, które realnie poprawiają wynik.
Oryginalny opis (EN)
Use when the user wants to hill climb, optimize something against a number, run autoresearch, or keep improving code, tests or a prompt unattended. Agrees one measurable goal, proves the scorer cannot be gamed, then keeps only measured improvements.
Jak działa
- The six phases
- Rules that are never relaxed
- Command summary
- What lives in .hill-climb/
Podgląd SKILL.md
--- name: hill-climb description: Use when the user wants to hill climb, optimize something against a number, run autoresearch, or keep improving code, tests or a prompt unattended. Agrees one measurable goal, proves the scorer cannot be gamed, then keeps only measured improvements. compatibility: Needs git and Python 3.8 or later on Linux or macOS. Works in Claude Code and Codex; long unattended runs use their command-line modes. metadata: version: "0.2.0" --- # Hill Climb Hill climbing means: measure where you are, make one change, measure again, keep the change only if it is genuinely better, and repeat. The hard part is not the loop. It is agreeing on a number that really stands for what the user wants, and making sure the agent cannot raise that number by cheating. Agents in long loops routinely game their scorers (editing tests, special-casing the visible inputs, patching timers), and telling them not to does not stop it. So this skill splits the work in two: - **You (the agent) propose.** You interview, design the scorer, and come up with ideas. - **The run keeper decides.** `scripts/hc.py` runs the protected checks and the scorer, compares against the best so far with a noise margin, keeps or reverts each commit, enforces the budget, and logs every attempt in a tamper-evident file. Never judge your own change; only its verdict counts. If `local.md` exists beside this file, read it now. It holds the preferences of the machine you are on, and it overrides the defaults below. ## The six phases | Phase | What happens | Ends with | |---|---|---| | 1. Goal | Interview, then a one-page goal card | **The user approves the card** | | 2. Scorer | Build the scorer, the protected checks and the hidden set; prove they reject known-bad changes | `hc init` and `hc calibrate` pass | | 3. Equip | Choose how the run will be driven; time one round | A decision recorded in the notes | | 4. Climb | One idea per experiment, judged by `hc try` | The budget, the target, a stall, or a flag | | 5. Check-ins | A fresh agent that did none of the work reviews progress | Continue or stop | | 6. Finish | Audit, outside review, hand-off report | A report the user can act on | Phase 1 approval is the only point where you must stop and wait. After that, work without asking: record judgement calls with `hc note --decision`, and if something is truly impossible, stop with `hc flag`. ### Phase 1: agree on the goal Read `references/goal-interview.md` and follow it. In short: 1. Read the project first. Do not ask anything the code, the docs or the conversation already answers. 2. Ask one consequential question at a time: who benefits, what observation would show it worked, what must not break, and how much time and money it is worth. Offer two or three concrete readings of a vague goal and recommend one. 3. Work out how a model could plausibly reach the goal: the levers it can pull, the files it may touch, and whether one number can stand for success. If it cannot, say so now rather than building a scorer for the wrong thing. 4. Fill in `assets/goal-card.md` in plain language and show it to the user. Write the matching goal file (format in `references/scorers.md`, example in `assets/goal.example.json`), but do not run anything until the user approves the card. ### Phase 2: build a scorer that cannot be fooled Read `references/scorers.md`. The scorer prints one line, `METRIC <name>=<number>`. Around it you build: - **Protected checks** (the guard): a command that must pass for any change to count, usually the test suite. Correctness is a gate, never a trade-off. - **A hidden set** (the holdout): examples the climbing agent never sees, re-scored only at the end, to catch overfitting. - **Scorer checks**: deliberately bad changes the scorer must reject, and if useful a good change it must accept. Calibration fails if any check is not judged as expected. - **Frozen files**: the scorer, its data, the tests and anything else the agent must not touch. Any change to them makes an attempt invalid. Commit all of it on a clean tree, then: ```sh python3 <this skill's folder>/scripts/hc.py init goal.json --approved-by "<who, where, when>" .hill-climb/hc calibrate ``` `init` creates a run branch and the `.hill-climb/` folder (excluded from git), and writes `.hill-climb/hc`, a small wrapper for the run keeper. `calibrate` runs the protected checks, measures the starting point several times to learn how noisy it is, runs every scorer check, and scores the hidden set. If calibration shows the scorer is wrong, fix it, commit, and run `.hill-climb/hc relock --approved-by "..."`. If the fix changes what the user approved, show them first. Run the climb in a dedicated clone or worktree. The run keeper switches commits in place and hard-resets the working tree, so it needs the tree to itself, and anything a build writes must be listed in `.gitignore`. ### Phase 3: choose how to drive the run Calibration reports how long one round takes. Use it to choose: - **In this conversation**: fine for up to about an hour or 15 experiments. - **Unattended, with fresh sessions**: anything longer, or anything that should survive a crash, a reboot or a full context window. `hc supervise` starts a new agent session per experiment and runs check-ins. Read `references/supervisor.md`. Tool-specific details are in `references/running-in-claude.md` and `references/running-in-codex.md`. Read the one for the tool you are in. ### Phase 4: climb Each experiment: 1. Read `.hill-climb/notes.md` and the latest rows of `.hill-climb/results.tsv`. Do not repeat an idea that already failed unless something has changed. 2. Choose one idea. Edit only the editable files. Until the notes say where the cost or the errors come from, measure that first, with your own scripts in `.hill-climb/scratch/`, rather than guess. 3. Commit it with a one-line message. 4. Run `.hill-climb/hc try "<the same one-line description>"`. It prints one line starting `VERDICT KEPT`, `VERDICT DISCARD`, `VERDICT CRASH` or `VERDICT INVALID` with the reason, and leaves the branch on the best version either way. Never re-run a scorer by hand hoping for a better number. 5. Write what you tried and learned in `.hill-climb/notes.md`. Small, separate ideas beat big bundles, because a bundle that fails teaches nothing. When the status says PLATEAU (by default 10 experiments with no gain), stop tweaking: write down what the failures have in common, then try a structurally different approach. A change that ties on score but removes code is kept too, so simplifying is always worth trying. Exit code 3 from any command means the run has finished. Stop climbing and go to phase 6. ### Phase 5: check-ins Every so often (the supervisor's default is every 10 sessions), a fresh agent that did none of the work reads the results, the notes and the kept diffs, and answers three questions: is the score still measuring the real goal, is the search stuck, and is anything risky going on? The template is `assets/checkin-prompt.md`. In a conversation-driven run, ask a subagent to do this; do not review your own work. ### Phase 6: finish 1. `.hill-climb/hc audit` re-checks everything: the log chain, the frozen files, the scope of every kept change, the protected checks, a side-by-side re-measurement of the start and the best, the hidden set, and a scan of the diff for patterns that often mean cheating. An AUDIT FAILED result must be explained to the user, never hidden. 2. Have a model from a different company review the full diff from the run's starting commit to its best commit, looking for shortcuts and overfitting. Models are blind to their own family's habits. 3. `.hill-climb/hc report` writes `.hill-climb/handoff.md` with the numbers filled in. Complete every WRITE section in plain language, then give the user the result, how sure you are and why, and what they need to decide. Never merge the run branch into the main branch yourself unless the user has said to. ## Rules that are never relaxed - Never edit the scorer, its data, the tests, the goal file, or anything in `.hill-climb/` other than `notes.md` and `scratch/`. The run keeper refuses such attempts and the audit re-checks them. - Never special-case the visible inputs, weaken a check, read the scorer's internals to game it, patch clocks or timers, or detect the test environment. The hidden set and the outside review exist to catch exactly this. - If the goal turns out to be impossible, or the scorer is measuring the wrong thing, run `.hill-climb/hc flag "<why>"`. An honest flag is a good outcome; a faked result is the worst one. - Changing the budget or the scoring settings mid-run needs the user's approval: `.hill-climb/hc amend budget.max_experiments=60 --approved-by "..."`. - Never install global hooks, change permission settings, or put the run on unattended autopilot without the user agreeing to it on the goal card. ## Command summary All commands are `.hill-climb/hc <command>` once a run exists. | Command | Use | |---|---| | `init GOAL --approved-by WHO` | Start a run from an approved goal file | | `calibrate` | Measure the start and its noise; test the scorer | | `try "DESCRIPTION"` | Judge the committed change; keep it or revert it | | `status` | Where the run stands (add `--json` for scripts) | | `budget` | Exit 0 if the run may continue, 3 if finished | | `note TEXT` / `note --decision TEXT` | Record a note, or a decision made instead of asking | | `flag REASON` | Stop and hand the goal back as impossible or flawed | | `resume` | Recover after a crash or killed session (`--retry` re-judges at once) | | `discard` | Drop an unfinished change and return to the best version | | `amend KEY=VALUE --approved-by WHO` | Change budget or scoring settings | | `relock --approved-by WHO` | Accept a fixed scorer before climbing starts | | `audit` | Re-check the whole run before trusting it | | `report` | Write the hand-off draft | | `supervise --agent-cmd CMD` | Run fresh agent sessions until the run finishes | | `finish` | Mark the run finished | Exit codes: 0 success, 1 a check failed, 2 the command could not be used as asked (the message says why), 3 the run has finished. ## What lives in `.hill-climb/` `goal.json` (the approved goal), `lock.json` (fingerprints of the goal and the frozen files), `state.json`, `attempts.jsonl` (every attempt, hash-chained), `results.tsv` (the same, readable), `notes.md` (shared memory between sessions), `decisions.md`, `scratch/` (the agent's own timing and profiling scripts; ignored), `logs/` (output of every scorer and check run), `sessions/` and `checkins/` (supervised runs), `STEER.md` (write here to give a running supervisor new instructions), `audit.json` and `handoff.md`.
Pliki w paczce (15)
- SKILL.md 11 KB
- agents/openai.yaml 1 KB
- assets/checkin-prompt.md 1 KB
- assets/goal-card.md 1 KB
- assets/goal.example.json 1 KB
- assets/handoff.md 1 KB
- assets/notes.md 1 KB
- assets/session-prompt.md 3 KB
- references/goal-interview.md 6 KB
- references/running-in-claude.md 5 KB
- references/running-in-codex.md 4 KB
- references/scorers.md 9 KB
- references/supervisor.md 4 KB
- scripts/hc.py 69 KB
- scripts/no_ask_hook.py 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · ChanceTheHacker/hill-climb-skill | 100 | MIT |
| abhaymettu/hill-climb | 100 | MIT |
| Axeeh/hill-climb | 100 | MIT |
| Bil0000/Hill-Climb | 95 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki f83c81be2f15 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 95Optimize
Prowadzi autonomiczną pętlę optymalizacji metodą hill-climb dla kodu z metrykami oraz dla skilli, promptów i agentów z oceną przez LLM-as-judge, na przykład przy redukcji opóźnień. - 100v1-autoresearch-skill
Prowadzi mierzoną pętlę optymalizacji wobec wybranego celu i zachowuje tylko zmiany, które realnie poprawiają wynik. - 90evals:hill-climb
Stopniowo poprawia skill, agenta lub regułę CLAUDE.md względem zestawu ocen i sprawdza, czy zmiana wykracza poza szum pomiarowy. - 90prompting:hill-climb
Optymalizuje skill, agenta, regułę lub CLAUDE.md względem zestawu ewaluacji, ocenia czy zmiana wyniku wykracza poza szum i sprawdza, czy instrukcja nadal uzasadnia swój koszt tokenów. - 100hillclimb
Pomaga ustalić, jak mierzyć cel optymalizacji, i prowadzi do poprawy, aż wynik albo próg zostanie osiągnięty. - 100hill-climb-ui
Prowadzi iteracyjne usprawnianie interfejsu Leaf UI i instrukcji tworzenia przez eksperymenty i porównania na zwykłym HTML, w kampanii hill-climbing rozpoczynanej lub wznawianej.