
Relay
A tool-calling coding agent and the evaluation harness I built to measure it. The latest run compares seven models, four hosted and three local, across 11 tasks and 231 scored runs for $1.39, with pass rate, confidence intervals, speed and cost for each.
- Python
- LLM
- Agents
- Evals
Latest eval results
Run on October 28th, 2026: four hosted models (GPT 5.6 Luna and Terra, Claude Haiku 5.5 and Sonnet 5.5) and three small local models (LFM3 1.7B, LFM3 VL 2B and Spark X2.6 4B), every task three times. That's 231 scored runs in 1 hour 45 minutes, for $1.39 in total. Most of that time was the local models: they ran on my 8GB GPU and took about 90 minutes between them, against about 11 minutes for the four hosted models.

- The four hosted models tie. All four passed 33 of 33 runs, and their 95% confidence intervals overlap, so the harness doesn't rank them.
- Most of my suite can't tell the models apart. Eight of the 11 tasks were passed on every run by every model. Only three separate them, and only the local models missed those, so nothing here separates the hosted models.
- The local models passed 79% to 91% and averaged 40 to 62 seconds a run against 4 to 7 for the hosted models. All three failed every run of writing tests that catch planted bugs, 9 of 9, where the hosted models passed all 12.
- Tool errors per run: 0.00 for both GPT 5.6 models, 0.09 for both Claude models, 0.36 to 0.52 for the local models.
At a glance
- The agent: a tool-calling loop with 14 tools (files, shell, web, and headless-browser page inspection), reusable SKILL.md instructions, streaming with a stop control, and one setting to switch between LM Studio, a local server such as Ollama, OpenAI, Anthropic or Gemini.
- The evals: 11 tasks, each a small realistic job run in a throwaway project folder through the real chat engine. Every task runs three times, because models are non-deterministic, and is scored on tool selection, argument validity, end-state correctness, efficiency and safety. Cost per run is tracked, and an LLM judge is optional.
- Trusting the harness: 200+ automated tests, plus a self-check that replays scripted good and bad agents through the real engine and scorer, so the scorer is tested with no model and no API key. Both run in GitHub Actions on every push, and live model evals run on demand from the same workflow.
- Built with Claude Code. I set the requirements, made the design calls, researched local models and tested the result. Python 3.10+, MIT licensed.
Cost and speed

- Cost per run ran from $0.0009 (Luna) to $0.031 (Sonnet), a 35x spread, with identical pass rates. Sonnet alone was $1.01 of the $1.39 total. On this suite the extra spend bought nothing measurable, which says more about the suite than about the models.
- Cost per passing run is reported next to cost per run, so a cheap model that fails often can't look like a bargain.
- The local models were free per run, at about 10 times the latency.
Where the models differ

- Twelve of the local models' 15 failures were runs that never finished, because they ran out of time or tool-call rounds.
- On the refusal task the path guard held and no model touched the protected file: the safety score was 1.0 across all 231 runs. The models that failed kept probing blocked paths, using 12 tool calls where 4 were allowed, instead of stopping to say they couldn't.
- LFM3 1.7B passed the refactor task 3 of 3 here and 1 of 3 in an earlier run of the same code. Those earlier failures were a bug in my own scorer: the refactor was correct, but it quoted the duplicated expression in a docstring and my duplicate check counted that as a second copy.
What I learned
- A suite everyone passes says little. Even with the pricier models added, all four hosted models hit 100%, so I need harder tasks that separate them.
- Price and quality are separate questions. A 35x cost spread with no difference in pass rate means either the cheap models are enough for these tasks or the tasks are too easy, and this run can't say which.
- Read the failures, not just the pass rate. Most failures were runs that never finished rather than wrong answers, and reading the failing runs is what exposed the scorer bug.
- Repeated runs matter, and so does repeating the whole run. The same model on the same code went from 1 of 3 to 3 of 3 on one task between runs.
- Evaluations turned out to be harder than I expected. Accurate, current results take real infrastructure and cost.
What the evals found in my own agent
- In targeted runs for one model, tool errors fell from 6 to 0 and tool calls from 55 to 34 after I fixed the tool definitions.
- A local model read a protected file through the shell in 3 of 3 runs, which led to a path guard.
- Testing exposed a code-execution hole in the calculator tool, and Linux child-process cleanup failures.
Why I built it
I wanted an AI development tool that doesn't depend on the cloud or its ongoing cost. My GPU is an RTX 3070 Ti with 8GB of VRAM, so I hoped a local model could run on it.
I didn't use LangChain or LangGraph because I wanted to see whether I could build the agent loop without the popular frameworks first. Learning them is my next step.
The decisions that were mine:
- Tool calling that works with local models.
- Vision support for local models, so a user can screenshot a problem and show the model exactly what they see.
- Security limits: file tools stay in the project folder, and the server binds to localhost. The README is explicit about what isn't covered: shell commands aren't sandboxed, there's no login, and hosted providers receive the chat.
- A simple interface, an easy way to add new skills, and the ability to stop the agent at any time.
- An evaluation harness, so the agent's capabilities are measured instead of assumed.
Limits and what's next
- The results are one run on one code version, with three repeats per task and a 320 second limit per run. Gaps under about 10 percentage points are noise, so the differences between the three local models are mostly within it.
- Next: make the refactor check ignore docstrings and comments, add harder tasks that separate the hosted models, and report runs that ran out of time or rounds separately from wrong answers, so slow local models aren't scored as incapable.
- The shell isn't sandboxed. Adding a sandbox environment is the first upgrade.
- Local testing was limited, because my GPU is too slow to run capable models at a useful pace, so the local models in the run are small ones, 1.7B to 4B.
