Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e59b877
feat(messaging): support Google Chat on Hermes over keyless Pub/Sub R…
hunglp6d Aug 17, 2026
e55ca9b
Merge branch 'main' of github.com:NVIDIA/NemoClaw into feat/hermes-go…
hunglp6d Aug 17, 2026
a546a77
fix(messaging): allow only pull and acknowledge on the Hermes Pub/Sub…
hunglp6d Aug 18, 2026
e947a2a
fix(messaging): close the proc handle in the Google Chat proxy lookup
hunglp6d Aug 18, 2026
0457298
Merge remote-tracking branch 'origin/main' into feat/hermes-googlechat
hunglp6d Aug 18, 2026
5d365d5
Merge remote-tracking branch 'origin/main' into feat/hermes-googlechat
hunglp6d Aug 18, 2026
1b97989
refactor(messaging): attach the Google Chat override through the Herm…
hunglp6d Aug 18, 2026
8428a68
fix(hermes): vendor the Google Chat wheels the managed union installs…
hunglp6d Aug 18, 2026
f7c76c8
fix(hermes): vendor opentelemetry-api for the managed union install
hunglp6d Aug 18, 2026
2d7867d
test(messaging): cover the Hermes Google Chat REST pull boundary
hunglp6d Aug 18, 2026
7f83e8a
refactor(messaging): tighten the Google Chat override prose and test …
hunglp6d Aug 18, 2026
8c5e6c4
test(messaging): cover the Google Chat bridge scopes and Hermes egres…
hunglp6d Aug 18, 2026
9cd2fcc
fix(messaging): replace the Google Chat pull loop on a repeat connect
hunglp6d Aug 18, 2026
44eab71
refactor(messaging): drop the unreachable reconnect path and centrali…
hunglp6d Aug 18, 2026
62d6e5d
fix(onboard): match the bridge binding before reusing a gateway provider
hunglp6d Aug 19, 2026
c0758e2
Merge branch 'main' into feat/hermes-googlechat
hunglp6d Aug 19, 2026
f0495c4
fix(messaging): retire an unreadable Google Chat delivery
hunglp6d Aug 19, 2026
3668e10
fix(hermes): admit the Google Chat asset into the portable context
hunglp6d Aug 19, 2026
06b846d
Merge branch 'main' into feat/hermes-googlechat
hunglp6d Aug 19, 2026
7441b43
docs(messaging): scope Google Chat guidance to the agent that needs it
hunglp6d Aug 19, 2026
6444058
Merge branch 'feat/hermes-googlechat' of github.com:NVIDIA/NemoClaw i…
hunglp6d Aug 19, 2026
609a989
Merge branch 'main' into feat/hermes-googlechat
hunglp6d Aug 19, 2026
ce31d08
Merge branch 'main' into feat/hermes-googlechat
sandl99 Aug 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agents/hermes/config/managed-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const MANAGED_IMAGE_HERMES_SUPPORTED_PLATFORMS = [
"slack",
"whatsapp",
"teams",
"google_chat",
] as const;

// Hermes v0.19.0 also packages platform plugins and built-in adapters that are
Expand Down
66 changes: 66 additions & 0 deletions agents/hermes/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
and quiet runtime grounding when Hermes runs inside an OpenShell sandbox
managed by NemoClaw.

Layout: channel-specific runtime overrides live in sibling modules loaded by
register() only when that channel is configured, so a sandbox without the
channel carries none of its behavior. Today that is googlechat_sandbox_adapter.py.

Skill hot-reload: Hermes caches its skill slash-command registry in a
module-global dict on first scan. New skills dropped on disk are invisible
until the cache is cleared. This plugin provides a nemoclaw_reload_skills
Expand All @@ -22,9 +26,11 @@
"""

import atexit
import importlib.util
import inspect
import ipaddress
import json
import logging
import os
import re
import subprocess
Expand Down Expand Up @@ -96,6 +102,7 @@
"qqbot",
"yuanbao",
"webhook",
"google_chat",
)
_RAW_MESSAGING_TOOL_RE = re.compile(
r"^\s*send_message\s*:\s*(?P<body>.+?)\s*$",
Expand Down Expand Up @@ -1418,10 +1425,69 @@ def _handle_reload_skills(tool_input=None, context=None, **_kwargs):
return "\n".join(lines)


# ─────────────────────────────────────────────────────────────────────────────
# Google Chat: keyless adapter override (NemoClaw)
#
# The override itself lives in the sibling ``googlechat_sandbox_adapter``
# module — the same per-concern split Hermes' own plugins use
# (``plugins/platforms/discord`` ships adapter.py, recovery.py, and
# voice_mixer.py beside __init__.py). It is loaded only when the sandbox is
# configured for the Google Chat channel, so a Hermes sandbox without that
# channel never wraps the platform registry.
# ─────────────────────────────────────────────────────────────────────────────
_GOOGLE_CHAT_SUBSCRIPTION_ENV = "GOOGLE_CHAT_SUBSCRIPTION_NAME"
_GOOGLE_CHAT_MODULE = "googlechat_sandbox_adapter.py"


def _load_googlechat_adapter():
"""Load the sibling Google Chat override module by file path.

Hermes loads this plugin as a directory module under a synthetic name
(``hermes_cli/plugins.py`` ``_load_directory_module``), so there is no
package context for a relative import; load the sibling the same way.
"""
path = os.path.join(os.path.dirname(__file__), _GOOGLE_CHAT_MODULE)
spec = importlib.util.spec_from_file_location(
"nemoclaw_hermes_googlechat_sandbox_adapter",
path,
)
if spec is None or spec.loader is None:
return None
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module


def _install_googlechat_sandbox_adapter(ctx):
"""Install the keyless Google Chat override when that channel is configured.

Gating on the rendered subscription keeps every other Hermes sandbox free of
the platform-registry wrap. Returns whether the override module was loaded
and invoked; the module reports its own registry-wrap failures.
"""
if not _get_env_value(_GOOGLE_CHAT_SUBSCRIPTION_ENV):
return False
try:
module = _load_googlechat_adapter()
except Exception:
# Load failure must not abort plugin registration, but it has to be
# visible: without the override the bundled gRPC adapter hangs under the
# REST-only egress policy and the channel goes quiet with no other clue.
logging.getLogger("gateway.platforms.google_chat").exception(
"[GoogleChat][NemoClaw] loading %s failed", _GOOGLE_CHAT_MODULE,
)
return False
if module is None:
return False
module.install(ctx)
return True


def register(ctx):
"""Register NemoClaw tools and hooks with Hermes."""
_install_nous_tool_broker_patch()
_install_messaging_response_patch()
_install_googlechat_sandbox_adapter(ctx)

# Register status tool
ctx.register_tool(
Expand Down
Loading
Loading