Repository navigation
Description
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 memoryto 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
- Setup config flags as follows:
# config.yaml
memory:
memory_enabled: false
user_profile_enabled: false- 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: falseDisables 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)
-
hermes tools disable memoryshould:- Turn off the built-in
memorytool. - 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.
- Turn off the built-in
-
memory_enabled: falsein config should be a true kill switch: no tool, no prompt injection. -
Optionally, add a separate
--allflag (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
fix: resolve merge conflicts — adopt refactored inject_memory_provide…
Merge origin/main into fix/45422-memory-tool-disable-scope
GottZ commentedon Jul 28, 2026
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
partial— (+26/-7) — partial fix: The diff correctly suppresses MEMORY_GUIDANCE when both built-in stores are disabled, while preserving it for user-profile-only configurations, and passes disabled_toolsets through one ACP refresh call. Consistent with the contributor keep_open review on fix: hermes tools disable memory should only disable built-in memory #45548, it still leaves the separately identified ACP view construction at acp_adapter/server.py:1797-1807 unchanged and contains no tools/mcp_tool.py change, so refreshes can still violate the intended provider-disable contract; this unresolved diff evidence outweighs the earlier non-contributor APPROVED review.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"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.
volkflo commentedon Aug 25, 2026
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