The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(send): derive `hermes send` path hints from the resolved Hermes home
Rook-CodeVolt59e40220e204
diff --git a/hermes_cli/send_cmd.py b/hermes_cli/send_cmd.pyindex f0a95fe489c..629cd5f74a1 100644--- a/hermes_cli/send_cmd.py+++ b/hermes_cli/send_cmd.py@@ -111,7 +111,8 @@ def _list_targets(platform_filter: Optional[str], *, json_mode: bool) -> int:if not platforms:print("No messaging platforms configured or no channels discovered yet.")print("Set one up with `hermes gateway setup`, or run the gateway once so")- print("channel discovery can populate ~/.hermes/channel_directory.json.")+ from hermes_constants import get_hermes_home+ print(f"channel discovery can populate {get_hermes_home() / 'channel_directory.json'}.")return _SUCCESS_EXIT# Unfiltered: the shared formatter over the merged view. Filtered: a minimal view of our own.@@ -236,13 +237,16 @@ _SEND_ARGUMENTS = (def register_send_subparser(subparsers) -> argparse.ArgumentParser:"""Create the ``send`` subparser and return it."""+ from hermes_constants import get_hermes_home+ hermes_home = get_hermes_home()parser = subparsers.add_parser("send",help="Send a message to a configured platform (scripts, cron jobs, CI).",description=("Pipe text from any shell script to any messaging platform Hermes ""is already configured for. Reuses the gateway's platform "- "credentials (~/.hermes/.env + ~/.hermes/config.yaml) — no LLM, "+ f"credentials ({hermes_home / '.env'} + "+ f"{hermes_home / 'config.yaml'}) — no LLM, ""no agent loop, no running gateway required for bot-token ""platforms like Telegram/Discord/Slack/Signal."),diff --git a/tools/send_message_tool.py b/tools/send_message_tool.pyindex 397b3ef505d..2b98cdcc055 100644--- a/tools/send_message_tool.py+++ b/tools/send_message_tool.py@@ -304,8 +304,10 @@ def _resolve_platform_config(platform_name, config):if not pconfig or not pconfig.enabled:pconfig = _weixin_env_pconfig() if platform_name == "weixin" else Noneif pconfig is None:+ from hermes_constants import get_hermes_home+ config_path = get_hermes_home() / "config.yaml"return None, None, None, (f"Platform '{platform_name}' is not configured. Set up credentials in "- "~/.hermes/config.yaml or environment variables.")+ f"{config_path} or environment variables.")return platform, pconfig, entry, None