Skip to content

fix(#402): generate __init__.py in Hermes plugin directory - #413

Merged
ajianaz merged 1 commit into
developfrom
fix/402-hermes-init-py
Jun 21, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/402-hermes-init-py

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #402

uteke init --agent hermes was generating plugin.yaml, tool.py, and README.md but missing __init__.py — which Hermes requires to load the plugin as a Python package.

Without __init__.py, Hermes logs:

WARNING: Failed to load plugin 'uteke-tool': No __init__.py

Changes

  • Write __init__.py as the first file in plugin directory
  • Update JSON output files list to include it

Bug 2 (MCP tools not injected)

This is a Hermes-side issue — the uteke MCP server correctly responds to tools/list. The problem is in Hermes' TUI/desktop gateway not running MCP tool discovery at session startup.

Test

TMPDIR=$(mktemp -d) HOME=$TMPDIR cargo run -- init --agent hermes --json
# → files: ["__init__.py", "plugin.yaml", "tool.py", "README.md"]

Milestone: v0.2.1 — DX & Ecosystem

The init_hermes() function was generating plugin.yaml, tool.py, and
README.md but missing __init__.py — which Hermes requires to load
the plugin as a Python package.

Without __init__.py, Hermes logs:
  WARNING: Failed to load plugin 'uteke-tool': No __init__.py

Fix: write __init__.py as the first file in plugin_dir. Update JSON
output files list to include it.

Note: Bug 2 in #402 (MCP tools not injected into agent tool list) is
a Hermes-side issue, not uteke. The MCP server correctly responds to
tools/list — the problem is in Hermes' TUI/desktop gateway.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit 0b9c887 into develop Jun 21, 2026
8 checks passed
@ajianaz
ajianaz deleted the fix/402-hermes-init-py branch June 21, 2026 09:57
ajianaz added a commit that referenced this pull request Aug 13, 2026
The init_hermes() function was generating plugin.yaml, tool.py, and
README.md but missing __init__.py — which Hermes requires to load
the plugin as a Python package.

Without __init__.py, Hermes logs:
  WARNING: Failed to load plugin 'uteke-tool': No __init__.py

Fix: write __init__.py as the first file in plugin_dir. Update JSON
output files list to include it.

Note: Bug 2 in #402 (MCP tools not injected into agent tool list) is
a Hermes-side issue, not uteke. The MCP server correctly responds to
tools/list — the problem is in Hermes' TUI/desktop gateway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: uteke init --agent hermes generates plugin missing __init__.py, causing load failure

1 participant