Repository navigation
Description
Bug: Platform adapters not loadable after pip install hermes-agent
Summary
After installing hermes-agent 0.15.1 via pip install hermes-agent, platform adapters under plugins/platforms/ (Discord, IRC, Teams, Google Chat, LINE, Mattermost, ntfy, SimpleX) are completely non-functional. The plugin discovery system cannot find them because the required plugin.yaml manifest files are not included in the pip package.
Environment
- hermes-agent version: 0.15.1
- Install method:
pip install hermes-agent(alsopip install 'hermes-agent[messaging]') - OS: macOS (also affects Linux)
- Python: 3.11
Root Cause
The platform adapters were moved from the built-in _create_adapter() if/elif chain in gateway/run.py to the plugin system under plugins/platforms/. However, the pip package does not include plugin.yaml files for any of these plugins.
The plugin discovery pipeline is:
PluginManager.discover_and_load()→_scan_directory()looks forplugin.yamlin each subdirectory- Without
plugin.yaml, the directory is skipped (recursed into at depth 0, then skipped at depth 1) register()in each adapter's__init__.pyis never calledplatform_registryhas no entry for these platforms- Gateway falls through both the plugin path and the built-in path → "No adapter available for discord"
Additionally, GatewayConfig._scan_bundled_plugin_platforms() explicitly requires both __init__.py AND plugin.yaml:
# gateway/config.py:177
if (
child.is_dir()
and (child / "__init__.py").exists()
and (
(child / "plugin.yaml").exists()
or (child / "plugin.yml").exists()
)
):
names.add(child.name.lower())Affected Files
All 8 platform plugin directories in the pip package are missing plugin.yaml:
plugins/platforms/discord/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/irc/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/teams/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/google_chat/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/line/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/mattermost/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/ntfy/ — __init__.py, adapter.py (no plugin.yaml)
plugins/platforms/simplex/ — __init__.py, adapter.py (no plugin.yaml)
Evidence
Gateway logs after fresh pip install:
WARNING gateway.run: No adapter available for discord
Despite discord.py being installed and DISCORD_BOT_TOKEN configured in .env.
The _create_adapter() built-in chain has Telegram, Feishu, Slack, WhatsApp, Signal, etc. but not Discord — it was moved to the plugin system without the required manifest file.
Workaround
Manually create plugin.yaml for each needed platform adapter. For Discord:
# /path/to/site-packages/plugins/platforms/discord/plugin.yaml
name: discord
version: "0.15.1"
kind: platform
description: Discord platform adapter for Hermes
requires_env:
- DISCORD_BOT_TOKENpip install --upgrade.
Expected Fix
Include plugin.yaml manifests for all platform plugins in the pip package (i.e., add them to the source tree under plugins/platforms/*/plugin.yaml so they're picked up by the build system).
Impact
This is a blocking issue for any user who installs via pip and needs Discord (or IRC, Teams, etc.). The platform simply cannot connect, with no clear error message pointing to the root cause.
Activity
Bartok9 commentedon May 29, 2026
Thanks for the detailed root-cause write-up — the diagnosis (plugin discovery skips dirs without
plugin.yaml, so the adapters neverregister()) is correct for the 0.15.1 PyPI build.The good news: this is already fixed on
main. I verified it end-to-end:1. The manifests exist in the source tree. All 8 platform adapters were given a
plugin.yamlduring the built-in→bundled-plugin migrations (May 18–24):2. The packaging gap was fixed by #34484 (
fix(packaging): ship bundled plugin.yaml manifests in wheel and sdist, merge commit2765b02021c1e6eb743e2ce2eb359fc66a5aa89e, merged 2026-05-29 08:23 UTC — confirmed ancestor of currentmain). It added:pyproject.toml→[tool.setuptools.package-data] plugins += "**/plugin.yaml", "**/plugin.yml"(wheel)MANIFEST.in→recursive-include plugins plugin.yaml plugin.yml(sdist)tests/test_packaging_metadata.py3. Runtime-proved on current main. Built the wheel from
main(HEADc0b17b3c) and inspected it:mainplugin.yamlfiles in wheelplugins/platforms/discord/plugin.yamlSo the directory-skip →
No adapter available for discordchain you traced no longer triggers, because_scan_directory()now finds theplugin.yamlthat ships in the package.The one caveat for you right now: the fix is on
mainbut not yet on PyPI — the latest release is still 0.15.1, which predates #34484. Until the next release cuts:pip install git+https://github.com/NousResearch/hermes-agent.git@mainplugin.yamlworkaround until the next PyPI release.Recommend closing this as fixed by #34484 (and tracking the next release for the PyPI artifact). Happy to leave it open if maintainers want it as the release-blocker tracker.
kagura-chen commentedon May 29, 2026
This was fixed on
mainearlier today in commit 2765b02 ("fix(packaging): ship bundled plugin.yaml manifests in wheel and sdist"), which references the original issue #34034.The fix adds
**/plugin.yamland**/plugin.ymlto[tool.setuptools.package-data]for thepluginskey, plus the correspondingMANIFEST.inentry for sdist builds.Until the next release is published to PyPI, you can install from main:
alt-glitch commentedon May 29, 2026
Duplicate of #34034 — same root cause (plugin.yaml manifests missing from PyPI package).
Fix already merged on
mainas #34484 (consolidates #34072, #28170, #28162, #31753). The v0.15.1 release still ships the broken package; the fix will be in the next release.konsisumer commentedon May 29, 2026
Thanks for the thorough root-cause write-up — your diagnosis is exactly right for the 0.15.1 PyPI build (plugin discovery skips directories without
plugin.yaml, so the adapters neverregister()).This is already resolved on
mainand is a duplicate of an existing tracker. For completeness, here is the state of each referenced item:fix(packaging): ship bundled plugin.yaml manifests in wheel and sdist): adds**/plugin.yaml/**/plugin.ymlto setuptools[tool.setuptools.package-data]and the matchingMANIFEST.inentry for sdists, plus a regression test. It consolidated these earlier, superseded attempts:The one caveat: the fix is on
mainbut not yet on PyPI — the latest release is still 0.15.1, which predates #34484.Could you confirm the platform adapters load when installed from
main(pip install git+https://github.com/NousResearch/hermes-agent.git@main)? If they do, this can be closed as a duplicate of #34034 and tracked for the next PyPI release.teknium1 commentedon May 29, 2026
Fixed on
mainand verified end-to-end.The fix is commit
2765b0202("fix(packaging): ship bundled plugin.yaml manifests in wheel and sdist"), which adds**/plugin.yamland**/plugin.ymlto[tool.setuptools.package-data]for thepluginskey inpyproject.toml. Your root-cause write-up was exactly right — the wheel shipped each adapter's Python code but none of itsplugin.yamlmanifests, soPluginManager.discover_and_load()skipped every platform directory andregister()was never called.Verification: built the wheel from current
mainand confirmed all 8 platform manifests ship —Duplicate of #34034 (same root cause). The fix lands in the next release; the published 0.15.1 PyPI artifact still has the broken package. Until then, an editable/source install (
pip install -e .from a clone) has the manifests in place.Thanks for the detailed report — closing as resolved.