Skip to content

[Bug]: hermes tools disable memory should disable the built-in memory, not the entire memory ecosystem #45422

Open

Description

@rcsaquino

Bug Description

Summary

The hermes tools disable memory command currently disables the entire memory ecosystem, which means external/third-party memory providers (e.g. mnemosyne) are also broken when this command is run. Meanwhile, the alternative — setting memory_enabled: false and user_profile_enabled: false in config — only disables the built-in memory tool, but the built-in memory prompt is still auto-injected into the system prompt, which causes the agent to get confused (it thinks it still has memory capabilities even though the tool is gone).

So neither path works cleanly when you want to use an external memory provider:

  • hermes tools disable memory → nukes everything, including the external provider.
  • Config flags only → leaves the built-in memory prompt injected, confusing the agent.

Use case

I want to use mnemosyne as my memory layer with Hermes. Mnemosyne exposes memory via standard tools, which work fine when called. The problem:

  • If I run hermes tools disable memory to avoid the built-in memory's prompt confusion, I lose mnemosyne too (it depends on at least one tool call being possible).
  • If I just set the config flags, the agent gets confused by the still-injected built-in memory prompt and behaves inconsistently.

I just want a clean way to say "turn off Hermes's built-in memory, but let my external memory provider work normally" — and have that be one command, with no prompt leakage.

Steps to Reproduce

  1. Setup config flags as follows:
# config.yaml
memory:
  memory_enabled: false
  user_profile_enabled: false
  1. Details about memory() tool still get auto injected into prompt.

Expected Behavior

hermes tools disable memory should disable only the built-in memory subsystem — the built-in memory tool and its prompt injection — while leaving the door open for external memory providers to function as the sole memory layer. In other words, the command should mean "Hermes's own memory is off, use whatever external tools/plugins are available instead", not "no memory of any kind, anywhere."

The config-flag path should also be a true "off switch" — memory_enabled: false should suppress both the tool and the prompt injection.

Actual Behavior

Option A — hermes tools disable memory:
Disables the whole memory ecosystem. External memory providers (mnemosyne, Mem0, etc.) stop working.

Option B — config flags:

# config.yaml
memory:
  memory_enabled: false
  user_profile_enabled: false

Disables the built-in memory tool, but the system prompt still contains the built-in memory instructions (memory.md / user.md injection). The agent continues to act as if it has those capabilities and gets confused.

Affected Component

Configuration (config.yaml, .env, hermes setup)

Messaging Platform (if gateway-related)

No response

Debug Report

-

Operating System

Arch Linux

Python Version

No response

Hermes Version

0.16.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

  1. hermes tools disable memory should:

    • Turn off the built-in memory tool.
    • Stop injecting the built-in memory prompt into the system.
    • Not affect external/third-party memory providers registered through toolsets, plugins, or MCP — those should keep working.
  2. memory_enabled: false in config should be a true kill switch: no tool, no prompt injection.

  3. Optionally, add a separate --all flag (e.g. hermes tools disable memory --all) for users who genuinely want a fully memory-less agent, including external providers.

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    P3Low — cosmetic, nice to have
    tool/memoryMemory tool and memory providers
    comp/cliCLI entry point, hermes_cli/, setup wizard
    on Jun 13, 2026
  2. GottZ commented on Jul 28, 2026

    @GottZ

    This was generated by AI during triage.

    Summary

    One PR, #45548, addresses #45422 by tightening built-in memory guidance and partially separating external-provider exposure from the built-in memory toolset, but its complete diff does not cover every provider-tool refresh path implicated in the reported coupling.

    Related pull requests

    Suggested consolidation

    Do not merge #45548 yet; keep it open as the sole implementation and complete the missing ACP and MCP refresh-path propagation, with tests covering rebuilds after provider suppression. Once those contributor-review blockers are addressed and verified, merge #45548; there are no duplicate PRs to close.

    Complex graph

    flowchart LR
        classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a
        classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d
        classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937
        classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151
        classDef best stroke-width:3px,stroke:#b45309
        classDef target stroke-width:3px,stroke:#4338ca
        I45422(["issue #45422 (open)"])
        P45548["PR #45548 (open)"]
        MoreI(["+1 more issues not shown"])
        P45548 -.->|partial| I45422
        class I45422 open
        class I45422 target
        class P45548 open
        class MoreI closed
        click I45422 "https://github.com/NousResearch/hermes-agent/issues/45422"
        click P45548 "https://github.com/NousResearch/hermes-agent/pull/45548"
    
    Loading

    Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed or no verify verdict yet (state tag in the node label).

    Cross-PR triage: Reviewed 1 pull request and 2 issues in this complex. Each diff was read against this issue; Assessment working set: 5 kB of PR diffs, 6 kB of issue/PR text, 4 kB of discussion (4 comments), 2 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.

  3. volkflo commented on Aug 25, 2026

    @volkflo

    I am also a bit confused about this, and also the hermes docs are not totally clear on it.
    I followed the hindsight external memory guide, and they claim to disable the internal memory.
    See: https://hindsight.vectorize.io/sdks/integrations/hermes#disabling-hermess-built-in-memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cliCLI entry point, hermes_cli/, setup wizardtool/memoryMemory tool and memory providerstype/featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions