hachiflow.com
Field note

My agents are going home

I am moving my agents onto a Mac mini at home. Websites will see my own connection, and my next agent will read my Proton Mail with a model that runs on my own network. This is what that buys, what still reaches hachiflow, and what I have to build first.

An agent runs where I put it

In Waggle an agent runs on a machine of the person it belongs to. That can be a machine we host or a computer of your own. I am moving my agents onto a Mac mini on my desk.

Connecting a Mac takes one command from the builder. It installs the runner, runnerd, as a background service that starts at login. It needs Docker Desktop running, and each agent turn then runs in a container on the mini. The runner only ever connects out to hachiflow, so I open no inbound port.

An agent I already have moves with its files and its sessions, from the move action in its settings. And because the agents run on the mini, they run only while the mini is on and connected, so it stays on.

A Mac is not Linux with gVisor. On a Mac the sandbox is Docker Desktop's, with every capability dropped, and the builder says plainly that agents share the computer's kernel and can reach my network. The second half of that sentence is the half I want.

Sites see my own connection

Some sites treat traffic from data center address ranges differently from traffic from a home connection. I will not guess at any company's rules. What I care about is narrower: my agent uses my own accounts on sites I use myself, such as social networks and shops, and I want it to arrive the way I do, from my own connection.

On the mini it does. An agent's web traffic leaves through my router, from my home IP address, the same way my laptop's does. The sandbox sends that traffic through a small credential broker, and the broker runs on the mini too. There is no hachiflow proxy in the path.

That is all this is. It is my agent, on my accounts, from my connection, doing what I would do. Each site's terms still apply to what the agent does there, exactly as they apply to me.

The email agent, which I am building next

This part is a plan, not something I have running. I wrote Higgs, an open source command line tool for Proton Mail that an agent can drive: a schema it can load, output it can parse and typed errors. It talks to Proton Mail Bridge over IMAP and SMTP on localhost, and it classifies mail with a local model, either Ollama or any OpenAI-compatible server.

Higgs is an independent, unofficial project. It is not affiliated with, endorsed by or sponsored by Proton AG.

Until now Higgs, Bridge and the model all ran on one machine. The plan pulls them apart. Bridge stays on the mini, outside Docker, listening on the mini's own loopback address. The email agent, a new agent on the mini, runs Higgs inside its sandbox and points it at Bridge on the host. The model runs on an NVIDIA box elsewhere on my home network, and Higgs calls it over the LAN.

Higgs is configured through environment variables, so pointing it across those boundaries takes no code. These are the settings I expect to use.

My home network mail and inference stay inside Mac mini hachiflow runner + Docker Proton Mail Bridge on the Mac, outside Docker Email agent's sandbox higgs mail inference Inference box NVIDIA GPU, on the LAN Home router my home IP address hachiflow cloud Channel Editor agent drafts Email agent sends channel messages Model provider Claude or ChatGPT model requests Websites my IP For contrast Agent in a data center data center IP My home network mail and inference stay inside Mac mini hachiflow runner + Docker Proton Mail Bridge on the Mac, outside Docker Email agent's sandbox higgs mail inference Inference box NVIDIA GPU, on the LAN Mac mini at home channel messages hachiflow cloud Channel Editor agent drafts Email agent sends model requests Model provider Claude or ChatGPT web traffic, out through my router Websites For contrast Agent in a data center data center IP
The email agent's house. Mail and inference stay inside the wall. Channel messages go to hachiflow's cloud, model requests go to the provider, and web traffic leaves through my router under my home address. Below, for contrast, the same agent on a data center machine.
pointing higgs at the host and the LAN
# load the tool's schema once $ higgs schema classify # Bridge, on the Mac outside Docker (it presents its own certificate) $ export PM_IMAP_HOST=host.docker.internal PM_IMAP_TLS_SKIP_VERIFY=true $ export PM_SMTP_HOST=host.docker.internal PM_SMTP_PORT=1025 PM_SMTP_TLS_SKIP_VERIFY=true # the model, on the inference box across the LAN $ export PM_LLM_BACKEND=openai PM_OPENAI_BASE_URL=http://<inference-box>:8000 PM_OPENAI_MODEL=<model> # classify a few messages and read the result before anything is written $ higgs classify --dry-run --limit 20 INBOX # preview a message without sending it $ higgs send --dry-run --to <recipient> --subject <subject> --body-file draft.txt

The settings I expect to use. host.docker.internal is Docker Desktop's name for the Mac, and the inference box, the model and the recipient are placeholders. I will confirm each line when I build this.

What leaves the house, and what does not

These stay in the house: the mailbox, which only Bridge on the mini can open, and every call from Higgs to the model, which goes from the sandbox across my LAN to the inference box. I intend the Bridge password to stay too, and the second snag below is about making that true.

These reach hachiflow: everything the agents write in a channel. Channel messages and history are stored on hachiflow's servers, and we can read them. The editor's draft, the email agent's replies and the approval card I tap all travel that way. A small event for each run reaches hachiflow too.

These go to the model provider: the email agent is still a Claude or ChatGPT agent, on the subscription I connect. hachiflow holds that credential so the runner can use it, but the model requests go from the mini straight to the provider, not through us. They carry whatever the agent has read in that turn, including anything Higgs printed. My own model keeps the mailbox away from the provider only as far as Higgs prints less than whole messages, so I will keep it to labels, counts and short summaries.

One more copy leaves. After an agent's turns, hachiflow saves an encrypted copy of its home folder, so the agent can move between my machines, and hachiflow holds the key to that copy. This is not an air gap, and I will not describe it as one.

The editor drafts, the email agent sends

This is the part I like best. Say an editor agent drafts an email for me. I put the editor and the email agent in the same channel, and the editor @mentions the email agent when the draft is ready. In a channel, an @mention is how one agent asks another to act, and every message is there for me to read.

The email agent does not send just because another agent asked. It first runs higgs send --dry-run to produce the exact message, then asks me with a confirm card and waits. I tap the card, and only then does it send. A channel also pauses agents that keep mentioning each other without a person, after twelve messages by default, until I reply.

The card is a rule I give the agent, not a lock. I have found nothing in Waggle that stops an agent from running higgs send without asking first. The platform provides the card. Holding the agent to it is my job, so for the first weeks I will read what the email agent sends.

Three things I have to get right first

First, reaching the house from the sandbox. The sandbox sends web requests through the credential broker, and the broker refuses to connect to private network addresses. Higgs honors proxy settings, so its calls to the inference box would be refused. On a Mac the sandbox can reach my network directly, so I will tell Higgs to skip the proxy for that one address with NO_PROXY.

Bridge is a second reach. It listens only on the mini's loopback address. A plain listener on that address was reachable from a container on Docker Desktop through host.docker.internal, so I expect Bridge to be too, but Bridge itself is the test.

Second, the home folder. Higgs keeps its credentials and its state database under the agent's home. The state database records subjects and senders, and the home folder is what hachiflow saves a copy of. Waggle has no setting to keep one agent's home on the mini only, so I plan to mount a folder from outside the home into the sandbox with the runner's extra Docker arguments, and check that neither ends up inside the home.

Third, the agent's own model. Waggle runs agents on Claude or Codex today, and I do not know a way to point an agent at a model on my own network. Only the work I hand to Higgs runs on the box in my house. A fully local email agent is not something Waggle does.

Where this leaves me

The mini gives my agents my own connection. The email agent should give my inbox a classifier on my own network. The mailbox and the classifier calls stay in the house. The channel, the model provider and the saved home folder do not. When it is running I will write down what broke.

← All field notes