Mneme-Hermes is a Hermes memory audit toolkit: Mneme-style quality checks, snapshots, provenance notes, and agent-ready workflows for keeping long-term memory useful instead of noisy.
The repo includes a tiny, stdlib-only CLI that Hermes agents can run immediately against local Hermes memory files:
~/.hermes/memories/MEMORY.md~/.hermes/memories/USER.md~/.hermes/config.yaml(detected by default, never copied unless requested)
From a checkout:
python3 scripts/mneme-hermes auditTurn findings into review-first cleanup suggestions:
python3 scripts/mneme-hermes suggestWrite a reviewable Markdown report:
python3 scripts/mneme-hermes audit --output output/memory-audit.mdCreate a timestamped backup before editing memory:
python3 scripts/mneme-hermes snapshot --output-dir output/snapshotsIf installed as a package, use the console script instead:
mneme-hermes audit
mneme-hermes suggest
mneme-hermes snapshot --output-dir output/snapshotsauditinspects Hermes memory files and reports issues.suggestconverts audit findings into review-first cleanup actions. It does not edit memory automatically.snapshotcopiesMEMORY.mdandUSER.mdinto a timestamped directory with amanifest.json.
audit reports:
- whether
MEMORY.mdandUSER.mdexist - Hermes entry counts using the real
\n§\nseparator - character usage against configured Hermes memory limits
- duplicate entries across memory files
- stale/conflict/TODO-style markers that need review
- directive-style phrasing that should be made declarative
- possible secret-like or prompt-injection-like lines, redacted in the report
- whether
~/.hermes/config.yamlexists
Use --strict when you want CI-style exit codes: 0 clean, 1 warnings, 2 errors.
suggest emits review-first recommendations for:
- reducing high memory capacity pressure
- merging duplicate entries
- rewriting directive-style memories as declarative facts
- reviewing stale/noisy/raw-dump entries
- removing sensitive memory and rotating credentials externally
It supports Markdown and JSON:
python3 scripts/mneme-hermes suggest
python3 scripts/mneme-hermes suggest --format json --output output/memory-suggestions.jsonsnapshot copies MEMORY.md and USER.md into a timestamped directory with a manifest.json. It does not copy config by default because configs may contain secrets. Use --include-config only when safe.
No runtime dependencies are required beyond Python 3.10+.
python3 -m unittest discover -s testsOptional editable install:
python3 -m pip install -e .
mneme-hermes auditHermes already has:
- built-in curated memory
- optional external memory providers
- searchable session history
- a wiki/knowledge-base workflow
Mneme brings a complementary philosophy:
- verify recall health
- recover durable facts from messy notes
- compile memory into more usable structures
- audit duplicates, contradictions, and stale memory
- keep provenance visible
Mneme-Hermes aims to connect those ideas cleanly to Hermes.
- Git-aware wiki maintenance for Hermes-style research wikis
- Mneme-inspired memory quality checks for Hermes memory and knowledge stores
- Small, review-first CLI workflows agents can run safely
mneme_hermes/cli.py— stdlib-only CLI implementationscripts/mneme-hermes— run the CLI from a checkout without installingtests/test_cli.py— unittest coverage for audit/suggest/snapshot behaviordocs/agent-quickstart.md— operational guide for Hermes agentsdocs/hermes-memory-checks.md— deterministic checks implemented by the CLIdocs/vision.md— what Mneme-Hermes is trying to becomedocs/roadmap.md— phased development plandocs/hermes-fit.md— mapping Mneme ideas onto Hermes architecturedocs/repo-wiki-updater.md— spec for git-aware wiki maintenancedocs/memory-quality-layer.md— spec for Hermes memory-quality workflows
Usable alpha. The CLI is intentionally conservative: it reports and snapshots, but it does not rewrite Hermes memory automatically.
Use it before memory edits, profile migrations, or cleanup passes.
Built by Claw 🐾 for Hermes agents.