Skip to main content

Background memory consolidation plugin for Hermes

Project description

hermes-dreaming

A background memory consolidation plugin for Hermes, built around Hermes' small, always-prompt-visible memory model.

What it does

Hermes durable memory (MEMORY.md ≈2,200 chars, USER.md ≈1,375 chars) is scarce and injected into every session prompt. hermes-dreaming runs a periodic three-phase consolidation cycle:

  • Light — scans recent sessions for candidate facts/preferences
  • Deep — identifies patterns, contradictions, supersessions
  • REM — scores candidates and applies at most a few high-confidence memory operations (add, replace, remove)

A successful run may produce zero durable writes. The goal is highest future usefulness per character, not more memories.

Note: memory mutations take effect on the next session start (Hermes loads memory as a frozen snapshot at session init).

Install

pip install hermes-dreaming

Then enable in ~/.hermes/config.yaml:

plugins:
  enabled:
    - hermes-dreaming

Commands

/dreaming run       — full cycle (schedules + manual)
/dreaming review    — dry-run; proposes ops without mutating memory
/dreaming status    — last run, candidate counts, memory usage
/dreaming compact   — merge duplicates + remove obsolete; no new adds

CLI equivalents:

hermes dreaming run
hermes dreaming review
hermes dreaming status
hermes dreaming compact
hermes dreaming install-cron   # register nightly 03:00 cron job

State files

All runtime state lives in ~/.hermes/dreaming/:

~/.hermes/dreaming/
├── DREAMS.md           # human-readable audit diary
├── state.json          # last run metadata
├── candidates.jsonl    # staged Light-phase candidates
├── decisions.jsonl     # all Deep/REM decisions (including rejections)
├── promotions.jsonl    # applied memory operations (includes sidecar metadata)
├── runs/               # per-run JSON records
└── backups/            # timestamped MEMORY.md / USER.md snapshots

Configuration

dreaming:
  enabled: true
  schedule: "0 3 * * *"
  max_changes_per_run: 3

Design

See docs/implementation-brief.md for the full design brief.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hermes_dreaming-0.2.0.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hermes_dreaming-0.2.0-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file hermes_dreaming-0.2.0.tar.gz.

File metadata

  • Download URL: hermes_dreaming-0.2.0.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hermes_dreaming-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1349125b4c0844e39e174755b375aa2f590d81393182a85938a89d5ba285a610
MD5 bfb5dc4a2272c94be17eb2b17614e234
BLAKE2b-256 9575e0a41b5f141ba4c3d670783d8c963847447dea5540fcdc30dbad6e06b76c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hermes_dreaming-0.2.0.tar.gz:

Publisher: publish.yml on alejandroiglesias/hermes-dreaming

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hermes_dreaming-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hermes_dreaming-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hermes_dreaming-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cab120da74e3500fb19aeb06e01969e62472cf7c7ba90e24de8747d6dd1703b
MD5 3e4ed7749abcc8c59cf2b2a6de9fa041
BLAKE2b-256 68aa7be98bd3c42d872576a8e875f7ec421dcdd38ac0c73ed76b1461ffb6c0ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for hermes_dreaming-0.2.0-py3-none-any.whl:

Publisher: publish.yml on alejandroiglesias/hermes-dreaming

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page