Hermes Agent Gets a "Slimming" Update
Hermes Agent Gets a "Slim-Down" Update: Database Compression Up to 78%, a 635MB state.db Shrank to 276MB
Yesterday, Nous Research founder Teknium posted on X: Hermes Agent's latest optimization can compress chat session databases by up to 78%, with an average of around 60%. All new installs come with this optimization enabled by default.
📜 Table of Contents
📖 Keep reading
Hermes Agent Gets a "Slim-Down" Update: Database Compression Up to 78% — 600MB Cut to 276MB
Yesterday, Nous Research founder Teknium posted on X: Hermes Agent's latest optimization can compress chat session databases by up to 78%, with an average of around 60%. All new installs have the optimization enabled by default, databases under 1GB get auto-optimized after updating, and larger databases just need a single command to finish the job.
I took one look and thought — this was A local instance in use for over six months had a state.db at 635MB — a reasonable test case.
One Command, Runs Silently in the Background
First, let's break down what this optimization actually is. All of Hermes's session data — chat history, search indexes, session metadata — lives in a SQLite database (state.db). Over time, that database keeps growing. This optimization reorganizes the storage format and compresses it in one go, without affecting the session_search full-text search feature.
If your database is under 1GB, it triggers automatically after updating to the latest version, finishing in about 14 seconds — you won't even notice it. Larger databases require a manual run:
hermes sessions optimize-storage
The command runs in the background and won't block your normal workflow.
Real-World Test: 635MB → 276MB, Saving 56.5%
It was run twice. The first round, after index rebuild hit 100%, it timed out during the VACUUM (space reclamation) phase, and the database actually grew from 635MB to 765MB (old and new indexes coexisting). Ran it again, and it went straight into the reclamation phase, finishing in seconds.
Final results:
| Metric | Value |
|---|---|
| Before optimization | 635.7 MB |
| After optimization | 276.4 MB |
| Space saved | 359.3 MB |
| Compression ratio | ~56.5% |
That's pretty much in line with Teknium's stated average of 60%. If your database is larger, the compression ratio could be even higher — up to 78%.
Why This Matters
Hermes Agent is an open-source AI agent framework developed by Nous Research (in the same category as Claude Code and OpenAI Codex), supporting 20+ model providers, multi-platform gateways, scheduled tasks, persistent memory, and a full suite of capabilities. But the more capable it is, the faster session data accumulates.
Previously, the only way to clean up the database was prune (deleting old sessions) — but once deleted, it's gone, and session search becomes useless. This optimization is pure compression — no data is deleted, all history is preserved, and the database just becomes smaller and more compact.
For users running on VPS or NAS setups, disk space is precious, and the difference between 600MB and 270MB is significant. Even locally, a smaller SQLite database means better read/write performance.
One-Sentence Summary
Update to the latest Hermes Agent → small databases auto-optimize → large databases run hermes sessions optimize-storage once → save 60% disk space. It's a one-time operation — once it's done, you never have to think about it again.
In his post, Teknium specifically thanked @yoniebans for the technical contribution. The top comment in the thread: "Alright, I'm clocking out early again." 🔥
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.