hermes - 💡(How to fix) Fix hermes plugins enable/list filters out entry-point-discovered plugins

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Two CLI surfaces in hermes_cli/plugins_cmd.py filter out entry-point-discovered plugins (the hermes_agent.plugins group), even though PluginManager.discover_and_load() and PluginManager._scan_entry_points() discover and load them correctly.

Result: operators who install a Hermes plugin via pip install <package> see the plugin's adapter / hooks / CLI commands work, but the management surfaces (hermes plugins list, hermes plugins enable/disable) behave as if the plugin doesn't exist.

I'm encountering this while shipping hermes-a365 (an entry-point plugin distributed via PyPI; satscryption/Hermes-A365), but it generalises to any third-party plugin author who picks the entry-point distribution path.

Error Message

print(k, lp.manifest.source, lp.enabled, lp.error)

Root Cause

Entry-point plugin distribution is the modern Python path — pip install foo + [project.entry-points."hermes_agent.plugins"] in pyproject.toml is exactly the shape Python's packaging tooling recommends, and Hermes' PluginManager already supports it cleanly at the runtime layer. The CLI surfaces are the only thing lagging.

Fixing both gaps would unblock a class of third-party plugins that otherwise need workarounds like manually editing ~/.hermes/config.yaml::plugins.enabled (or shipping their own setup wizard that does it for them — which is what we do in hermes-a365's interactive_setup, see satscryption/Hermes-A365 slice 19r-a).

Fix Action

Fix / Workaround

Fixing both gaps would unblock a class of third-party plugins that otherwise need workarounds like manually editing ~/.hermes/config.yaml::plugins.enabled (or shipping their own setup wizard that does it for them — which is what we do in hermes-a365's interactive_setup, see satscryption/Hermes-A365 slice 19r-a).

Code Example

pip install hermes-a365   # entry-point plugin
hermes plugins list       # agent365 does NOT appear

# But the plugin IS loaded:
python -c "
from hermes_cli.plugins import get_plugin_manager, discover_plugins
discover_plugins(force=True)
for k, lp in sorted(get_plugin_manager()._plugins.items()):
    print(k, lp.manifest.source, lp.enabled, lp.error)
"
# → agent365 entrypoint True None

---

pip install hermes-a365
hermes plugins enable agent365
# → Plugin 'agent365' is not installed or bundled.   (exit 1)
RAW_BUFFERClick to expand / collapse

Summary

Two CLI surfaces in hermes_cli/plugins_cmd.py filter out entry-point-discovered plugins (the hermes_agent.plugins group), even though PluginManager.discover_and_load() and PluginManager._scan_entry_points() discover and load them correctly.

Result: operators who install a Hermes plugin via pip install <package> see the plugin's adapter / hooks / CLI commands work, but the management surfaces (hermes plugins list, hermes plugins enable/disable) behave as if the plugin doesn't exist.

I'm encountering this while shipping hermes-a365 (an entry-point plugin distributed via PyPI; satscryption/Hermes-A365), but it generalises to any third-party plugin author who picks the entry-point distribution path.

Gap 1 — hermes plugins list filters out entry-point plugins

hermes_cli/plugins_cmd.py:670 defines _discover_all_plugins() — walks _plugins_dir() (user) and get_bundled_plugins_dir() (bundled) looking for plugin.yaml/plugin.yml. Entry-point plugins have no on-disk manifest, so they're invisible.

cmd_list() (line 723) calls _discover_all_plugins(). So hermes plugins list shows only directory-based plugins.

Reproduction

pip install hermes-a365   # entry-point plugin
hermes plugins list       # agent365 does NOT appear

# But the plugin IS loaded:
python -c "
from hermes_cli.plugins import get_plugin_manager, discover_plugins
discover_plugins(force=True)
for k, lp in sorted(get_plugin_manager()._plugins.items()):
    print(k, lp.manifest.source, lp.enabled, lp.error)
"
# → agent365 entrypoint True None

Suggested fix

Extend _discover_all_plugins() to also include PluginManager._scan_entry_points() results, deduplicating by name. Bundled + user overrides still take precedence; entry-point fills in the rest. A 5-line addition.

Gap 2 — hermes plugins enable/disable rejects entry-point plugins

hermes_cli/plugins_cmd.py:684 defines _plugin_exists(name) — same coverage as _discover_all_plugins() (user dir + bundled dir). Returns False for entry-point plugins.

cmd_enable(name) (line 631) and cmd_disable(name) (line 658) gate on _plugin_exists() and exit non-zero with "Plugin 'X' is not installed or bundled.".

Reproduction

pip install hermes-a365
hermes plugins enable agent365
# → Plugin 'agent365' is not installed or bundled.   (exit 1)

…even though _get_enabled_set() / _save_enabled_set() (lines 603-628) would happily round-trip the value through ~/.hermes/config.yaml::plugins.enabled if _plugin_exists let us in.

Suggested fix

Extend _plugin_exists() to also check PluginManager._scan_entry_points() for a manifest with matching name. Same pattern as Gap 1.

Why this matters

Entry-point plugin distribution is the modern Python path — pip install foo + [project.entry-points."hermes_agent.plugins"] in pyproject.toml is exactly the shape Python's packaging tooling recommends, and Hermes' PluginManager already supports it cleanly at the runtime layer. The CLI surfaces are the only thing lagging.

Fixing both gaps would unblock a class of third-party plugins that otherwise need workarounds like manually editing ~/.hermes/config.yaml::plugins.enabled (or shipping their own setup wizard that does it for them — which is what we do in hermes-a365's interactive_setup, see satscryption/Hermes-A365 slice 19r-a).

Related

  • NousResearch/hermes-agent#23735 — design discussion on multi-profile deployments. Same upstream-team scope.
  • The PluginManager._scan_entry_points() path itself was already correct in v0.13.0 (PR #22120) — this issue is purely about the CLI-surface helpers in plugins_cmd.py not consuming that path.

Reproduction environment

Happy to spec or contribute a PR if direction is positive.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING