Skip to content

The agent that grows with you

docs(sync): point users from personal sync to org sharing

Ben Barclaye19ac3b7458c
diff --git a/hermes_cli/main.py b/hermes_cli/main.py
index 86d0d5eed6e..7124009c143 100644
--- a/hermes_cli/main.py
+++ b/hermes_cli/main.py
@@ -4455,7 +4455,11 @@ def cmd_sync(args):
" now Reconcile now: pull then push\n"
" enable <skill> Opt a skill into sync\n"
" disable <skill> Opt a skill out of sync\n"
- " device [--name N] Show or set this device's sync label",
+ " device [--name N] Show or set this device's sync label\n"
+ "\n"
+ "These cover your PERSONAL skills, across your own devices.\n"
+ "To share a skill with your organisation instead:\n"
+ " hermes skills propose <skill>",
file=sys.stderr,
)
return 1
diff --git a/hermes_cli/subcommands/sync.py b/hermes_cli/subcommands/sync.py
index f752aa288cb..bdc771d282d 100644
--- a/hermes_cli/subcommands/sync.py
+++ b/hermes_cli/subcommands/sync.py
@@ -1,4 +1,4 @@
-"""``hermes sync`` subcommand parser (HSP/1 personal skill sync).
+"""``hermes sync`` subcommand parser (personal skill sync).
Cloned from ``hermes_cli/subcommands/cron.py`` — same injected-handler shape
(``func=cmd_sync``) so this module does not import ``main`` (cycle avoidance).
@@ -8,13 +8,18 @@ Commands:
hermes sync pull -- pull the owner's HEAD, materialize opted-in skills
hermes sync push -- push opted-in skills to the owner's HEAD
hermes sync now -- pull then push (full reconcile)
- hermes sync enable <skill> -- opt a skill into sync (M1-D)
+ hermes sync enable <skill> -- opt a skill into sync
hermes sync disable <skill> -- opt a skill out of sync
hermes sync device [--name] -- show or set this device's sync label
-Sync is INERT unless the resolved Nous token carries the DEV-PHASE gate claim
-(tool_gateway_admin) AND a sync base URL is configured. The commands report
-that state rather than failing opaquely.
+This surface is PERSONAL sync only: it moves your own skills between your own
+devices via ``refs/user/<owner>/HEAD``. Sharing a skill with an organisation
+is a different operation with a different destination and an approval step —
+see ``hermes skills propose``.
+
+Sync is INERT unless the resolved Nous token carries the access-gate claim
+AND a sync base URL is configured. The commands report that state rather than
+failing opaquely.
"""
from __future__ import annotations
@@ -24,10 +29,27 @@ from typing import Callable
def build_sync_parser(subparsers, *, cmd_sync: Callable) -> None:
"""Attach the ``sync`` subcommand (and its sub-actions) to ``subparsers``."""
+ import argparse
+
sync_parser = subparsers.add_parser(
"sync",
help="Personal skill sync across your devices",
- description="Sync agent-created and user-authored skills across devices.",
+ description=(
+ "Sync agent-created and user-authored skills across your own "
+ "devices."
+ ),
+ epilog=(
+ "Sharing with your team:\n"
+ " These commands cover your PERSONAL skills only. To share a "
+ "skill with your\n"
+ " organisation, use `hermes skills propose <skill>` instead — it "
+ "submits the\n"
+ " skill to your org's shared set (an admin approves it unless "
+ "you are one).\n"
+ " Approved org skills arrive automatically and are read-only "
+ "locally.\n"
+ ),
+ formatter_class=argparse.RawDescriptionHelpFormatter,
)
sync_sub = sync_parser.add_subparsers(dest="sync_command")
diff --git a/tests/agent/test_org_skill_namespace.py b/tests/agent/test_org_skill_namespace.py
index 9a4c7783f33..3c6ed7db6fe 100644
--- a/tests/agent/test_org_skill_namespace.py
+++ b/tests/agent/test_org_skill_namespace.py
@@ -237,3 +237,41 @@ class TestOrgPullIsWiredIn:
assert not banned.search(line), (
f"{path.name}:{i} leaks internal jargon to users: {line.strip()}"
)
+
+
+class TestOrgSharingIsDiscoverable:
+ """`hermes sync` must point users at the org-sharing command.
+
+ Without this, there is no path from "I want to share this with my team"
+ to `hermes skills propose` — sync looks like the only sharing surface
+ while being personal-only.
+ """
+
+ def test_sync_usage_block_mentions_propose(self):
+ import pathlib
+
+ main_src = (
+ pathlib.Path(__file__).resolve().parents[2]
+ / "hermes_cli"
+ / "main.py"
+ ).read_text(encoding="utf-8")
+ usage_start = main_src.index(
+ "usage: hermes sync <status|pull|push|now|enable|disable|device>"
+ )
+ usage_block = main_src[usage_start : usage_start + 1200]
+ assert "hermes skills propose" in usage_block, (
+ "`hermes sync` usage must point at the org-sharing command."
+ )
+
+ def test_sync_parser_epilog_mentions_propose(self):
+ import pathlib
+
+ src = (
+ pathlib.Path(__file__).resolve().parents[2]
+ / "hermes_cli"
+ / "subcommands"
+ / "sync.py"
+ ).read_text(encoding="utf-8")
+ assert "hermes skills propose" in src, (
+ "`hermes sync --help` must point at the org-sharing command."
+ )