Skip to content
Sharbel.

How to Cut Hermes Agent Token Usage: An Audit Prompt and 4 Fixes

One prompt shows where your Hermes tokens go. Four fixes cut the waste, and the biggest leak runs while you sleep.

From the videoPaste This Into Hermes Agent, Never Run Out Of Tokens Again

If your Hermes Agent keeps hitting its limits or your API bill keeps climbing, the cause is usually not what you ask it. It is what rides along with every message. When I audited mine, 89% of the instructions it sent with each message was a list of 1,023 skills, and in the last 30 days it had used 72 of them.

This is the audit prompt I paste into Hermes, then the fixes in the order they saved me the most, ending with the one that eats your limit while you sleep.

For scale: last month my Hermes agent went through 733,221,226 tokens. I run a marketing agency on AI agents, so every wasted token is real money.

Why Hermes Agent burns so many tokens

Models have no memory. Every time your agent sends a message, the whole conversation is packed up and sent again from the top, and you pay for all of it, every time.

What message 6 sends: every earlier message, again

On top of the conversation, every message carries a backpack: your agent's memory, its personality file, its list of skills and the instruction manual for every tool you have connected.

Hermes adds one thing a chat app does not. It runs 24/7, and every scheduled job starts a brand new session when it fires, so it packs that whole backpack again each time.

My own split, from Hermes Insights over 30 days:

Where 733M tokens went: 48% my own chats, 38% scheduled jobs, 14% everything else

48% of my tokens came from my own chats. 38%, more than a third of everything, came from jobs that ran on their own.

The audit prompt: find out where your tokens go

This is the prompt I paste into my Hermes chat. It reads my real setup: usage and insights, my biggest scheduled jobs, which model each job runs on, the skills and tools that load on every message, and my plan limits. Then it ranks what costs the most and offers each fix one at a time, only after I say yes.

prompt
Audit my Hermes token usage and rank what's costing me the most. Before you change anything, back up my config.yaml.
1. Run hermes insights and read my session and usage data for the last 30 days. Tell me what share of my tokens came from my own chats vs scheduled jobs vs background tasks (compression, background review, titles, memory).
2. List every cron job: its schedule, which model it runs on, which toolsets it loads, whether it has a turn limit, and whether it could run as a no_agent script job or behind a wake-up check instead.
3. Show which model every auxiliary task and my helper agents (delegation) use.
4. Count the skills and toolsets that load on every message, and flag any I haven't used in 30 days. Check which MCP servers I have and whether tool search is on.
5. Show my compression settings, my tool output limits (tool_output and file_read_max_chars) and agent.max_turns.
6. Run /usage and tell me how much of my plan's limit I've used and when it resets.
Then give me a ranked table: the fix, the estimated tokens it saves per week, and the risk. Offer each fix one at a time and only apply it after I say yes.

It comes back with a full report and a ranked list of fixes, with an estimate of how many tokens each one saves.

My agent's ranked fixes, top three highlighted

Three quick basics before the fixes

  1. Start a new chat when you finish a task. Otherwise you keep resending a conversation you no longer need.
text
/new
  1. Do not switch models halfway through a long chat. Your provider discounts the parts of the chat it has already read, and switching models throws that discount away.
  2. Move side jobs to a cheaper model. Squashing old messages and saving memories run on your main model by default.

I go deeper on all three in my complete Hermes Agent guide.

Fix 1: Cut the skills list

Skills are smart about loading. Your agent only opens a full skill when it needs it. But it still sends every skill's name and description with every message, so it knows what it has.

On mine that list had 1,023 skills. That is 146 KB, 89% of the instructions sent with every message. In 30 days I used 72.

My skills list: 1,023 skills, 146 KB, 89% of every message, 72 used in 30 days

It adds up fast. Every skill you install lands on the pile, and Hermes creates new ones on its own as you use it. The curator does clean up, but only the skills Hermes made itself: one that goes unused for about a month gets archived. The skills built into Hermes and the ones you install yourself are never touched.

Cutting my list from about 1,000 to about 100 saves me 40 to 46 million tokens a week. It is the single biggest fix in my setup.

1,023 skills down to about 100, saving 40-46M tokens a week

I sent my agent this. It shows the full list first so I can rescue anything, and only then switches the rest off:

text
make me a keep list of around 100 skills: everything I've used in the last 30 days, plus anything I tell you to keep. show me the full list of skills you'd remove from the rest before you touch anything. then, after I confirm: turn on curator.prune_builtins so unused built-in skills get archived too, archive the built-in and agent-made skills on the list now, and uninstall the hub skills on the list. never touch my hand-written skills. don't delete anything you can't restore.

That prompt also turns on the setting that matters most here, curator.prune_builtins. It is off by default. With it on, Hermes archives the built-in skills you never use, not only its own. Archived is not deleted: ask your agent to restore any skill and it comes back. If you would rather set it yourself:

bash
hermes config set curator.prune_builtins true

Fix 2: Hide the tools your agent rarely uses

Every tool comes with an instruction manual, a description of everything it can do. On mine, 30 of those manuals went out with every message, about 53 KB.

Hermes already has tool search, which keeps some tools hidden until the agent needs them. You can hide more. I rarely need the browser, voice or image tools when I am texting my agent on Telegram, so I sent it this:

text
on Telegram, add the browser, browser-use, text to speech, vision and delegation tools to tool search so they only load when you actually need them. show me the before and after size of the tools you send with each message.

It did it and measured the result:

Actual per-message tool payload: before 25 schemas, after 16, 32% reduction

  • Before: 25 tool schemas, 44,492 bytes, about 11,123 tokens per message
  • After: 16 schemas, 30,269 bytes, about 7,568 tokens
  • Saved: about 3,555 tokens per message, a 32% reduction

The worst case is that your agent takes one extra step to find a tool. My audit estimates this saves another 7 to 10 million tokens a week.

Hermes cannot restart its own gateway, so it asked me to run the last step myself, from a separate Terminal:

bash
cd ~/.hermes/hermes-agent
source ./activate >/dev/null
hermes gateway restart

Fix 3: Stop paying per token

Everything above changes what your agent carries. What decides your bill most is where its brain comes from. On an API key you pay for every single token. You do not have to.

Option 1: your ChatGPT or Codex subscription. This is what I use. You plug the subscription you already pay for straight into Hermes and get top models for one flat monthly price. All 733 million of my tokens ran on that one plan. I ask Hermes in Telegram:

text
Help me connect my Codex subscription and open the sign in page for me.

It opens the Codex sign-in page, you sign in, and it sets everything up. Then pick the subscription and model in your chat:

text
/model

The /model picker with ChatGPT or Codex Subscription selected

I am on the $200 a month ChatGPT plan, and it has never run out on me.

Option 2: a model on your own computer. A local model runs on your machine instead of someone else's data center, so it costs nothing per message, and every small job you move to it comes straight off your limit. I run Ollama, the free app that runs models locally, on a 16 GB M4 Mac mini that cost $700 and already runs my agents 24/7. In my Mac mini test, the small models that fit were slow on big jobs and fine on small ones.

Download Ollama, or ask Hermes to install it for you. Then send:

text
set up my local Ollama model as a custom endpoint with a 64,000 token window. then move my simple jobs onto it. keep compression, background review and anything that saves memory on gpt-6-luna.

Two traps. Hermes needs a model that holds at least 64,000 tokens of context, and Ollama gives a model about 4,000 by default on a machine like mine, so raise the context length in the Ollama desktop app first or Hermes will not start the session. And keep anything that touches memory on a real model: small local models can say they saved something when they never did.

Option 3: free tiers. FreeLLMAPI, which I also covered in my free Claude Code video, stacks the free tiers that providers like Google, Groq and Mistral already give you behind one link you can plug into Hermes. The trade-off: these are not the top models, they can be slower, and the best ones hit their daily caps in a day. Good for grunt work, not for your main agent.

The setup I would copy is your ChatGPT subscription for work that needs to think, and your own computer or free tiers for simple stuff.

Two lanes: the ChatGPT subscription for jobs that think, your own computer or free tiers for simple ones

The 3am trap: scheduled jobs

This was the biggest leak in my setup. The Hermes cron docs say every scheduled job runs in its own fresh session with no memory of the last run. So each time a job fires, it packs the whole backpack again, loads every tool you gave it and, unless you said otherwise, runs on your main model.

Scheduled jobs were 38% of my consumption, and two jobs were 85.64% of that. My daily Gmail scan alone used 125,556,331 tokens in one month.

Two jobs were 85.64% of my scheduled-job tokens; the Gmail scan alone was 125,556,331

See what yours runs:

text
Run hermes cron list and show me all of my active crons

There are four fixes, all straight from the Hermes docs.

The four fixes for scheduled jobs

1. Jobs that do not need AI at all. If a job only runs a script, make it a no_agent job. It runs the script and spends zero tokens. I already had three running like this at exactly zero. The audit caught one I missed: my morning check-in ran a full agent every day to send the same sentence.

2. A wake-up check. This is the big one. Before a job wakes your agent, a tiny script checks whether there is anything to do. For my Gmail scan, it checks for new emails worth looking at; if there are none, the agent never wakes up and I pay nothing. My audit estimates that one check saves 15 to 23 million tokens a week.

The wake-up check: a tiny script first, the agent only on days with new mail

Do not make the check so strict it misses something important. My scan looks for sponsor and inbound emails, so if the check ever breaks it wakes the agent anyway, and I still let it do a full scan every few days.

3. Only the tools each job needs. My inbox job does not need the browser or code tools, so it should not carry their manuals every run.

4. Pin each job to the right model. Simple jobs run on your local model, a free tier or a cheaper model like gpt-6-luna. Only jobs that need to think run on the expensive one.

I do not set any of this up by hand. I send this and go through every job with my agent, one at a time:

text
go through my cron jobs one by one. for each one, tell me if it can be a no_agent script job, if it should have a wake-up check before it wakes you up, which toolsets it actually needs, and which model it should be pinned to: my local model or gpt-6-luna. any wake-up check has to wake you anyway if it fails. ask me before you change each one.

One more setting. By default Hermes has no limit on how many turns your agent takes on one task, so a confused job can keep going forever. I cap mine at 60 with agent.max_turns, so a job stuck at 3am stops instead of spinning until morning:

bash
hermes config set agent.max_turns 60

What does not work

Where my tokens actually went over 30 days, with compression and chat titles zoomed in

  • Writing shorter messages. What you type is a tiny part of what gets sent. The agent resends the whole conversation plus its instructions and tools, so a few words less is a rounding error.
  • Tweaking compression. On mine compression used 0.13% of my tokens, about 217,000 a week. Naming my chats used less than 0.01%. Not worth touching.
  • Turning off memory. It saves tokens, about 5% of mine, because the agent stops reviewing chats to save notes. But memory is half of why Hermes is good.
  • Putting everything on the cheapest model. A weaker model fails more, and every failure redoes the whole job, so you pay more. Cheap models are for simple jobs.

The three meters to watch

The three meters: /context all, hermes insights and /usage

What is taking up space in this chat right now:

text
/context all

Where your tokens went over the last month (ask Hermes to run it):

text
hermes insights

How much of your ChatGPT limit you have used and when it resets:

text
/usage

Run the audit again every week

Cut the skills list to the ones you use. Hide the tools you rarely need. Stop paying per token. Then look at what your scheduled jobs do at 3am.

Run the audit prompt once a week, or whenever you hit limits faster than usual. Things drift: you install a skill, connect a tool, schedule a job, and a month later you are back where you started. That is normal.

Every prompt above, plus the exact settings I changed, is free at sharbel.com, with no email needed.

Resources

The prompts and settings from this piece, in the order to use them:

  • The audit prompt (above, under "The audit prompt")
  • The keep-list prompt and curator.prune_builtins (Fix 1)
  • The tool search prompt and the gateway restart (Fix 2)
  • The Codex prompt, /model, and the Ollama endpoint prompt (Fix 3)
  • hermes cron list, the one-by-one cron prompt and agent.max_turns (the 3am trap)
  • /context all, hermes insights and /usage (the meters)

Further reading

Questions

Why does Hermes Agent use so many tokens?
Every message resends the whole conversation plus a backpack of memory, personality, the skills list and every connected tool's manual. Scheduled jobs start a fresh session each time they fire, so they pack that backpack again on every run. On my setup the skills list alone was 89% of the instructions sent with each message.
How do I see where my Hermes tokens are going?
Run hermes insights for the last 30 days, /context all for the current chat and /usage for your plan limit. The audit prompt in this article runs all of them and ranks the fixes by tokens saved per week.
Does deleting unused skills break Hermes?
The keep-list prompt archives skills rather than deleting them, and never touches skills you wrote yourself. Ask your agent to restore any archived skill and it comes back.
Can I run Hermes Agent on my ChatGPT subscription?
Yes. Ask Hermes to connect your Codex subscription, sign in on the page it opens, then pick the ChatGPT or Codex provider with /model. You pay one flat monthly price instead of per token.
Why won't Hermes start a session with my Ollama model?
Hermes needs a model that holds at least 64,000 tokens of context, and Ollama defaults to about 4,000 on a small machine. Raise the context length in the Ollama desktop app first.
Does compression or turning off memory save tokens?
Barely. Compression was 0.13% of my tokens and chat titles under 0.01%. Turning off memory saved about 5%, but memory is half of why Hermes is useful, so I left it on.
Sharbel Ayyoub

Written by

Sharbel Ayyoub

I build AI tools and agents for my own business, then show the whole process on YouTube: what shipped, what it cost, and what broke. This write-up is the build behind one of those videos.

You made it to the end

That is the whole build. Want the next one?

Free. One per video, about twice a week.

Read next