Building a Multi-Identity AI System with Hermes

Building a Multi-Identity AI System with Hermes

One Bot Wasn't Enough
Like many people I've been increasing my use of Claude and ChatGPT, quickly moving from basic question and response to deep research, coaching across multiple domains to helping setup and troubleshoot various technical experiments and sandboxes. But there were a few things that were getting in the way. Token costs and limits, I'd be deep in flow when I'd him a token limit and either have to stop work and wait or pay significantly more. In addition, my usage was rising at the same time the token costs for frontier models were rising steeply and it looked like this was going to continue to get worse.

I'd also found that I was getting bleed through on different tasks. While I was researching a piece on AI Architecture for enterprise systems, I'd get constant references to a voice AI prototype I had built. It was annoying and distracting but there was no easy way to keep these domains separate. Most people interact with AI through a single chat thread which accumulates everything including your morning coding question, your afternoon existential rumination, your evening grocery list. The model tries to keep up, but its sense of you becomes an average of all of these activities, some technical, some emotional, a lot confused.

I had experimented with some open weight models and found them to be generally comparable for my needs. Sure, I wasn't doing refactoring a million-line codebase but, for my needs, these models were good enough. Sometimes much better and always much much cheaper on a per-token cost. Now I know a monthly sub of the frontier is cost effective within limits, but I predict that will start to change as frontier AI companies seek to reduce their losses. As my relationship with these systems matured, I wanted greater certainty and flexibility to choose between models, to have greater control of the cost and to never 'run out of tokens'.

So, I decided to setup a system that would meet my needs, and created a list of things I wanted it to achieve:

  1. Multi Agent, I have different types of work that I want to keep reasonably separate and that require different behaviour and often different LLM's. Separate agents each with its own tone, memory and config would give me this and help me to keep my work separate.
  2. Model flexibility, choose from a long list of open and closed weight models without losing memory or context.
  3. Long term memory, I wanted my agents to better understand me, how I work and what I want over time.
  4. Cost effective. Per token cost should be as low as possible
  5. Relatively simple to setup and maintain
  6. Enable multi-agent workflows
  7. Always on

I was looking for a solution that provided separation of concerns. A Writing bot that knew my prose style intimately, an Engineering bot that understood my current projects and coding style, an Assistant bot for various admin tasks, a Trainer bot for logging and analysing my workouts, a Wisdom bot for philosophical meandering and advice. Each bot with its own memory, its own voice and its own purpose.

But I didn't want six different services running on six different machines, or six different subscriptions, or six different interfaces. I wanted one gateway, one model provider, one overarching memory system.

Building the Fleet
Hermes Agent supports multiple profiles, and each profile gets its own configuration, its own environment variables, its own Telegram bot token, its own memory namespace. The gateway is a single process on a modest Linux box and routes incoming messages to the right profile based on which Telegram bot was contacted.

I installed Hermes on a modest VPS that costs me about AU$12/month I've set it up to run seven separate profiles:

  • Assistant: Looks at calendar and email, creates to-do items, creates a morning briefing
  • Writer: Supports my writing through ideas capture, proofreading and editing
  • Engineer: Technical problems, code review, architecture and debugging
  • Trainer: Workout tracking and programming, nutrition.
  • Wisdom: Life coach, philosopher, therapist
  • Research: Deep multi-step research summarised in long-form documents across a range of topics
  • Chief of Staff: The orchestrator and entry point for multi-agent workflows

Each profile as its own memory, its own Obsidian folder, its own SOUL file which describes personality, tone and manner of interacting. They also have their own environment file which describes which LLM to use when. I generally set a low demand model and a high demand model for each, but these are different for say Engineer and Writer. This also allows me to tune models based on how much they are costing and to bring in new models as they are released.

A Huge Selection of Models
All of these models are accessed through an Openrouter API. OpenRouter aggregates model providers into a single endpoint where I can send the same API call to Claude, GPT-4, Llama, Mistral, or Kimi just by changing the model string in the profile config. No account proliferation or juggling API keys across four dashboards.

Through OpenRouter, I see what each model actually costs per million tokens, and the competition between providers drives those numbers down. Kimi K2.6 gives me output quality comparable to Claude Sonnet at roughly half the price. For high-volume tasks such as research synthesis and long-form drafting the cost was significantly lower.

Persistent Memory
For persistent memory I installed Honcho a hybrid memory system designed for long-running AI relationships. It stores actual conversation history from every session I've ever had with each bot and derives persistent facts called conclusions, things it learns about me across time. The most important thing Honcho does is maintain an evolving profile of who I am, what I value, how I communicate which gets richer the more I work with my Agents.

Each profile has its own isolated memory namespace in Honcho. So, the Writer knows my stylistic quirks and preferred vocabulary, that I prefer UK English, that I hate em dashes. The Trainer remembers my lower back injury and to avoid programs that having me lifting heavy or progressing too quickly. The Engineer knows I run on Linux, prefer Python, and get impatient with verbose explanations before the point. None of these domains cross-contaminate each other which significantly improves interactions.

For persistent memory I use Honcho, a hybrid memory system built for long-running relationships with AI agents. It does two things. First, it stores the full conversation history from every session I've ever had with each bot. Second, it derives persistent facts called conclusions, things it learns about me over time. The most important thing Honcho maintains is a representation, an evolving profile of who I am, what I value, how I communicate which gets richer the longer we talk.

Each profile has its own isolated memory namespace so the Writer knows my stylistic quirks, that I prefer UK English, that I hate em dashes, that I overuse certain constructions. The Trainer remembers my lower back injury and avoids programs that have me lifting heavy too early. The Engineer knows I run Linux, prefer Python, and get impatient when the explanation comes before the point.

What separates Honcho from simple session logging is that I can query it directly. honcho_search finds exactly what I said about a topic months ago. honcho_reasoning returns a synthesised answer about my preferences or patterns. When I record something explicitly, for example, "Nick prefers minimal-dependency solutions", Honcho writes that as a conclusion that persists across sessions and shapes how the bot behaves.

The big benefit is continuity so that when I return to the Engineer after a week away, it doesn't ask what project I'm working on. It asks whether I got the async handler working because it remembers and picks up where we left off.

Storage I Own
Obsidian manages all my persistent documents such as research papers, architecture diagrams or draft posts or papers and each profile writes to a specific Obsidian folder in the vault. Syncthing keeps the vault synchronised across my server, laptop, desktop and mobile devices so everything is always available everywhere. The assets that I or the Agents create are stored persistently and privately in markdown format.

The Soul.md file for each Agent is two-way synced to Obsidian so, if I don't like the tone or style of one of my agents I can make a change on my phone which is picked up by the Agent on a new session. I can set tone of voice, working style, and background information for each bot in here which makes them distinct and tailored to my needs.

How it Works in Practice
I interact with each of my agents via a Telegram Bot. In the morning I might message Trainer about tweaking my squat routine, at lunch I ask the Engineer to review a prototype I've made some changes to and in the evening I kick an idea to the Writer which it qualifies and stores for later.

Last week the Kimi endpoint was running slow, so I switched the Research bot to GLM 5.3 for the afternoon. It took thirty seconds to open the config, change the model string, save, done. No new API key, no bill from a different provider arriving next month, no migration of conversation history or context. I've setup aliases so if I need a more powerful expensive model I just type '/model high' and it switches models and then '/model base' switches it back, all in the same session.

The Hermes gateway runs as a systemd service so if it crashes it automatically restarts. If a model endpoint is down, OpenRouter fails over or I switch models manually. The whole thing lives on a single VPS machine with a public IP that costs me $12/month. No cloud deployment complexity, serverless cold starts. Just a Linux box running Ubuntu LTS, a Python process, and a constellation of API calls.

If I need to create a new Agent I just ask Engineer and it has custom tool it created for this purpose which know my setup and creates it in a single step. I then just need to create and connect a Telegram Bot. Again all done in natural language in Telegram without requiring any SSH to the server itself.

Real Cost Savings
ChatGPT Plus and Claude Pro both cost AU$33.99 and I regularly exceeded daily limits. My Openrouter spend has yet to exceed AU$20/month and is often significantly less and I don't have to worry about hitting subscription caps. On the rare occasions I need to the power of a frontier model I can still access them through Openrouter at a comparable price.

For large coding tasks I work in Claude Code on the desktop but its connected to Hermes so the long term memory of what I am working on persists. Claude Code connects to Openrouter and sill gives me the cost and flexibility.

Looking Ahead
I've yet to encounter any major downsides of this approach and the benefits are real. I have recently started experimenting with connecting Discord to Hermes to enable two-way voice interactions. It works well but the thinking time of larger models makes the lag between question and response a bit slow and clunky. I'm curious about how recent decision models like Jev might fit in, an experiment for another day.

Overall its been a fantastic experiment, it gives me everything I need for multiple domains at a lower cost and flexibility to switch models easily. The long term memory is amazing - the more I use the system the better it understands me, how I work and what I want. I suspect that we'll see more movement in this direction in the future with better easier to setup tooling rather than being locked in to a single provider and a small set of models.