Hermes Dreaming
alejandroiglesias/hermes-dreaming
Background memory consolidation plugin that tidies Hermes MEMORY.md and USER.md on a schedule
Hermes Dreaming is a Hermes Agent plugin that periodically reviews recent sessions and makes a few careful edits to the small MEMORY.md and USER.md files. It runs a three-phase cycle and may decide to write nothing.
What Hermes Dreaming does
Hermes keeps a small durable memory: MEMORY.md is about 2,200 characters and USER.md about 1,375, and both are injected into every session prompt. Hermes Dreaming treats that space as scarce. Its consolidation cycle has three phases. Light scans recent sessions for candidate facts and preferences, Deep looks for patterns, contradictions and supersessions, and REM scores candidates and applies at most a few high-confidence add, replace or remove operations.
A run can produce zero durable writes, because the aim is the most future usefulness per character. Changes take effect at the next session start, since Hermes loads memory as a frozen snapshot. The plugin offers /dreaming run, review, status and compact, plus matching hermes dreaming commands. review is a dry run, and install-cron registers a nightly 03:00 job. State, an audit diary, decisions and timestamped backups of both memory files live in ~/.hermes/dreaming/.
Key features
- Three-phase cycle named Light, Deep and REM for candidate extraction, analysis and scoring
- Applies at most a configurable number of memory operations per run (max_changes_per_run)
- /dreaming review runs a dry run that proposes operations without changing memory
- /dreaming compact merges duplicates and removes obsolete entries without adding new ones
- hermes dreaming install-cron registers a nightly 03:00 cron job
- Writes an audit diary and timestamped backups of MEMORY.md and USER.md
When to use it
- Keeping Hermes memory within its small character budget over months of use
- Previewing proposed memory edits before letting them apply
- Auditing why a memory entry was added, replaced or removed
Who it is for: Hermes Agent users whose MEMORY.md and USER.md fill up or drift and who want automated, auditable cleanup.
How it fits with Hermes Agent
Built as a Hermes Agent plugin around Hermes's frozen-snapshot memory model, using slash commands, the hermes CLI and the Hermes cron scheduler.
How to install Hermes Dreaming
These commands are copied from the project's README. Check the repository for the latest steps before you run them.
hermes plugins install alejandroiglesias/hermes-dreaming FAQ
What is Hermes Dreaming?
Hermes Dreaming is a background memory consolidation plugin for Hermes Agent. It reviews recent sessions in three phases and applies a small number of changes to MEMORY.md and USER.md.
How do I install Hermes Dreaming?
Run hermes plugins install alejandroiglesias/hermes-dreaming. Then use /dreaming run, or hermes dreaming install-cron to schedule a nightly run at 03:00.
Is Hermes Dreaming free and open source?
Yes. The repository is released under the MIT license.
Similar memory for Hermes Agent
All memoryLocal-first project memory for AI coding agents, shared through plain files in .memory-bridge
Trainspotting31 MemoryBuddyShared memory server on Cloudflare Workers that Hermes and other MCP clients read and write
stepanov1975 Hermes Local KnowledgeHermes plugin that routes a local question to the skill, script, runbook or document to open first
labyrinth-analytics LoreConvoLocal SQLite memory for AI sessions that carries context across Claude Code, Cursor, Codex and Hermes
aristoapp Membase Plugin for HermesPersistent long-term memory for Hermes Agent using hybrid vector search and a knowledge graph
haitao338241-collab Hermes Hindsight GuideChinese guide to a local Hermes memory setup with Ollama and Hindsight that reduces memory clutter
Related guides: SOUL.md for Hermes Agent: what it is and how to write one · Run multiple Hermes agents with profiles