Recommendation
Use Hermes Agent as the operational foundation, then add MUSE’s per-skill experience and test-gated refinement. Hermes is stronger at memory safety, retrieval, governance, and lifecycle operations. MUSE has the stronger learning abstraction and empirical evaluation. The best design combines them rather than choosing one.
This analysis compares the MUSE-Autoskill paper with the current main branch of Nous Research’s Hermes Agent as reviewed on 2026-08-21. It also examines the separate Hermes Agent Self-Evolution repository. The goal is a practical architecture for short-term memory, long-term memory, and skills that improve without turning one lucky execution into a permanent rule.
Paper: MUSE-Autoskill source note · Local PDF · arXiv
The decision
Adopt four memory layers:
- Working memory: current task state and checkpoints.
- Curated declarative memory: bounded user and project facts.
- Episodic memory: searchable session history.
- Procedural memory: stable skills plus private per-skill experience.
The essential rule is:
Key
Memory preserves evidence. Skills contain validated procedure.
A lesson from one run should first become a candidate observation. It should modify a durable skill only after tests, repeated evidence, or user approval.
flowchart TB U[User request] --> W[Working memory<br/>goal, plan, progress, failures] W --> R[Execute task] R --> O[Outcome and evidence] O --> D[Curated declarative memory<br/>USER.md and MEMORY.md] O --> E[Episodic archive<br/>searchable sessions] O --> X[Per-skill experience<br/>private sidecar] D -. small frozen snapshot .-> W E -. retrieve on demand .-> W X --> G{Promotion gate} G -->|tests, repeated evidence,<br/>or user approval| S[Stable SKILL.md] G -->|insufficient evidence| C[Candidate backlog] S -. progressive disclosure .-> R
What Hermes gets right
Facts, people, procedures, and history are separate
Hermes distinguishes four jobs that are often collapsed into one memory file:
USER.mdstores who the user is, including role, preferences, communication style, and corrections.MEMORY.mdstores durable environment facts, project conventions, workflow habits, and tool quirks.- Skills store procedural knowledge: how to perform a recurring class of task.
state.dbstores the full conversation archive for later retrieval.
This is a better operational model than treating all old text as long-term memory. It also sharpens Agent Memory: conversation history, curated facts, episodic recall, and learned procedures are different storage problems.
Long-term memory is bounded and curated
The built-in Hermes memory store defaults to approximately 2,200 characters for MEMORY.md and 1,375 characters for USER.md. When full, the agent must replace, merge, or remove existing entries rather than append indefinitely.
Its memory tool supports an atomic batch that can remove stale facts, replace outdated ones, and add a new fact in one operation. Writes use file locking, atomic replacement, duplicate detection, drift protection, and bounded retry behavior.
This is materially stronger than MUSE’s append-only Markdown memory. The small budget forces high-signal summaries and limits context rent.
Memory is a frozen snapshot within a session
Hermes loads USER.md and MEMORY.md into the system prompt at session start. Mid-session writes persist to disk immediately, but the prompt snapshot does not change until the next session.
That is an explicit cost and consistency trade-off. A stable system prompt preserves provider prompt caching and prevents old turns from seeing a moving instruction prefix. The tool response still tells the live agent what was written.
Episodic memory stays outside the prompt
Hermes stores sessions in SQLite and uses FTS5 for retrieval. Its session_search tool supports:
- Keyword discovery across past sessions.
- A window around the matching message.
- Beginning and ending “bookends” that reconstruct goal and resolution.
- Scrolling within a selected session.
- Browsing recent sessions when the query is vague.
This is a clean separation between always-present summaries and deep recall. The limitation is that built-in retrieval is lexical. Semantic memory requires an external provider such as Honcho, Mem0, or Hindsight.
Reflection runs after the user-facing task
Hermes performs memory and skill review in an isolated background fork after delivering the answer. The review agent sees the conversation snapshot but is restricted to memory and skill-management actions. It does not alter the main transcript or compete with the user’s task for model attention.
The implementation also preserves prompt-cache compatibility, isolates external memory providers, prevents the review transcript from entering the user’s session, and supports optional write approval. This is a strong production pattern for Self-Extending Agents: reflection is a separate track, not extra instructions injected into the foreground task.
Skill ownership and garbage collection are explicit
Hermes records skill provenance and usage in a sidecar file rather than modifying skill frontmatter. The curator can mark skills stale, archive old skills reversibly, consolidate overlapping agent-created skills, and respect pinned or user-owned skills.
This aligns with Golden Principles and Garbage Collection: the capability library needs maintenance, not just accumulation.
Where Hermes is still weak
There is no dedicated per-skill experience layer
The online Hermes path is roughly:
conversation -> background review -> patch or create SKILL.mdMUSE provides the missing intermediate layer:
conversation -> per-skill experience -> evaluation -> refine SKILL.mdHermes can place session-specific material in references/, but it does not maintain a first-class record of observations, confidence, outcome, and evidence for each skill.
Activity telemetry is not outcome telemetry
Hermes tracks use, view, patch, and last-activity timestamps. It does not reliably track:
- Verified success after skill use.
- Failure caused by a skill.
- Outcome by skill version.
- Regression after a patch.
- Confidence or evidence behind a learned lesson.
A frequently loaded skill can still be wrong. Usage is useful for retrieval and staleness, but it is not proof of quality.
The review prompt favors over-learning
Hermes’ background reviewer is encouraged to treat most sessions as opportunities for a skill update. That is useful for capture, but risky for promotion. One session can encode a lucky workaround, a transient environment problem, or a narrow user preference into a broad procedure.
The better default is:
- Most complex sessions may produce candidate experience.
- Only a minority should directly modify durable skill instructions.
Curation is based mostly on age and overlap
The curator manages catalog size through inactivity thresholds and optional consolidation into class-level umbrella skills. This controls entropy but does not determine whether a skill works.
Time-based garbage collection should be paired with quality-based lifecycle states such as experimental, verified, regressed, deprecated, and archived.
What MUSE adds
MUSE treats skills as long-lived assets with five lifecycle stages:
creation -> memory -> management -> evaluation -> refinementIts most valuable contribution is skill-level memory. Each skill receives a private .memory.md containing accumulated lessons, input quirks, failure modes, and performance caveats. That experience is loaded only with the selected skill.
The paper also adds:
- Test-gated registration for code-backed skills.
- Runtime checks for procedural skills without tests.
- Adaptive context compression for long tasks.
- A skill catalog using name and description for progressive disclosure.
- Cross-agent transfer experiments.
Evidence from the paper
On SkillLearnBench, the combined memory system raises first-round accuracy from 48% to 64% and second-round accuracy from 60% to 74%. On the successfully covered SkillsBench subset, MUSE-created skills reach 85.24% accuracy, compared with 81.17% for human-authored skills on the same subset.
The results are promising but bounded:
- MUSE creates usable skills for only 47 of 75 SkillsBench tasks.
- The memory ablation tests the combined system, not each memory layer independently.
- Each generated skill starts from one successful trajectory.
- The HVAC example regresses from 80% baseline success to 20% after the learned skill overfits its source trajectory.
This regression is the strongest argument against immediate skill patching.
Recommended combined architecture
Keep the shareable skill package clean and put private experience in a sidecar store:
~/.agent/
├── memories/
│ ├── USER.md
│ └── MEMORY.md
├── sessions/
│ └── state.db
├── skills/
│ └── research-synthesis/
│ ├── SKILL.md
│ ├── tests/
│ ├── references/
│ └── scripts/
└── skill-state/
└── research-synthesis/
├── experience.jsonl
├── candidates.md
├── metrics.json
└── versions/Keeping skill-state/ outside the package avoids leaking personal history, customer data, environment paths, and local failures when the skill is shared. This retains MUSE’s skill-level memory while preserving Hermes’ ownership and portability discipline.
The learning lifecycle
flowchart LR A[Execute] --> B[Observe] B --> C[Capture candidate] C --> D{Validate} D -->|objective tests pass| E[Promote] D -->|repeated success| E D -->|user approves| E D -->|weak or conflicting evidence| F[Keep as candidate] E --> G[Version skill] G --> H[Monitor outcomes] H -->|quality holds| I[Stable] H -->|regression detected| J[Rollback] J --> F
1. Capture evidence, not conclusions
After meaningful work, write an experience event:
{
"skill": "research-synthesis",
"skill_version": "1.3.0",
"session": "2026-08-21-abc123",
"observation": "Scanned PDFs returned empty text",
"candidate_lesson": "Use OCR when extracted text is below 100 characters",
"outcome": "success",
"verification": "All cited quotations matched source pages"
}2. Route the learning to the correct store
| Learning | Destination |
|---|---|
| User identity or communication preference | USER.md |
| Stable project or environment fact | MEMORY.md |
| Past task detail that might matter later | Session archive |
| Skill-specific observation with limited evidence | Private experience sidecar |
| Stable procedure supported by evidence | SKILL.md |
| Deterministic repeated action | scripts/ |
| Failure that must never recur | tests/ or eval suite |
3. Require a promotion gate
A candidate may modify SKILL.md only when at least one condition holds:
- Objective tests pass on representative cases.
- The lesson succeeds in multiple independent sessions.
- The user explicitly approves the change.
- An authoritative source confirms it.
For high-impact skills, require more than one condition. Unresolved failures may remain diagnostic evidence, but must not be presented as reliable procedure.
4. Track outcomes by version
{
"version": "1.4.0",
"invocations": 12,
"verified_successes": 9,
"failures": 2,
"unknown": 1,
"regressions": 0
}The important metric is not how often the skill was loaded. It is whether the skill improved verified outcomes compared with the previous version.
5. Make rollback normal
Every automatic modification should produce an auditable version. If a new version reduces verified success or increases variance, revert it automatically and retain the failed candidate as evidence.
This is the safer form of the Ratchet. A failure earns a candidate rule. Validation earns promotion. Regression earns rollback. Garbage collection removes rules that no longer carry their weight.
Role of Hermes Agent Self-Evolution
The separate Hermes Agent Self-Evolution project uses DSPy and GEPA to generate candidate skill variants from traces, evaluate them, apply constraint gates, and submit the best variant for human-reviewed pull requests.
Its current implementation covers skill files. Tool descriptions, system prompts, code evolution, and a continuous improvement loop are listed as planned phases. It is therefore best understood as an offline optimizer, not the online memory system.
The useful integration is:
flowchart LR O[Online task outcomes] --> X[Per-skill experience] X --> B[Evaluation dataset] B --> V[Generate candidate variants] V --> T[Tests and regression suite] T --> C{Better than current?} C -->|yes| P[Review and promote] C -->|no| K[Keep current version] P --> M[Monitor production outcomes] M --> X
Implementation priorities
- Add bounded
USER.mdand projectMEMORY.mdwith replace, merge, and removal operations. - Keep a searchable session archive for episodic recall.
- Add private per-skill experience sidecars outside shareable skill folders.
- Change autonomous review from direct patching to candidate generation by default.
- Track verified outcomes by skill version, not just use counts.
- Require tests, repeated evidence, or approval before promotion.
- Version every promoted change and support automatic rollback.
- Run scheduled consolidation and reversible archival.
Comparison
| Capability | Hermes Agent | MUSE-Autoskill | Combined design |
|---|---|---|---|
| User profile | Strong, dedicated USER.md | Not a distinct focus | Keep Hermes model |
| Global facts | Bounded and curated | Persistent append-only notes | Bounded summaries with provenance |
| Episodic recall | Searchable SQLite sessions | Full history retained for replay | Hybrid lexical and semantic recall |
| Working memory | Conversation plus compression | Explicit short-term memory and adaptive compression | Structured checkpoint plus replayable transcript |
| Skill experience | Mostly folded into skills or references | Dedicated per-skill .memory.md | Private sidecar outside shared package |
| Skill evaluation | Guidance and operational checks, no general outcome gate | Unit tests and runtime feedback | Tests, repeated evidence, and user approval |
| Usage telemetry | Views, uses, patches, lifecycle state | Usage observations | Versioned verified outcomes |
| Governance | Strong provenance, approval, pinning, reversible archive | Limited | Keep Hermes controls |
| Empirical evidence | No comparable memory ablation found in this review | Stronger benchmark evidence | Measure with local evals |
Sources
Primary paper
- MUSE-Autoskill: Self-Evolving Agents via Skill Creation, Memory, Management, and Evaluation
- Local MUSE-Autoskill PDF
- arXiv abstract and versions
Hermes Agent primary sources
- Hermes Agent repository
- Memory tool: bounded stores, frozen snapshots, atomic mutation
- Memory manager: provider lifecycle, prefetch, synchronization
- Background review: isolated post-turn memory and skill reflection
- Skill manager: create, patch, edit, archive, supporting files
- Skill usage telemetry and provenance
- Curator: staleness, reversible archival, consolidation
- Session search: FTS5 episodic retrieval
/learnskill-authoring standards- Hermes Agent Self-Evolution
Related vault notes
- Hermes Agent
- Agent Memory
- Self-Extending Agents
- Eval-Driven Agent Development
- Capability vs Regression Evals
- The Ratchet - Every Mistake Becomes a Rule
- Golden Principles and Garbage Collection
- Context Window Management Strategies
Open questions
- What should count as an independent confirmation when two sessions reuse the same source data?
- Should user corrections bypass repeated-evidence requirements, or remain pending until explicitly approved?
- Which skills deserve automatic tests, and which require sampled human review?
- How should confidence decay when dependencies, APIs, or project conventions change?
- What is the smallest useful local benchmark for measuring whether the memory system improves work rather than merely storing more text?
- Knowledge Factory — an industry counterpoint: a separate curator agent maintains the knowledge, and working agents only flag; no governance or test-gating is described