Decant
Pour off what coding-agent harnesses do well. Leave the sediment.
Decant runs a coding task through the agent CLI you already have, and leaves you
a folder of plain files showing what happened.
It is not a model and not a replacement for your agent. It is a thin layer that
adds four things your agent does not give you on its own:
- a cheap look before the expensive work — a read-only pass reads the repo
first, and what it finds decides whether the big model is worth calling
- files instead of a wall of text — every step lands in
.decant/runs/<id>/, so you can open it, diff it, keep it
- signals that stay separate — your tests, the reviewer model, and the
readability check are three different answers, never merged into one
- a hard cap —
--budget-calls limits how many times the agent launches, so
a run can't quietly become thirty
New in 0.3: ask questions without stopping independent planning, answer from
another terminal, and resume with a recorded answer trail. Optional
Jev judgments can raise routing scrutiny before the existing
Codex/Kiro stages run. Changelog.
The name. To decant is to pour wine into another vessel so the clear part
comes over and the sediment stays behind. Keep only the practices worth keeping
from the harnesses that already exist; carry them into whatever model you run.
See it decide
Real output, same machine, two tasks, trimmed to the four decision stages. Nothing ran — this is route, the preview. The full command also prints the lane, the explainer and reader rows, and a cost estimate:
$ decant route "fix a typo in the README"
Assessment: economy (score 4)
Dimensions: complexity=0, risk=1, blast=0, verifiability=2, reversibility=3
- scout run economy/low -> claude-haiku-4.5
- architect conditional frontier/max -> claude-opus-5
- maker run balanced/medium -> claude-sonnet-5
- reviewer run frontier/high -> claude-opus-5
Agent invocations: 4..5
$ decant route "delete the users table and migrate production data to the new schema"
Assessment: frontier (score 24)
Dimensions: complexity=2, risk=3, blast=2, verifiability=2, reversibility=0
- scout run economy/low -> claude-haiku-4.5
- architect run frontier/max -> claude-opus-5
- maker run balanced/medium -> claude-sonnet-5
- reviewer run frontier/high -> claude-opus-5
Agent invocations: 5..5
The typo gets architect: conditional — the expensive model is skipped if
the cheap scout comes back with no open questions. The production migration gets
architect: run, because reversibility=0 and risk=3 mean you do not want to
find out mid-edit. That decision is the product.
When you run it for real, you get a folder of files and a report.html.
What one real run costs
A throwaway repo: a listUsers() that returns all 57 users, and one test.
Task: "add limit and offset pagination to listUsers, and cover it with a test."
Backend: Kiro CLI, Sonnet for the working stages, Haiku for the cheap ones.
$ decant run "add limit and offset pagination to listUsers, and cover it with a test" \
--allow-verification-commands --budget-calls 6
Run warn: .decant/runs/20260731T052055193Z-552ca062
| |
|---|
| wall clock | 183 s |
| agent launches | 5 of a 6 budget |
| files changed | users.mjs (+6 −2), users.test.mjs (+19) |
| the repo's own tests | 1 test → 5 tests, all passing |
| verification | pass — npm test exited 0 |
| reviewer | pass |
| report clarity | 8/10 personas, 0 critical |
| status | warn |
What it wrote:
-export function listUsers() {
- return USERS;
+export function listUsers({ limit = USERS.length, offset = 0 } = {}) {
+ const start = Math.max(0, offset);
+ const end = start + Math.max(0, limit);
+ return USERS.slice(start, end);
}
…plus tests for offset beyond the end, a negative offset, and no limit given.
warn, not pass, because the generated report only reached 8 of 10 clarity
personas. The code is fine and the tests pass — that is the point of keeping the
signals apart. Three minutes and five model calls is the honest ballpark for
a task this size; --budget-calls is what stops it being more.
No token or currency figure, because Decant cannot see either. Your provider's
dashboard can.
And does the harness actually beat not using it? Three measured runs say it
depends entirely on task size, and two of the three do not favour it:
| task | harness | without |
|---|
| tight 10-minute spec | 0/100 | 70/100 |
| small browser game | 13/13 reqs, 305 s | 13/13 reqs, 78 s |
| larger 40-minute build | 100/100 | 90/100, at 1/5 the tokens |