One Mac hub for routing, memory, and local inference

Day-to-day coding kept breaking when every session pointed straight at a raw model server and hoped routing, memory, and context compaction would sort themselves out. So I built Home Base on Apple Silicon: a hub between the coding-agent client and the model process.

The client in this series is OpenGrok. This post is the hub it aims at over Tailscale.

Series order: OpenGrok, then this post, then Flash Next MTP vs 27B+DFlash, then speculative decode / parent+1.

The shape

Layer What it is
Hub ghost128: 128 GB Apple Silicon, reachable over Tailscale
Brain Home Base proxy on a local endpoint: Jev routing, memory, compact endpoint
Serve mlx-serve Flash Next mixed 4/8-bit on a local endpoint
Client OpenGrok on gHost64 → the Home Base brain over Tailscale
Layer diagram: the OpenGrok client connects over Tailscale to the Home Base brain proxy (Jev routing, memory, compact endpoint), which forwards to mlx-serve running Flash Next mixed 4/8-bit; brain and serve sit on a 128 GB Apple silicon hub.
Fig. 1. The layer table above as a diagram: client, brain and serve, with brain and serve on the 128 GB Apple silicon hub.

The model on the hub today is ddalcu/Qwen3.8-Flash-Next-MLX-Serve-mixed-4-8bit (model_max 262k). Before that default, Home Base ran Qwen3.8-27B-4bit with a DFlash2 drafter at --ctx-size 150000. Why I switched, and the tok/s numbers, live in the Flash Next post.

Why a brain in the middle

Pointing the client at raw mlx-serve worked until compaction and fan-out got messy. The brain owns:

  • Jev routing: what stays in context vs what gets dropped
  • Memory: durable state across turns without stuffing the prompt yourself
  • POST /v1/compact: the client hits this when auto_compact_threshold_percent = 40

I deliberately keep per-turn chat_compact = false. Compacting every turn fights the prefix cache. Better to let the brain compact at the threshold and keep hot prefixes reusable. Live Titan sessions showed ~99% hot-cache reuse at ~45k prompt; details in the Flash Next write-up.

How I use it day to day

  1. ghost128 runs the brain (a local endpoint) and Flash Next (a local endpoint).
  2. gHost64 runs OpenGrok aimed at the Home Base brain over Tailscale.
  3. Coding traffic goes through one hub. Explore/plan can pin elsewhere (I pin those to gpt-5.6-luna); the local default is Flash Next.

Default launch is a launchd job, with a rollback script if the new default misbehaves.

Failure modes I hit first

  • Four concurrent streams at 45-65k context dropped decode to ~17 tok/s and looked hung. One GPU was doing the work of a cluster. Caps live in the fan-out post.
  • No MLX DFlash checkpoint for Flash Next. Speculative decode on this model is native MTP. The old DFlash2 path does not apply.
  • Soft product note: this stack powers a lot of the local coding work behind projects I ship, including work featured on destroyrebuild.xyz. Workshop setup.

Series

Project: Home Base · Tags: Local inference Agent memory Speculative decoding MLX

All ship logs