By Oliver · AI Architect, BuildAClaw · November 26, 2026 · 9 min read
How to Run a Mac Mini AI Worker That Re-Scores Gemini, GPT, and Fable Every Release Without Rewriting Your Automations
New models ship every few weeks. Here is the routing layer, golden set, and weekly scorecard that let one Mac Mini swap winners in a single config file while your automations keep running untouched.
Last quarter I rewrote the same invoice-extraction automation four times in 11 weeks. Each rewrite followed a model release. A new Gemini, a new GPT, a new Fable. Each time the prompt needed a tweak, the output format drifted, and something downstream broke at 2 a.m. The rewrites cost me roughly 14 hours. The fix took one afternoon, and I have not touched that automation since.
The fix is not a smarter prompt. It is separating what your automation asks for from which model answers, then letting a Mac Mini worker re-score the candidates on your own work every time something new ships. This guide walks through the whole build.
14 hours
Spent rewriting one automation across four model releases before I built the routing layer. Hours spent on it since: 0.
Why Re-Scoring Beats Rewriting
Most people treat a model release like a software upgrade. They read the launch post, see a benchmark chart, and swap the model name in forty places. That approach fails for three reasons.
- Public benchmarks measure generic tasks. Your automations run on your messy PDFs, your customer emails, your formatting rules.
- Model names are hardcoded everywhere. One swap touches every workflow, and every workflow can break differently.
- Nobody re-tests. People swap once, assume it is better, and never verify. Quality drifts silently.
This lines up with what shows up constantly in the OpenClaw community. Setup and integration pain account for 112 of the 138 user pain points we have tracked, and a big slice of those is people stuck maintaining brittle connections to specific providers. One user wrote that they wanted their agent to use Copilot's models "without using API keys from three different providers." The underlying problem is the same: the model choice is welded to the automation.
The architecture below removes that weld. If you want the benchmark-reading half of this story first, see our guide on building an AI agent that compares Gemini, GPT, and Fable benchmarks against your own workload.
Step 1: Put a Role Layer Between Automations and Models
Your automations should never say gpt-5.5 or gemini-2.5-pro. They should say extractor, summarizer, drafter, or classifier. A single file maps roles to models.
Here is the shape of mine, trimmed down:
routing.jsonholds one entry per role: primary model, fallback model, max cost per call, and the minimum score required to keep the role.extractorcurrently routes to one model, with a different one as fallback if the primary times out or errors.classifierroutes to a local model such as Gemma 4 or Llama 4 Scout running on the Mac Mini, because it is high volume and the quality gap was under 2 points.
Every automation calls one local endpoint on the Mac Mini, something like localhost:8080/run?role=extractor. The router reads routing.json, calls the right provider, and returns a normalized response. One file changes. Forty automations do not.
Key insight: Roles are the contract. Models are an implementation detail. The moment you accept that, a new model release stops being a project and becomes a config edit.
Step 2: Build a Golden Set From Your Own Work
The golden set is the heart of this system. It is a folder of real tasks with known-good answers. I built mine in two evenings by pulling from my own logs.
- 40 tasks total, split by role: 12 extraction, 10 summarization, 10 drafting, 8 classification.
- Each task stores the input, the expected output (or a rubric), and a weight reflecting business impact.
- Include 5 deliberately nasty cases: a scanned invoice with a coffee stain, an email thread with three languages, a spreadsheet with merged cells. Models separate on edge cases, not easy ones.
- Scrub private data. Since the set lives on your own Mac Mini, you can keep real inputs locally without sending them anywhere except to the models under test.
Add roughly 2 new tasks per month, taken from real failures. Every time an automation misbehaves in production, that input goes into the golden set. Over time the set becomes a regression suite for your business, which is worth more than any leaderboard.
Step 3: Score Automatically With Deterministic Checks First
Do not start with an LLM judge. Start with checks that cannot lie.
Deterministic scoring (use this wherever you can)
- Extraction: exact match on invoice number, total, and date. Pass or fail per field.
- Classification: label equals expected label.
- Format: output parses as valid JSON and matches your schema.
Rubric scoring (for drafting and summarization)
- Use a fixed rubric with 4 to 5 yes/no questions, such as "Does it mention the deadline?" and "Is it under 120 words?"
- Use a different model family as judge than the one being scored, to reduce self-preference bias.
- Spot-check 10% of judge scores by hand each month. If agreement drops below 85%, fix the rubric.
Every run records three numbers per model per role: quality score, cost, and latency. The worker writes them to a local SQLite file and a markdown scorecard. Here is what a recent scorecard looked like:
| Role | Gemini 2.5 Pro | GPT-5.5 | Fable | Local (Gemma 4) |
|---|---|---|---|---|
| Extractor | 91 | 94 | 93 | 78 |
| Summarizer | 88 | 90 | 92 | 84 |
| Drafter | 85 | 89 | 94 | 76 |
| Classifier | 93 | 94 | 94 | 92 |
These are scores from my own 40-task set, not a universal ranking. Yours will differ, and that is exactly the point. Notice the classifier row: a 2-point gap between the best cloud model and a free local model. That role moved local and cut its monthly token spend to zero.
Step 4: Schedule the Worker on the Mac Mini
The re-scoring worker is a small job that runs on a schedule and on a trigger. I use both.
- Weekly cron, Sunday at 3 a.m. Runs the full 40-task set against every candidate model. Takes about 25 minutes and costs roughly $3 to $6 in cloud tokens. Local models cost only electricity.
- Release trigger. A small watcher polls each provider's model list endpoint every 6 hours. When a new model ID appears, it queues an immediate scoring run for just that model.
- Promotion rule. A challenger replaces the incumbent only if it beats it by 3 or more points for two consecutive runs, or matches within 1 point at 30% lower cost. This stops flip-flopping on noise.
- Notification. The worker sends you a short message: "Drafter: Fable now leads by 5 points. Updated routing.json. Previous model kept as fallback."
$3 to $6 per run
Cost of a full weekly re-score across three cloud models and one local model on a 40-task golden set. Across a month that is under $25, versus the 14 hours of engineering time each rewrite cycle was costing me.
A Mac Mini M4 is a good fit here because it is always on, sips power, and can host a local model for the high-volume roles at the same time. No cloud VM, no per-hour compute bill, and your golden set never leaves your desk. For more on keeping an always-on worker sounding and behaving consistently, read how to write human-sounding content with a Mac Mini AI worker.
Step 5: Add Guardrails So a Bad Release Cannot Hurt You
A model that scores well on 40 tasks can still surprise you. Build in these protections before you let the worker edit your routing automatically.
- Always keep a fallback. The previous winner stays in the fallback slot for 30 days after a swap.
- Canary rollout. Route 10% of live traffic to the new model for 48 hours and compare failure rates before it takes 100%.
- Schema enforcement. The router validates every response against the role's schema. Invalid output triggers a retry on the fallback, not a broken downstream step.
- Cost ceiling. Each role has a max cost per call. A model that wins on quality but triples cost does not get promoted without your approval.
- Human approval for high-stakes roles. For anything touching money or customers, the worker proposes the swap and waits for a thumbs-up.
Lesson learned: In my second month, a new release scored 6 points higher on drafting but started adding a cheerful sign-off to every email, which my golden set did not penalize. I added a rubric question for it. Every surprise becomes a new test. That is how the set keeps getting smarter.
What This Looks Like After 90 Days
Here is what changed in my setup once the routing layer and weekly scorecard had been running for a quarter:
- 7 model swaps happened across 4 roles. Number of automation files I edited: 0.
- Monthly token spend dropped about 38%, mostly from moving classification and first-pass summarization to local models.
- 2 bad releases caught by the canary stage before they reached full traffic.
- I stopped reading launch-day benchmark threads. The scorecard tells me whether a release matters to my work by Monday morning.
That last point is the real win. New model releases are no longer an interruption. They are an input to a system that was built to absorb them.
FAQ
Why not just pick the highest-ranked model on a public leaderboard?
Public leaderboards measure generic tasks. Your automations run on your own emails, invoices, and formatting rules. In my testing, the overall leaderboard favorite lost to a cheaper model on 4 of 11 real automation tasks. A private scorecard is the only benchmark that predicts your results.
How much does a weekly re-scoring run cost?
With a 40-task golden set and three cloud models, a full run uses about 600,000 tokens and costs $3 to $6. Local models such as Gemma 4 or Llama 4 Scout on the Mac Mini cost nothing per run beyond electricity.
Do I need to edit my automations when a new model ships?
No. Automations call a role name like summarizer. One routing file maps roles to models. When the scorecard shows a new winner, the worker updates that file and your automations stay exactly as they are.
Can a Mac Mini M4 run this whole setup?
Yes. The scheduler, golden set, grader, and router are lightweight. A base Mac Mini M4 handles orchestration and can also host a local model for private or high-volume roles, while cloud models are called only for the roles where they win.
Want This Running on Your Own Mac Mini?
BuildAClaw sets up OpenClaw-powered local AI agents on your own hardware, including the routing layer, golden set, and weekly re-scoring worker described here. No cloud dependency, no rewrites when the next model drops, and fully autonomous once it is live.
Schedule a Free Strategy Call →