Published on
Abinyah Walker

Two lanes: one Slack workspace, a local model and an API model .

Our Slack workspace has two rooms with different rules. One is ordinary: questions, drafts, research, the things you would paste into any chatbot. The other is for work that should not leave the building — and in that room every model call, including the helper calls nobody thinks about, runs on localhost.

That second lane is not a setting on the assistant. It is a second agent.

.The split, in one line

  • General rooms → an API model. Fast, cheap, current, and fine for anything you would say out loud on a call.

  • Local rooms → an MLX model on the laptop's GPU. Slower, smaller, and yours.

.Why the channel is the switch

The tempting design is to let the assistant decide. Something arrives, it judges the message sensitive, and it quietly routes to the local model.

That cannot work, and the reason is ordering. By the time a model is reading your message, the message is already inside a provider's context window. A tool result — a file, a database row, a NAS listing — lands in that same window a second later. An agent that decides to switch has already leaked what it was deciding about.

So the boundary has to sit outside the model. A human picks the room, and the room has a fixed answer. That is the whole trick: sensitivity is a property of where you typed, not a judgement the machine makes afterwards.

One corollary worth saying: a room is not protected retroactively. Anything sent before the rule existed is already in the cloud session record. The rule governs future messages only.

.What a per-channel model pin gets you — and what it doesn't

The easy version is a per-channel override: one line in the config pinning that channel to a local model. We ran that first. It covers the main model and nothing else.

  • Helper calls ignore the pin. Vision, conversation compression, session search, title generation — each resolves its own model from global config. Drop a screenshot in the local room and it still goes to a cloud vision model.

  • The fallback chain is global. When the local model errors, Hermes walks a failover list with no idea which channel it is serving. Ours used to end in DeepSeek and Claude. One flaky local call and the private room quietly finishes its answer in the cloud.

  • Nothing errors. Which is the worst property of all. A leak that logs a warning gets fixed; a leak that looks like a successful reply does not.

.What we actually run

The local lane is a separate Hermes profile: its own config.yaml, its own .env, its own launchd service, its own Slack app. Separate memory, separate process.

The important part is not that everything points at local. It is that there is nothing to point anywhere else.

  • Main model: qwen3.8:27b-mlx on Ollama, 18 GB resident, 131k context, observed at 100% GPU on a 36 GB MacBook Pro.

  • All sixteen auxiliary tasks pinned local — gemma4 for vision, glm-4.7-flash for compression, titles, approvals, session search.

  • Fallback list: one entry. Another local model.

  • Text-to-speech off. No local TTS engine ships with Hermes, so leaving it on would quietly ship your text to a cloud voice service.

  • Speech-to-text local, via faster-whisper.

  • .env holds exactly two values: the Slack bot token and the Slack app token. No DEEPSEEK_API_KEY, no GOOGLE_API_KEY, no ANTHROPIC_API_KEY.

That last line is the only real enforcement. Hermes cannot veto a model call from inside a hook or a middleware — the call site catches the exception and proceeds anyway. So impossible has to come from credential absence: if a cloud call is attempted, it gets a 401. Everything else is configuration that a future edit could undo without anyone noticing.

.Local inference is not offline

Say this out loud before planning around the second lane. The model runs on the machine. The web search tool still reaches the internet. So does the browser, the weather lookup, the calendar export. Local-only governs inference — which is what carries your text — not every network call the agent can make.

.The traps we hit

  • One local model at a time. We have an 18 GB MLX model and a 19 GB GGUF model. They do not both fit in 36 GB. Loading the second while the first was warm pushed free RAM to 0.6 GB, and the benchmark loop started returning truncated results that looked like model failures.

  • A dead socket looks like a quiet bot. Socket Mode failing with invalid_auth produces no user-visible error — the agent simply stops hearing messages while the process stays up and the health check says running. Check that the bot answers, not that the service is listed.

  • Both bots in one room means two replies. Move the new identity in, confirm it answers, and only then remove the old one.

  • Config is read at process start. Every routing change needs a restart, and restarted means the PID actually changed.

.Why we teach this

Two lanes is not a security product. It is a habit: decide where a question belongs before you ask it, and make the room enforce the answer. That is the same reasoning behind the community access hubs we are building — the safe path has to be the default path, or nobody takes it.

.Deux voies, un espace de travail

Une salle ordinaire pour le travail courant, sur un modèle API. Une salle pour ce qui ne doit pas sortir, sur un modèle local. Le choix se fait au moment d'écrire, pas par l'assistant : quand le modèle lit le message, il est déjà dans son contexte.

Local ne veut pas dire hors ligne : l'inférence reste sur la machine, la recherche web sort encore.

Ateliers en français à venir | French-language workshops coming soon.

← Back to all posts