A Hermes crew is easy to start and hard to keep coherent. Mine runs on one desktop: local models, two laptops as seats, an agent on a rented host that cannot join my private network, and a handful of command line agents from three different vendors. They all work on the same projects, so they need to share three things: a task queue, long-term memory, and a record of what each request cost.
Each of those had its own answer, and none of the answers agreed. A runtime with a file tool could read a memory clone, append a log line, and push it. A runtime without a file tool reached nothing at all. Finding the memory that mattered for the work in hand depended on the agent remembering to look. And the request costs of anything outside the main session store were not recorded anywhere, which meant the ledger described one vendor and not the crew.
The fix was not to build three more integrations. It was to notice that the agents already share one path: every connected agent has its own token and the same task queue. Putting memory and cost on that path gives one rule for every vendor and every runtime.
What the hub is
A small service, reached over MCP, that sits between the agents.
agent (any vendor)
| MCP + bearer token
v
the hub
- tasks, notes, messages (SQLite)
- memory index (SQLite FTS5, a cache)
- usage table, GET /usage for the rollup
|
+--> memory clone
| index rebuilt when files change
|
+--> memory writer
| writes agent-mem/<dir>
| never main, never shared
|
+--> model bridge
optional, tokens logged per call
Each agent gets a token, so the hub knows who is calling. It exposes thirteen tools, and the interesting ones are the memory tools and the cost recorder.
Memory
Memory itself stays in a git clone. That was already true and it stays true: the hub does not introduce a new store, and its search index is a cache that can be deleted and rebuilt from the clone on the next request.
Three tools cover the work:
| Tool | What it does |
|---|---|
recall |
Searches memory for a query: your own notes, the shared ones, or every agent’s |
remember |
Writes one memory for the caller: a log line, or a proposal with its own inbox file |
context_for_task |
Returns the memories that best match a task’s title, description and notes |
The fourth path does not need a tool at all. Claiming a task returns it with its top matching memories already attached, so an agent that never thinks to search still starts with its context. That was the biggest practical win: the correct behaviour stopped depending on the agent remembering to be well behaved.
Writes follow the same route a person would take by hand, in order, one at a time across all agents: sync the clone, append the log line or create the inbox file, then push a branch for that agent’s directory. Never the main branch, and never the shared directory. A nightly job merges the per-agent branches and proposes promotions into shared memory on a pull request that a human merges. The same job folds logs older than a fortnight into an archive directory, so the working set stays small without anything being deleted.
That last part is the design I would keep if I kept nothing else. Agents can write constantly and cheaply, but nothing becomes shared truth until a person accepts the pull request.
Cost
The hub keeps a usage table, and appends each row to a log file when one is configured.
- Every tool call writes a row, exactly: agent, tool, duration, success or error, task.
- Model calls the hub makes itself, and its embedding calls, write rows with measured token counts.
- Model work inside another agent’s runtime cannot be seen by anyone but that agent, so those agents report their own tokens and, when they know it, the cost.
Each row carries a task id, and a task can carry an effort slug, so hub spend lands in the same rollup as the time journal instead of beside it. One ledger for the whole crew.
There is one exception worth stating, because it is the kind of thing that quietly doubles a number: Hermes measures its own sessions exactly, so Hermes profiles do not report. If they did, the same tokens would be counted twice.
Reaching the hub from anywhere
This is where privacy is doing most of the work. The hub itself listens on loopback only. Setup is two moves:
- The hub and the model bridge are started by a loadout the desktop owner controls, and both bind to loopback only. Switching away from that loadout stops them with it.
- Local profiles reach the hub on loopback. Everything else goes through one public HTTPS endpoint, where each agent holds its own revocable token. The model bridge is never published at all, because the hub is its only caller.
The honest part: the hub answers only while the desktop is awake. A write that cannot reach it falls back to the manual path once, and a cost pull that cannot reach it waits for the next night. Those are designed outcomes, not incidents.
The model bridge
The hub can also call a model on behalf of any agent, through a small bridge to a hosted assistant, with the tokens logged per call. It is not a general-purpose gateway and it is not meant to be used routinely: it exists for a second opinion and for reading something long without pulling the whole document into the calling agent’s context. Because it runs on a personal plan with tight limits, one request at a time, that restriction is a feature. The cheap local models do the bulk of the work; the bridge is for the occasions that need a different head.
The template
A single template carries the paragraph and the MCP configuration that each agent’s instructions include: connect to the hub, recall at the start, remember and report usage at the end.
What this buys
- One rule per vendor. Adding a runtime is giving it a token, not writing another integration.
- Memory that outlives the runtime. The clone is the source of truth and the index is disposable, so changing models or vendors costs nothing.
- Context that arrives unasked. The common failure of shared memory is an agent that forgets to look. This one hands it over at claim time.
- Humans at the merge. Agents propose shared knowledge on a branch; a person accepts it.
- Cost that stops being invisible. One ledger, every vendor, aligned with the effort slugs the rollup already uses.
- Private by default. Loopback by default, one public endpoint, a token per agent, and an honest account of what that one endpoint exposes.
- Failure that is written down. The awake-only limit, the fallbacks, and the double-count trap are all in the design rather than discovered later.
What it does not solve
The hub cannot see inside a runtime that it does not host, so reported cost is self-declared data and should be treated that way. The desktop has to be awake for any of it to work. And the public HTTPS endpoint is why its token is per-agent and revocable.
Nothing here is novel. The win is that tasks, memory and cost now share one door.