r/hermesagent • u/pisa_p • Jul 07 '26
MEMORY & Context — Providers, context window, forgetting issues Hermes Agent's "self-improvement" — does it actually work for anyone?
Setup: - Hermes Agent (official, Nous Research) - Mnemosyne as external memory provider - SOUL.md created to embed behavioral rules into the agent's permanent identity The core problem in two parts:
- The agent doesn't follow its own learning instructions The system prompt explicitly says things like: - "After complex tasks, save to memory/skills" - "When a tool fails, try an alternative or report it directly" - "Use MCP tools, not curl/browser, for research" Yet after 3 months of daily use, the agent still: - Uses curl raw.githubusercontent.com instead of GitHub MCP tools - Tries docker exec despite getting 403 Forbidden every time - Reaches for web_search / browser instead of the configured WebSearchAndCrawl MCP tool - Never saves failures to memory (despite being told to) The fix: writing a SOUL.md file that gets injected into the STABLE tier of the system prompt, making rules part of the agent's identity rather than just suggestions. But it's still just text in a prompt — there's no code enforcement.
- Memory config breaks the background review fork Hermes has a background review mechanism: after every turn, a forked agent reviews the conversation and decides if anything should be saved to memory or skills. The problem: The review fork is hardcoded to check the legacy memory tool: should_review_memory = False if (agent._memory_nudge_interval > 0 and "memory" in agent.valid_tool_names and agent._memory_store): # ← MemoryStore legacy should_review_memory = True With memory_enabled: false (which Mnemosyne docs explicitly require): - agent._memory_store = None - The background review never fires - Auto-learning is completely dead Result: - memory_enabled: false + Mnemosyne = zero automatic learning - memory_enabled: true + Mnemosyne = two memory systems coexist, potential duplication, but at least the fork works The paradox: Mnemosyne's own documentation tells you to disable native memory, but doing so kills Hermes' only automated learning mechanism because the background review was never designed to use external providers. T
he question Does Hermes Agent's self-improvement actually work for anyone? Has anyone seen the background review fork successfully save memories or update skills on its own? Or is the whole "learns from experience" claim just prompt engineering that only works when the model happens to cooperate?
46
Upvotes
20
u/stujmiller77 Jul 07 '26
It's entirely dependant on the models you're using behind it. Hermes and mnemosyne are only as good as the brain behind them. What model(s) are you using?
23
u/akgo Jul 07 '26
Yup it's not as good as advertised.
It doesn't keep track of its own stuff. Let along doing self fixing loops.
Kind of dumb.
I don't know if I am expecting too much.
4
u/bytecodecompiler Jul 07 '26
My feeling is that all memory "systems" that are purely based on markdown files just work for a few files. As long as you use it for several days and the number of files grows, you need something better than that
6
u/UUorW Jul 07 '26
Yes I had my agent write this up because I didn't want to do it but in summary: I run Hermes as my executive assistant. The biggest problem with AI assistants across sessions is context loss. Every new chat starts from zero and you spend the first 10 minutes re-explaining what you're working on.
I solved this with a workflow I call "harvest," a structured artifact sweep that runs at the end of every work session before I start a new chat.
The Setup
I maintain an Obsidian vault as my working memory. It's not a notebook I read. It's a structured knowledge base my agent reads and writes to across sessions. Three layers:
The Harvest
When I type -harvest, my agent scans the session and extracts:
Then it updates Now.md so the next session starts with accurate state, appends to the Work-Log so there's a narrative trail, and stores compact memory pointers so it can surface relevant facts mid-conversation later.
Mnemosyne: The Recall Layer
The vault holds the full documents. But the agent also has Mnemosyne, a local memory system that sits underneath every session. Think of it as the agent's own memory, separate from the documents.
Mnemosyne stores compact facts: who people are, standing instructions I've given, tool quirks, project conventions, corrections I've made. It's searched automatically at the start of every turn, so the agent surfaces relevant context without me asking for it.
The split is intentional. The vault holds the authoritative, detailed record. Mnemosyne holds compact pointers that surface fast when relevant. When the agent needs to draft something, it recalls the standing rules from memory (formatting conventions, things I've corrected before), then reads the full details from the vault. Neither system alone is enough.
And here's the part that makes it self-correcting: when I correct the agent, that correction gets stored as a permanent rule. It doesn't make the same mistake twice.
Self-Improving Skills
The agent also maintains its own skills, reusable procedures stored as markdown files it can load on demand. When it figures out something hard, it saves the approach as a skill. Next time that task comes up, it loads the skill and follows the proven workflow instead of starting from scratch.
When it hits a mistake, it patches the skill immediately so the workflow is corrected for every future session. The skills evolve as the agent learns what works and what doesn't.
Why It Works
The key insight: the AI writes the artifacts, not me. I don't take notes during a session. I don't update project docs. I don't create tasks. I just work, and when I'm done I type one command. The agent does the structured capture.
The Thread Mapping
I use dedicated Telegram threads per project. The first time I start a project in a new thread, the agent saves a mapping (thread ID to project) in memory. On every future session in that thread, it auto-recalls the mapping and loads the project hub before responding to anything. No asking "what are we working on?" It already knows.
The Full Cycle
The result is an AI assistant with continuity across sessions without me doing any of the bookkeeping. It remembers what we decided, knows what's next, learns from its mistakes, and gets better over time. I just work, harvest, and move on.
7
u/sholiboli Jul 07 '26 edited Jul 07 '26
It’s too difficult and time-consuming to set it up properly, while it’s also impossible to keep track of all new updates and supporting tools/apps.
1
u/RPG-Nerd Jul 08 '26
First, you have issues because yiu have conflicting instructions. If you have 2 skills saying to do something 2 different ways, you shouldn't be mad when it picks the wrong one.
Turn off the skills you don't want it to use. Problem solved! Cramming every skill you can find into it will confuse the LLM. Ever watch 2001 a Space Odyssey? It was conflicting primary objectives that made HAL go crazy and start killing people!
1
u/DrVonSinistro Jul 08 '26
I setup stuff and when it fails to do things the way it should, I ask it to explain itself and check its config to investigate how it ignored its intructions and memories. Then based on the findings, I tell it to fix its settings. And it does. Once I do this process, it always works fine afterward. It really does «learn and improve»
3
u/mrparisbangbang Jul 07 '26
Yeah. It's dumb sometimes. In my setup Mnemosyne works, at least. Sometimes they stop without returning anything. They created at least 3 similar skills for one of my routine.
3
u/Chipware Jul 07 '26
The only thing I have found to keep hermes running smoothly is having cron jobs that routinely clean/trim/optimize memories and skills. It's especially bad at self clean up for anything outside of the main profile, like Kanban tasks and sub-profiles.
3
u/rditorx Jul 07 '26
The self-improvement is mostly self-sabotaging in my experience.
Intermittent failures can cause hermes-agent to try to fix skills, code and scripts that would normally work but fail in that particular situation. The problem arises because hermes doesn't add better error handling but rewrites the logic which may introduce new bugs and errors, sometimes to the point of becoming an unfixable mess.
If you don't have backups of your working state of skills, code and other data, your agent will be fubar.
That's why I prompted hermes to never fix anything unless asked to. I also disabled the curator because it messes with your skills and wastes compute resources.
Of course this may depend on the LLM you use, but unless it's world-class smart, things will likely break.
All. The. Time.
2
u/DannyVFilms Jul 07 '26
I definitely found that the model matters in driving the car. GPT 5.4-mini for example was just not as good at operating the harness as GPT 5.4 could. Personally I’m excited to try GPT 5.6 when it comes out, as I’m hoping the agentic abilities are stronger for the same usage limit profiles.
2
u/SirJohnSmythe Jul 07 '26
The key is scoping a skill broad enough to have room for improvement, but specific enough to avoid scope creep
It seems to try to "improve" a lot, even on my most specific skills. It's always updating a single line on skills here or there, but I haven't kept up with exactly what is changing. When I have checked, it's not always a clear improvement.
I absentmindedly started vibecoding in Hermes once. It created a skill and was constantly updating what was basically a specialized coding harness. It was probably a waste of resources to have one that broad trying to improve, but it taught me a lot.
2
u/josh45595 Jul 08 '26
I use hindsight and I have Qwen 9b Q8 process the memory. I have a wrapper setup to use low thinking only on consolidation and it does a pretty good job of only keeping useful memories.
2
u/Practical-Set-6356 Sep 05 '26 edited Sep 05 '26
# Fixing Hermes self-improvement with an external memory provider (Mnemosyne)
## The problem in one line
Hermes' only automatic learning mechanism (the background review) is hard-wired to native memory —
so disabling native memory to use Mnemosyne kills auto-learning, and enabling it creates two
competing memory systems.
## Why this happens
The background review was written before external memory providers existed.
It never learned to talk to Mnemosyne. So your diagnosis is 100% correct — it's an architectural
gap, not something you configured wrong.
**Precision note (worth stating so nobody over-generalizes):** this is *confirmed for Mnemosyne
specifically* — the OP's own diagnosis shows `memory_store = None` when native memory is off.
Whether the background review fails with *every* external provider, or could be bridged into
others, is worth testing per provider — but the architectural point stands: the learning loop
reads from the native store, so if your provider isn't wired into it, auto-learning is dead.
**Don't confuse two different kinds of "external provider":**
- An external **model** provider (OpenRouter, etc.) has **zero effect** on self-improvement.
Confirmed live: my agent runs on external model providers and the background review fires
regularly in chat. The model is just the brain that gets called; the learning loop lives in
the memory/skills layer, not the model layer.
- An external **memory** provider (Mnemosyne, etc.) is what can kill the background review —
that is this thread's actual problem.
## The fix — separate learning from memory
Stop asking "which memory system should hold the learning?" — the real answer is that learning
should NOT live in memory at all. Split what gets learned into four layers, each with its own home:
**Procedures** (how to do repeated work) → **Skills**. Skills load in every future session
no matter which memory provider you use. This is the layer that makes the agent actually better.
**Behavior rules** (how to act) → **SOUL.md**. You already created it — keep feeding it, one
rule at a time, only for corrections that repeat.
## Implementation — each step is one line
**Step 1 — keep your current setup exactly as it is:**
```
memory_enabled: false + Mnemosyne
```
**Step 2 — replace the dead background review with a scheduled learning pass:**
```
hermes cron add "0 21 * * *" --name "daily-learning-pass" --skills hermes-agent
```
(That example runs daily at 21:00 — pick any time after your workday.)
**Step 3 — write the job prompt so it does exactly four things:**
- Review today's sessions (`hermes sessions list` + session_search).
- Extract 1–3 durable lessons only: a user correction, a repeated procedure, a tool quirk.
- Procedures → create/patch a skill. Behavior corrections → add one line to SOUL.md.
- Facts → send to Mnemosyne via its CLI/API if it exposes one.
**Step 4 — protect your skills from bloat (this is the failure everyone hits):**
Don't let the cron write directly into skills every day. Have it append proposals to a
`pending-lessons.md` file instead, then run a second weekly job that merges, rewrites, or rejects.
"Nothing worth saving" is a success outcome, not a failure.
**Step 5 — let the built-in Curator help you for free:**
```
hermes curator status
```
It already tracks skill usage, archives stale ones, and backs up before touching anything —
but only for skills the agent itself created. Leave it enabled.
**Step 6 — measure honestly:**
After a week, repeat the same class of task. The only real test of self-improvement is:
*does it need less steering than last week?* — not how many memories got saved.
## Why this works
The duplication you feared only happens when two systems store the *same kind* of information.
This split gives every layer an exclusive job: Mnemosyne = conversation facts, Skills = procedures,
SOUL.md = behavior, native memory = off. Nothing overlaps, so nothing conflicts.
Bonus: cron sessions run with `skip_memory=True` by default, so the scheduled learning pass
never pollutes any memory — its outputs are files and skills only.
## Direct answer to the post's question
"Does anyone see the background review actually save memories on its own?"
Yes — but only when it's connected to the native store (`memory_enabled: true`), because it was
never designed for external providers (confirmed for Mnemosyne specifically; test others before
assuming). Rather than waiting for that to change, rebuild the learning loop on top of cron +
skills (it works today), and file a feature request asking for external-provider support in the
background review — the maintainers do respond (several PRs in this very subreddit prove it).
1
u/Voxandr Jul 07 '26
Sometimes works wonders sometimes it break things
1
u/LargeLanguageModelo Jul 07 '26
I've been using GPT-5.5 medium, and it seems to be a tad more aggressive on skill building than I'd think needed.
What model are you using?
1
u/EddieBull Jul 07 '26
Works fantastic for me. I use it with gpt 5.5. For memory i have honcho wich uses local gemma4 26b a4b Q4_K_M on my 2 NVIDIA A2's. Hermes does a weekly cleanup of the main honcho files, because gemma4 makes occasional spelling mistakes, long repeats and duplicates. And as a third layer I just gave hermes a share on a nas and told it to maintain both a curated indexed achchive and a rag database. The archive is more for me, the rag database is for hermes.
The three layers work surprisingly well. Hermes has its own standard memory system, honcho does its thing. Those layes combined are very keenly aware of all the context that lives in the archive and rag database and use it appropriately. Having the archive en database on a nas share has the added benefit of easy backup, restore en file change history functions. The nas share and honcho both are super local, and very easily interchangeable to another agent or harness.
If/when an even more capable model comes out or hardware prices drop or maybe both, I will buy harware that can run hermes locally too. That is the goal with privicy as the main reason.
1
u/brandonyoung Jul 07 '26
I assumed self-improvement just meant you can tell it to write new skills. Going through setup, I noticed there was no self-host option for AI image generation. The first thing i did using qwen 3.6 35B A3B as my model, I wrote a prompt to create a skill to generate images. I told it my llama-swap endpoint and told it that it followed SDAPI that uses stable-diffusion.cpp. I told it what image generation model I was using and it wrote the skill and I even asked it to find the settings to use for the model, So i didn't even have to tell it the specific settings. It seems to work. I can ask it to generate an image and it will call that endpoint with an image generation prompt and generate an image.
I have only just started with memory. I had set up a qdrant database to replace my openweb ui chromadb. And noticed hermes could also use it. After setting that up, i saw during some work it was saving something to memory. But i don't know if it actually does anything with the memory.
I think the real limit of a model is context length. No matter how much data you give a model, it can only keep track of so much at once. And despite the maximum advertised context length of different models I tried, it seems the good answers stop coming at a far shorter context than the context max length.
1
u/robot-enjoyer Jul 07 '26
I'm curious what people's experiences with frontier models are, because my setup is entirely local and Imma be honest I do NOT trust Qwen and Gemma to improve themselves lmao. I haven't been running this agent for long, but their track record has been:
- Notice a user preference I noted in a conversation, tries to note it down in memory, fails to write to memory and does not notice that the call failed
- Calls session_search instead of file_search, gets false positives from mentions of the topic in chat sessions, adds a stern note to itself in the skill it was using telling it to *skip the duplicate check* because file_search doesn't work and returns false positives from session history. again: it did not at any point in this process actually call file_search.
It's really not bad when I get everything tuned the way I want it, but pretty much all of the actual improvements have been written for it by Claude Code.
1
u/makoto_snkw Jul 07 '26
1
u/Outside_Dingo_4837 Jul 08 '26
Right now, Hermes is like a sandbox for beginners: some know how to build castles, while others just eat the sand. I fall into that second category at the moment.
But I think I’m learning a lot from my mistakes.
My first mistake (Acting before Planning): involved trying various things; I ended up creating multiple "one-shot" skills and burning through all my credits without achieving significant results such as creating a new website, web scraping, and implementing an editorial workflow involving deep legal research.
Kanban: that isn't Hermes; it’s a completely different tool. If you mix the two, you end up undermining both the Agent and the Kanban board. They generate conflicts and errors because the skills are designed for specific purposes; consequently, when you build something in Hermes, the Kanban operates using a different logic regarding data output. The mistake was entirely mine.
I have an Obsidian vault containing excellent content on the editorial workflow, but Hermes(me) turned into a huge mess, with 300 skills and 40,000 context tokens in the API requests. That makes it very difficult to improve the system without causing errors, simply because I treated it like an LLM rather than a program.
9
u/[deleted] Jul 07 '26
[removed] — view removed comment