Skip to content

fix: correct symlink path for hermes-agent plugin discovery - #2358

Open
GkreLee wants to merge 1 commit into
MemTensor:mainfrom
GkreLee:fix/hermes-symlink-path
Open

fix: correct symlink path for hermes-agent plugin discovery#2358
GkreLee wants to merge 1 commit into
MemTensor:mainfrom
GkreLee:fix/hermes-symlink-path

Conversation

@GkreLee

@GkreLee GkreLee commented Sep 10, 2026

Copy link
Copy Markdown

Problem

The install script creates the symlink at ~/.hermes/plugins/memory/memtensor/, but hermes-agent's plugin discovery scans ~/.hermes/plugins/ for direct children. The extra memory/ subdirectory causes the memtensor plugin to be invisible to the host.

This means after every hermes update (which restarts the gateway), the memory provider fails to load and stops recording traces.

Fix

Change USER_TARGET from /memtensor to ${HOME}/.hermes/plugins/memtensor (without the memory/ prefix), matching hermes-agent's expected plugin layout.

- USER_TARGET="$USER_HERMES_PLUGINS_DIR/memtensor"
+ USER_TARGET="${HOME}/.hermes/plugins/memtensor"

Verification

After this fix, find_provider_dir('memtensor') in hermes-agent correctly resolves the plugin directory, and the memory provider loads successfully on gateway restart.

The install script creates the symlink at
$HOME/.hermes/plugins/memory/memtensor/, but hermes-agent's plugin
discovery scans $HOME/.hermes/plugins/ for direct children. The extra
memory/ subdirectory causes the plugin to be invisible to the host.

Fix: change USER_TARGET to $HOME/.hermes/plugins/memtensor (without
the memory/ prefix), matching hermes-agent's expected plugin layout.
@Memtensor-AI Memtensor-AI added area:plugin OpenClaw & Hermes status:in-progress Someone or AI is working on it | 人工或 AI 正在处理 labels Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:plugin OpenClaw & Hermes status:in-progress Someone or AI is working on it | 人工或 AI 正在处理

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants