The Coding Ladder¶
For: people choosing a local model for coding work, and anyone who wants to check what tether does to a model before trusting it. After reading you can run the ladder on your own model and read its result.
The Coding Ladder is tether's own benchmark. It answers one question: how far up a ladder of coding tasks does this model climb when tether is the harness around it, and what stops it? The results page holds the baseline for the models tested so far, and the Claude Haiku results set Claude Haiku with and without tether next to qwen3.5:9b.
The shape¶
There are 24 tasks: 6 tiers of difficulty × 4 kinds of work. All of them are on the same small shop project, so a model's score differs by what it is asked, not by what it has to learn first.
| Tier | What the task gives the model |
|---|---|
| 1 | The file, the place and the exact code to add |
| 2 | The behaviour to implement, in one function |
| 3 | The behaviour only: the model finds the right file itself |
| 4 | A goal with cases left unsaid (input validation, empty input) that a careful engineer would still handle |
| 5 | A change that spans several modules and must keep the existing tests green |
| 6 | An open goal in a bigger codebase |
| Kind | What the model delivers | How it is graded |
|---|---|---|
| write | New code for a feature | Hidden unit tests, the fraction that pass |
| bugfix | A repair, starting from a symptom | Hidden unit tests, the fraction that pass |
| plan | A plan.md for a feature |
A checklist of things a good plan names (files, edge cases, order of work); invented files cost points |
| review | A review.md of code with planted bugs |
Share of the planted bugs found; false alarms cost points |
Code is graded by tests the model never sees. A task passes when every hidden test passes (plans and reviews pass at 0.7). python3 bench/ladder/validate.py proves each grader: the starting state fails and a reference solution passes.
Everyday work: content, Q&A, critique, extraction¶
Most people use AI for more than code. Four more kinds measure that, with 3 or 4 tiers each and the same rules: short self-contained texts in the workspace (no shop project, no web), one file to deliver, and a deterministic grader (no model judges another).
| Kind | Tiers | What the model delivers | How it is graded |
|---|---|---|---|
| content | 4 | An announcement, a newsletter summary of an article, a public post from internal meeting notes, a customer email rewritten from an internal incident report | A checklist: word range, required facts, banned words, structure (headline, bullet count, last line), internal details left out, no number that is not in the source |
| qa | 4 | answers.md for questions about a coworking handbook (and, at tier 4, a later email that corrects it) |
One regex per answer; a question the documents do not answer must say so, an amended value must replace the old one (listing both fails), tier 4 also wants the source cited |
| critique | 4 | critique.md on a budget, a proposal, a business idea and a memo, each with planted flaws (a total that does not add up, a biased sample, negative unit economics, correlation taken for causation, ...) |
Share of the planted flaws found; false alarms on sound parts cost points, like review |
| extract | 3 | data.json from an email, an invoice and a set of support tickets |
JSON schema (the same validator as --output-schema) plus the exact values, including a computed total and null for a missing product |
content and qa pass at 0.8, critique at 0.7 and extract only when every check passes. They are not run by default; name them with --kinds content,qa,critique,extract. The results for Claude Haiku show how far it gets.
How a model climbs¶
For each model and each kind the tiers are tried in order. A tier gets up to four attempts, and the first pass moves the model up:
- thinking off, default settings;
- thinking on;
- thinking on, more steps and later folding of old tool output;
- thinking off, temperature 0, more steps and later folding.
--attempts N stops a kind after N failed attempts at a tier (default 4); from the second attempt on, the goal carries a one-line hint of how the previous attempt ended.
If all four fail, that kind's ladder ends and the next tier is never shown. A model without a thinking mode skips the thinking parameter, so its attempts differ only in steps and temperature. A run is stopped as soon as the work passes its grader ("delivered"), so a model that finishes but never calls done does not burn time.
The context window is the largest that stays entirely in GPU memory (bench/ladder/probe.py finds it), because a window that spills to system memory makes every step much slower.
Run it¶
uv run python bench/ladder/validate.py # prove the graders (no model needed, all 39 tasks)
uv run python bench/ladder/run.py --out /tmp/ladder \
--models qwen3.5:9b --ctx qwen3.5:9b=40960 --tether-bin .venv/bin/tether
uv run python bench/ladder/report.py /tmp/ladder
--provider takes ollama, nvidia, openrouter, opencode or any provider name from providers.yaml.
report.py prints, per task: whether it passed, how many attempts it took, the best score, the time, the steps and the prompt tokens. Runs are resumable.
Compare harnesses¶
The same 24 tasks, each once, on the same model, through a different harness:
uv run python bench/ladder/run.py --harness naive --single --out /tmp/naive \
--models qwen3.5-9b-40k --ctx qwen3.5-9b-40k=40960
--harness takes tether, naive (a bare tool loop with no harness around the model), opencode and claude (Claude Code in print mode, with a cost cap). The claude harness runs Claude Code inside the sandbox with only its workspace and the login directory named by LADDER_CLAUDE_DIR writable, and records steps and tokens from its event stream. Model copies such as qwen3.5-9b-40k carry the context size, because an OpenAI-style endpoint cannot set it.
Freeze a baseline¶
bench/ladder/snapshot.py copies the results into bench/ladder/baseline/ and bench/ladder/charts.py redraws the charts on the results page from that data. The baseline is committed, so a change to tether can be compared with it.