Engineering2 min read

Introducing Vetta: the most efficient harness for long-horizon tasks

Vetta is our agent harness for work measured in hours. On a long-horizon benchmark with the model held fixed, it finishes the most tasks and costs 2.9x to 4.6x less for each one it finishes.

Agents primitive →

Engineering
TL;DR
  • Vetta is our agent harness for long-horizon work tasks measured in hours, where the agent keeps its own state and finishes without a human in the loop.
  • It costs the least per finished task: $0.298 against $0.872 for the next-best harness, on measured vendor dollars rather than list price.
  • It also finishes the most, and gets there on a third of the tokens a count that depends on no price at all.
  • The completion window is three prices for the same model. You trade latency for cost, and priority finishes more than the default while costing 21.6% less per finished task.

Vetta is our agent harness for long-horizon work — tasks measured in hours rather than seconds, where the agent keeps its own state, decides what to re-read, and finishes without a human in the loop.

How it works

Figure 1 · what Vetta is

One agent, one turn. The loop is an alarm rather than a call stack, so a task measured in hours is a sequence of short slices that each commit before they end — and a crash costs one turn, not the run.

Vetta agent architectureA vertical loop of five steps — wake, build context, one model call, run tools, commit — which returns to wake by arming the next alarm. The loop reads and writes a durable SQLite store held with the agent. The model call carries a completion window: one of three price tiers on the same model, refused rather than downgraded on a model that does not offer it. The tools step can delegate a sub-task to a child run with its own context, which runs sequentially rather than in parallel.sleep · arm the next alarm · nothing runs in betweenWAKEan alarm, not a callCONTEXTseed · repair · compactMODEL CALLone per turnTOOLSwaves, barrier by defaultCOMMITfive writes, then sleepDURABLE STOREtranscript · board · notes · summariescommit writes · the next wake readsCOMPLETION WINDOWon the request · one model, three tiersasap1.000x per tokenpriority0.626x per tokenloose0.500x per tokena model without it → refused, HTTP 400,never quietly downgradedDELEGATEa child run with its own context,its own budget and its own transcriptone run per turn — isolation, not parallelism

dashed — shipped in the runtime, not exercised by the benchmark in this post

Drawn from the implementation, and what is missing is deliberate. No box here runs on spot compute and none queues a batch job: the completion window is a tariff on the request, and the live path issues an ordinary call on every window. Delegation is sequential — the board takes one run per turn, so two live children run one after the other. It buys context isolation, never wall-clock, and the instrument that would falsify a parallelism claim reads one in-flight sub-agent on every trial ever recorded. The measured arm in this post runs Vetta's prompt, tool surface and thinking budget on the pi agent core; the durable loop, the store and delegation are the shipped runtime, and the dashed box is the one the benchmark did not exercise.

The loop is an alarm, not a call stack. Every turn commits before it ends, so an agent that runs overnight survives a crash, a restart and a machine change, and loses one turn rather than the run.

What a finished task costs

Figure 2 · what a finished task costs, and how many finished

Axis: measured dollars per COMPLETED task, indexed to Vetta = 1.00. Shorter is cheaper. Beside each bar: the share of tasks that harness finished, and the tokens it spent per finished task — a count that depends on no price at all.

Vettacomparator
Vetta$0.298 per finished task · 75% finished [92% on the clock it had] · 1.01M tokens
1.00x
claude-code$0.872 per finished task · 69% finished [100% on the clock it had] · 3.03M tokens
2.93x
hermes$1.095 per finished task · 63% finished [77% on the clock it had] · 3.23M tokens
3.68x
pi$1.102 per finished task · 56% finished [78% on the clock it had] · 1.84M tokens
3.70x
codex$1.360 per finished task · 56% finished [82% on the clock it had] · 2.59M tokens
4.57x
0x1x2x3x4x5x

One model, zai-org/GLM-5.2-FP8, held fixed on every row. Same benchmark, same wall-clock cap, same default completion window, one machine class per harness, all eight long-horizon tasks on every row. Dollars are ledger dollars: our rate card books every prompt token at the full input rate while the vendor bills cache-read input at a fifth of it, so each row's card figure is divided by an over-statement factor measured for that harness at that window. Those factors run from 1.017x to 4.176x, which is why an uncorrected card ranking is not the same ranking — and they are single-bracket measurements good to about ±10%, so the dollars are printed to three decimals and the ranking rather than the digit is the claim. Cost per completed task divides everything an arm consumed — including what it consumed on tasks it did not finish — by the tasks it did finish. The bracketed rate counts only attempts that never hit the wall-clock cap: claude-code never failed a task it was given time to finish, and hit the cap on more than a third of its attempts, so the clock is part of the raw ranking.

Every harness ran the same model on the same tasks under the same clock. Only the wrapper changed. Vetta finished a task for $0.298; the next-best harness charged $0.872 for the same finished work.

The gap is not a smaller model or a shorter answer. It is what the harness chooses to put in front of the model each turn, and what it declines to re-send — which is why the token count moves with the dollars.

Three prices for one model

Figure 3 · three prices for one model

Axis: everything INDEXED to asap = 1.00. The measured price per token lands on the published input tier to within a thousandth. What you pay for it is latency — the median model call, printed in raw seconds beside its bar.

price per tokencost per finished taskmedian call latency
asappublished tier 1.000 · 75% finished
1.000x
1.000x
3.2s
prioritypublished tier 0.625 · 81% finished
0.626x
0.784x
11.3s
loosepublished tier 0.500 · 63% finished
0.500x
0.574x
13.1s
0x1x2x3x4x

Vetta on all three rows — same harness, same model, same tasks, only the requested window differs. The measured price is cost ÷ tokens off the same meter, and it lands on the published input tier (1.000 / 0.625 / 0.500) because this workload is 97.6-98.3% prompt tokens; a workload with more output in it would sit higher, since the output tiers fall less steeply than the input ones. Cost per completed task is ledger dollars, and the over-statement factor was measured separately at each window rather than assumed equal across them, so the three rows are corrected independently and the ratio between them carries three separate measurement errors rather than none. Latency is the one series not drawn from the benchmark runs: it was measured directly against each window, and the same three readings set the per-window wall-clock cap in the suite — so the completion figures compare unequal time budgets by design, and the price and cost figures are unaffected by that scaling.

The completion window is a field on the request. It picks how long you are willing to wait, and the measured price lands on the published tier to within a thousandth. priority is the interesting row: it finishes more than the default and costs 21.6% less per finished task. loose costs 42.6% less.

What you give up is latency. For an agent that works overnight and delivers in the morning, that is a trade worth making. For an agent a human is watching, it is not.

A cheap bill is not automatically a saving

Figure 4 · the control — a cheap bill can just be an agent that died early

Axis: each arm's own bill at loose divided by its own bill at priority, so 1.00 means the cheaper tier bought nothing. Both arms were offered the same tariff on the same model and the same tasks. bare pi is Vetta's harness without Vetta's configuration.

Vettabare pi — the control
Vettahit the clock on 19% of attempts at priority, 13% at loose
0.570x bill
0.71x tokens
room to spend the latency; the bill falls
pihit the clock on 75% of attempts at priority, 69% at loose
1.005x bill
1.30x tokens
cap-bound at both; spends the discount on more tokens
0x0.5x1x1.5x

The same tariff cannot be worth two different amounts, so the difference between these two rows is not the price — it is what each agent could do with the extra latency the cheaper tier costs. bare pi hits the wall-clock cap on roughly three attempts in four at both windows: it has no slack, so it spends the discount on more tokens and its bill comes back where it started. Vetta hits the cap on one attempt in six, converts the tariff, and its bill falls by more than the tariff alone. These three ratios are the one place a card figure appears in this post, and only because none of them is a dollar and none is ranked against another arm: each is one arm measured against itself off the same meter on both sides. bare pi has no measured over-statement factor at either window, so no dollar for it appears anywhere here. The number the post ranks on remains cost per FINISHED task, which cannot be improved by finishing fewer.

A looser window also lets an agent run longer per call inside the same budget — so a cell can look cheap simply because its attempts died early. Bare pi is the control: same harness, without Vetta's configuration, cap-bound at both windows. It has no slack to spend, and its bill comes back at 1.005x. Vetta has slack, converts the tariff, and lands at 0.570x.

That is also why every dollar here is per finished task, which cannot be improved by finishing fewer.

Figure 5 · does a cheaper window change the answer

Each cell is the outcome for one task on one window. 6 of 8 tasks scored identically on all three — reading across a row asks whether the price tier moved the result, and on most rows it did not.

taskasappriorityloose
build-cython-extidentical across all threesolvedsolvedsolved
fix-ocaml-gcidentical across all threesolvedsolvedsolved
qemu-startupidentical across all threesolvedsolvedsolved
sqlite-with-gcovidentical across all threesolvedsolvedsolved
path-tracingidentical across all threesplitsplitsplit
train-fasttextidentical across all threenot solvednot solvednot solved
compile-compcertloose lost it — to wrong answers, not to truncationsolvedsolvednot solved
configure-git-webservernon-monotone — tightest and loosest tiesplitsolvedsplit

Vetta on all three windows, same model, same tasks, repeated attempts on each. The two rows that moved are named. A price cut paid for in unfinished tasks is not a price cut, which is why this figure prints every task rather than a summary rate — and why the one task loose lost is worth naming twice: it failed on wrong answers, not on truncation, which is the opposite of what a running-out-of-time story would predict. Two rows out of eight cannot be told apart from ordinary run-to-run variance here; what the figure can say is the shape.

Where the window does not apply

The window is served on one model. On any other, a request for priority or loose is refused with a typed error — window_unavailable, HTTP 400 — and never quietly downgraded. The failure it exists to prevent is accept-and-drop: a caller asks for loose, the edge serves the default, and the manifest, the meter row and the results table all say loose while the bill says otherwise. Nothing anywhere disagrees, and a discount that was never bought gets reported as one.

Frequently Asked Questions
What is Vetta?+
An agent harness for long-horizon work. It runs a durable agent that wakes, does a turn, commits its state and sleeps, so a task that takes hours survives a crash, a restart and a machine change without losing what it learned.
What does 'most efficient' mean here?+
Lowest cost per task actually finished, with the model held fixed and every harness on the same benchmark under the same clock. It charges a harness for everything it burned on tasks it never finished. Vetta is also lowest on the same measure denominated in tokens, which depends on no price at all.
What is the completion window?+
Three price tiers for one model, chosen on the request. A looser window is priced lower per token and answers slower — measured at 1.000, 0.626 and 0.500 per token against published tiers of 1.000, 0.625 and 0.500.
Are the dollar figures list price or actual cost?+
Actual cost. Our rate card books every prompt token at the full input rate while the vendor bills cache-read input at a fifth of it, so the card over-states — by a factor that is a property of each harness at each window, measured here at 1.017x to 4.176x. An uncorrected card comparison mis-ranks by up to 4x. Two harness-and-window pairs have no measured factor and carry no dollar figure anywhere.
Why is cursor not in the comparison?+
Its CLI talks only to its own vendor infrastructure and cannot be pointed at the model this study holds fixed, so a cursor arm would vary the model as well as the harness and would not be a comparison at all.
DZ
Dennis ZaxCTO

CTO of Naïve.

@denniszax
Keep reading