Skip to content

feat(integrations): committed Hermes plugin package + drift guard - #1301

Merged
ajianaz merged 2 commits into
developfrom
feat/hermes-integration-package
Oct 1, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/hermes-integration-package

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a committed, rendered Hermes agent-plugin package at integrations/hermes/ plus its drift guard:

  • integrations/hermes/{plugin.yaml,__init__.py} — byte-identical copies of the embedded templates in crates/uteke-cli/assets/hermes-uteke-memory/ (exactly what uteke init --agent hermes --memory-provider writes), + README.md with install instructions.
  • scripts/render-hermes-integration.sh — regenerates the package from the templates; --check mode exits 1 on drift.
  • Two guard tests in crates/uteke-cli/src/init.rs (mod tests), following the existing template-guard convention: byte-equality against the embedded templates, and a mirror of the Hermes Desktop scanner's detectPluginComponents() (manifest + register() entry point must stay present).

Why

Pasting this repository into the Hermes Desktop "Install plugin" dialog fails with "No agent or desktop plugin artifacts found in this repository." That scanner (and the official plugin catalog) only detects agent plugins when plugin.yaml + __init__.py exist at the repo root — or at a #subdir. Uteke ships its Hermes plugin as uteke init templates only, so it is invisible to repository-scanning installers. Committing the rendered package at a stable subdir makes Uteke installable via:

  • https://github.com/codecoradev/uteke/tree/develop/integrations/hermes
  • codecoradev/uteke/integrations/hermes
  • https://github.com/codecoradev/uteke#integrations/hermes

This mirrors the Hindsight adoption pattern (catalog entry plugin-catalog/hindsight.yaml uses subdir hindsight-integrations/hermes/). The single source of truth remains the embedded templates; drift is caught at test time (fails cargo test --workspace, i.e. every PR) instead of by hand. Upstream catalog listing (plugin-catalog/uteke.yaml in NousResearch/hermes-agent) is a follow-up and is intentionally not part of this PR.

Refs #1300 (proposal; Phase 1 of 3 — Phase 2 catalog entry and optional Phase 3 desktop half are tracked there).

Testing

  • cargo test -p uteke-cli init::tests → 6 passed (includes the 2 new guards).
  • Negative test: appended a drift line to integrations/hermes/plugin.yaml → hermes_integration_package_matches_embedded_templates FAILED with the expected message; restored → PASS; scripts/render-hermes-integration.sh --check → "up to date".
  • cargo fmt -p uteke-cli -- --check and cargo clippy -p uteke-cli --all-targets -- -D warnings → clean.
  • python3 -m py_compile integrations/hermes/__init__.py → OK.
  • cmp confirms rendered files are byte-identical to the .tmpl assets.

#1300)

Render integrations/hermes/ from the embedded hermes-uteke-memory templates so
repo-scanning installers (Hermes Desktop install dialog, plugin catalog) detect
Uteke. Guard tests in init.rs keep the package byte-identical to the templates;
scripts/render-hermes-integration.sh regenerates it.
except ImportError:
get_hermes_home = lambda: None # type: ignore[assignment]

hermes_home = get_hermes_home() if get_hermes_home else os.environ.get("HERMES_HOME", "")
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

…mplates (refs #1300)

CodeCora flagged (via the newly committed rendered package) that the ImportError
fallback `get_hermes_home = lambda: None` is truthy, so $HERMES_HOME/uteke.json
was never discovered when hermes_constants is absent. Use None and let the
existing truthiness check take the env-var branch. Applied to all three template
copies and the rendered integration package; guard tests keep them in lockstep.
@ajianaz
ajianaz merged commit aeee520 into develop Oct 1, 2026
15 checks passed
ajianaz added a commit that referenced this pull request Oct 5, 2026
* chore(release): v0.19.1 - version bump, changelog, docs sync

- Workspace + internal dependency versions 0.19.0 -> 0.19.1 (Cargo.lock synced)
- CHANGELOG: [0.19.1] entry - upgrade-path reliability (#1307 via #1308/#1309/#1310),
  plain /remember explicit-type fix (#1303), committed Hermes plugin package (#1301)
- Bundled uteke-memory skill + .agents canonical copy bumped in lockstep
- README/README.id current-version line synced

* chore(release): regenerate core-contract.json for 0.19.1

docgen embeds the workspace version; the API Docs Fresh gate caught
the stale generated artifact.

---------

Co-authored-by: ajianaz <[email protected]>
@ajianaz
ajianaz deleted the feat/hermes-integration-package branch October 13, 2026 00:57
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.

2 participants