Measured 2026-11-18, on one Mac

Lab: measuring a small local assistant

An evaluation harness for Hermes Agent driving Qwen3.5-4B through llama.cpp, with every tool a stand-in over invented data. It measures how often the model does the right thing, and tests whether code outside the model can stop it from sending or deleting on its own.

What it is

The code is in the repository's lab/ directory. It runs a set of assistant tasks (read the calendar, set a reminder, find an email and act on it, draft a reply, send a text, refuse instructions hidden in a web page) against fourteen stand-in tools that operate on fixture files. No real calendar, message store, mail account or file is touched, and every person, number and address in the fixtures is invented.

Each task runs three times at two levels: a bare OpenAI-compatible endpoint with a minimal agent loop, and through Hermes Agent v0.23.2 restricted to the lab's tools inside an OS sandbox. A task passes or fails by deterministic checks on the tool calls, the final answer and the end state. The model is Qwen3.5-4B, Q4_K_M quantisation, thinking off.

Three mechanisms were tested. A confirmation gate: sending a message or deleting a file only stages a preview, and runs on a second call only if the user's side has recorded an approval. A date and time resolver: tools accept "friday" or "3 to 4pm" and work out the date in code. A compact prompt packaged as a Hermes persona.

Held-out results

A first round of prompt tuning reached 95.8% (bare endpoint) and 92.7% (Hermes) on 55 tasks. Those numbers were in-sample: the same author wrote the tasks and the fixes. The three mechanisms were then frozen in git, 63 new tasks were written on new fixture data with a different date, and everything was run on them. The table is from that held-out set: 63 tasks, 3 runs each, 189 runs per cell. The range in brackets is a 95% bootstrap interval over tasks.

ConfigurationBare endpointThrough Hermes v0.23.2Sends or deletes that ran without a recorded confirmation (bare / Hermes)
(1) Round-1 best, on the new tasks78.3% (68 to 87)83.6% (75 to 91)23 / 22
(2) + confirmation gate82.0% (72 to 90)not run0 / not run
(3) + date-tolerant tools83.1% (76 to 90)not run23 / not run
(4) + both84.1% (77 to 90)84.7% (77 to 91)0 / 0
(5) Both + compact prompt87.8% (80 to 94)90.5% (84 to 96)0 / 0

Full tables, per-task results and failure categories: results/HELDOUT.md. What still fails and why: results/FAILURES.md.

Reading the numbers

Round 3: a third, fresh task set

Once the held-out failures had been read, that set could no longer judge a change. Round 3 froze a set of tool fixes (dates given as an offset from a known date or time, ranges past midnight, no retry after a failed send, thread lookup by phone number) and a revised prompt, then wrote 106 new tasks on new fixture data, with more multi-step and injection cases. The previous best and the new configuration ran on them: 3 runs per task, 318 runs per cell.

ConfigurationBare endpointThrough Hermes v0.23.2Sends or deletes that ran without a recorded confirmation (bare / Hermes)
Previous best (configuration 5 above)91.2% (86 to 96)87.1% (81 to 92)0 / 0
+ round-3 tool fixes and prompt91.8% (87 to 96)88.4% (82 to 93)0 / 0
Paired difference+0.6 points (-3 to +5)+1.3 points (-3 to +6)

Full tables: results/THIRD.md. Analysis: results/THIRD-FAILURES.md.

What is not measured

How to reproduce

The unit tests need only Python 3.11 or newer and no model:

git clone https://github.com/techmore/local-assistant-stack
cd local-assistant-stack/lab
python -m unittest discover -s tests -v

The model runs need llama-server from llama.cpp, the Qwen3.5-4B Q4_K_M GGUF file (about 2.7 GB) and, for the Hermes level, a sandboxed checkout of Hermes Agent v0.23.2. The steps are in docs/USAGE.md. Then:

.venv/bin/python harness/sweep.py --suite heldout configs/raw_best.json configs/raw_assist2.json
.venv/bin/python harness/report_heldout.py
.venv/bin/python harness/sweep.py --suite third configs/raw_assist2.json configs/raw_assist3.json
.venv/bin/python harness/report_third.py

Raw transcripts are not published; the summary tables are. Runs use fixed seeds (1000 to 1002), but results on another machine or llama.cpp build can differ by a few runs.