Research date 2026-11-18

What to build

Three reference architectures with a choice per layer and a list of what will not work well, then a first-weekend plan. Architecture C, hybrid local plus hosted, is the recommendation.

Three reference architectures

A. Single M4 mini, 16 to 32 GB: the assistant box

Layer Choice Why
Agent Hermes Agent, latest stable (v0.23.x), gateway as a LaunchAgent Closest single project; one gateway serves every client [1]
Runtime llama.cpp llama-server (or Hermes's managed llama.cpp) Best tool-call completion and flat memory in the only controlled benchmark found [12]
Chat and voice model 16 GB: Gemma 4 E4B or Qwen 3.5 9B at 4-bit. 24 to 32 GB: Gemma 4 26B-A4B at 4-bit or LFM2.5-24B-A2B Speed first for voice; see the RAM tier table
Work model 32 GB only: Qwen 3.6-35B-A3B at 4-bit with 32K context, swapped in for jobs First credible local agent tier
STT Parakeet TDT v3 through FluidAudio or mlx-audio 0.10 s on an M4 [42]
TTS Kokoro through Kokoro-FastAPI or mlx-audio; Pocket TTS as the CPU-only alternative Local, fast, OpenAI-compatible so Hermes can use it [3]
Wake word Hermes's openWakeWord "hey hermes" Built in, on-device [4]
Integrations imsg, remindctl, Notes skill; IMAP with drafts-only for mail; CalDAV for calendar See permissions
Long-horizon Hosted models through Claude Code or Codex CLI on a schedule, PR-only The local model at this size is not reliable for multi-hour work
Cost Hardware; about 6 to 36 USD a year in electricity at the assumed rate; hosted tokens for the nightly jobs
Will not work well Unattended coding on the local model; anything needing more than about 32K context on 16 to 24 GB; two models resident at once below 32 GB

B. One M4 Pro 64 GB mini as LAN inference and agent hub, thin clients on Mac and Linux

Layer Choice Why
Runtime oMLX as the primary server on the LAN, with llama.cpp kept available as the fallback for any model whose tool calls fail on MLX Pinning, auto-swap, SSD KV cache and batching suit a shared server; both passed all SiliconBench gates [36][12]
Pinned model Gemma 4 E4B or a 9B for voice and quick chat Sub-second first token
Work model Start with Qwen 3.6-35B-A3B at 8-bit; evaluate Qwen 3.8-27B at 6-bit and Qwen3-Coder-Next at Q4 against it Fast MoE first; the 27B is slower, and whether it is better is for the evaluation to decide; Coder-Next needs nearly all 64 GB
Agent Hermes Agent gateway on the Pro mini, because Apple data lives there; webapp and desktop clients from other machines v0.23.0 architecture [1]
Other minis Each runs its own small server for a dedicated role (voice satellite with local STT and TTS, a second agent worker). No cluster. Clustering gave about 1.3x on decode and needs Thunderbolt 5 with RDMA [12]
Linux clients Hermes desktop, TUI or browser pointed at the gateway; any OpenAI-compatible tool pointed at the mini's endpoint; local sandboxed shell tools on the Linux box Linux on M4 has no GPU inference [40][41]
Messages imsg or BlueBubbles on the Pro mini; blueferry on a roaming Linux laptop See iMessage options
Long-horizon Local model for triage, summarising, labelling, first drafts; hosted for multi-file code changes See where local falls short
Cost Requires an M4 Pro with 64 GB. If you do not have one, this is a purchase, and current-generation pricing was not checked. Electricity about 7 to 74 USD a year.
Will not work well Several concurrent heavy agents on one 64 GB machine; 256K contexts at interactive speed; expecting parity with hosted frontier models

This is A or B with an explicit routing rule, and it is what the evidence supports regardless of which minis you have.

Class of work Route Reason
Voice turns, quick questions Small local model, pinned Latency and privacy
Anything that reads messages, mail, calendar, notes Local model only Private data stays in the house
Drafting replies Local model writes to a review queue; nothing sends without approval See draft but do not send
Upstream triage, labelling, digests Local model plus deterministic rules, report-only The model labels, code decides; checkable
Nightly repo clean-ups, multi-file changes, investigations Hosted frontier model through Claude Code or Codex CLI in a sandbox, PR-only, with a spend cap Local models that fit in 64 GB are well behind on long-horizon work
Fallback when hosted is down or over budget Local work model, report-only Degrade safely

Hermes Agent expresses this with a main model, fallback_providers, cron.model and per-job pins [2]. Components per layer are as in A or B.

Why C: it does not depend on how much RAM the minis have, and it puts the unreliable component, the local model, only where its output is cheap to check.

First-weekend build plan

Saturday morning: foundations (one mini)

  1. Record chip and RAM of each mini with system_profiler SPHardwareDataType. This decides between A and B.
  2. Check free disk space before downloading anything. The larger models in the RAM tier table are 16 to 52 GB of weights each.
  3. Install the current stable Hermes Agent release and confirm hermes doctor passes.
  4. Download two models only: one small chat model and one work model sized for the tier (RAM tier table). Use vendor or Unsloth builds at 4-bit or better.
  5. Start llama-server with explicit context, prompt caching on and an API key, under launchd, with a health check that alerts on failure.

Saturday afternoon: pick the model with evidence

  1. Build a small evaluation set for your own task, with adjudicated gold labels and a rules baseline, and score each candidate on your production runtime at the quantization you will use. Record tokens per second, time to first token and memory alongside accuracy. This produces real, reproducible numbers for your own hardware and task.
  2. Point Hermes at the local endpoint and run a short scripted tool-calling check (ten tasks that require real tool use, including "do not call a tool"). Reject any model and quantization that fakes a result.

Sunday morning: voice and integrations

  1. Voice: enable Hermes voice mode with local STT; run Kokoro-FastAPI or mlx-audio as the TTS endpoint and set Hermes's TTS provider to it instead of the Edge default; enable the wake word. Measure time from end of speech to first audio with a stopwatch script and write it down.
  2. Integrations, read-only first: remindctl, Notes skill, CalDAV calendar, IMAP inbox. For mail, give the agent IMAP without SMTP so it can only leave drafts.
  3. Messages: install imsg, grant access to the smallest host process possible, enable read and watch only. Build the review queue as a plain folder of Markdown drafts with an approve script that is the only caller of imsg send.

Sunday afternoon: unattended work

  1. Create a fine-grained read-only GitHub token and a bot-fork write token. Add the pre-push hook and branch rules.
  2. Schedule two jobs: a daily read-only upstream triage job (local model, report-only) and one nightly repo clean-up (hosted model in srt or a container, draft PR only, spend cap, wall-clock timeout).
  3. Add the morning digest and the dead-man check.
  4. Write down what failed, and compare the list with the gaps on the roadmap.