The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: fold the named-source control into one clone-all test; document the skipped trees
teknium10e0692240a2a
diff --git a/tests/hermes_cli/test_profiles.py b/tests/hermes_cli/test_profiles.pyindex 01349db93b5..981872862fb 100644--- a/tests/hermes_cli/test_profiles.py+++ b/tests/hermes_cli/test_profiles.py@@ -1301,14 +1301,11 @@ class TestCloneAllExcludesRuntimeTrees:assert set(at_root) == set(self.RUNTIME_TREES)assert nested == []- def test_named_profile_source_keeps_its_own_runtime_dirs(self, profile_env):- # The exclusion is gated on the default profile: a named profile that- # really has a models/ dir of its own must not have it dropped.+ # Gated on the default profile: a named profile that really has a+ # models/ dir of its own must not have it dropped when used as source.source = create_profile("source", no_alias=True)(source / "models").mkdir()- ignore = _clone_all_copytree_ignore(source)-- assert ignore(str(source), ["models", "runtimes", "node", "SOUL.md"]) == []+ assert _clone_all_copytree_ignore(source)(str(source), ["models", "runtimes", "node", "SOUL.md"]) == []def test_clone_all_from_default_skips_runtime_trees_but_keeps_the_rest(self, profile_env):default_home = profile_env / ".hermes"diff --git a/website/docs/reference/profile-commands.md b/website/docs/reference/profile-commands.mdindex 3d37e5b7732..3fa4e8c261f 100644--- a/website/docs/reference/profile-commands.md+++ b/website/docs/reference/profile-commands.md@@ -81,7 +81,7 @@ Creates a new profile.|-------------------|-------------|| `<name>` | Name for the new profile. Must be a valid directory name (alphanumeric, hyphens, underscores). || `--clone` | Copy `config.yaml`, `.env`, `SOUL.md`, skills, and the curated `memories/MEMORY.md` / `memories/USER.md` from the current profile. Sessions, `state.db` and cron jobs are not copied. |-| `--clone-all` | Copy everything (config, memories, skills, plugins) from the current profile. Excludes per-profile history: sessions, `state.db`, backups, state-snapshots, checkpoints — and cron jobs, which stay bound to the source profile (a clone that inherited them would fire every job twice). |+| `--clone-all` | Copy everything (config, memories, skills, plugins) from the current profile. Excludes per-profile history: sessions, `state.db`, backups, state-snapshots, checkpoints — and cron jobs, which stay bound to the source profile (a clone that inherited them would fire every job twice). When the source is the default profile, the machine-scoped local-model trees (`models/`, `runtimes/`, `node/`) are also skipped — the same trees `hermes backup` excludes. || `--clone-from <profile>` | Clone config/skills/SOUL from a specific profile instead of the current one. Implies `--clone` unless paired with `--clone-all`. || `--no-alias` | Skip wrapper script creation. || `--description "<text>"` | One- or two-sentence description of what this profile is good at. Used by the kanban orchestrator to route tasks based on role instead of profile name alone. Skip and add later via `hermes profile describe`. Persisted in `<profile_dir>/profile.yaml`. |diff --git a/website/docs/user-guide/profiles.md b/website/docs/user-guide/profiles.mdindex 43aa3db1325..cd6da6ab01e 100644--- a/website/docs/user-guide/profiles.md+++ b/website/docs/user-guide/profiles.md@@ -73,7 +73,7 @@ This is explicit, opt-in and one-directional, and it links the clone to the **exhermes profile create backup --clone-all```-Copies **everything** — config, API keys, personality, all memories, skills, plugins. A complete working snapshot. Per-profile history is excluded (session history, `state.db`, `backups/`, `state-snapshots/`, `checkpoints/`) — these belong to the source profile and can reach tens of GB. **Cron jobs are not cloned** either: they are scheduled work bound to the source profile and its delivery channel, and a clone that inherited them would run every job twice (two gateways, same job ids). The new profile starts with an empty `cron/`. For a full backup including history and cron jobs, use `hermes profile export` or `hermes backup` instead.+Copies **everything** — config, API keys, personality, all memories, skills, plugins. A complete working snapshot. Per-profile history is excluded (session history, `state.db`, `backups/`, `state-snapshots/`, `checkpoints/`) — these belong to the source profile and can reach tens of GB. When cloning from the default profile, the local-model runtime trees (`models/`, `runtimes/`, `node/` — downloaded weights and managed binaries, re-fetched on demand) are skipped too, as `hermes backup` already does. **Cron jobs are not cloned** either: they are scheduled work bound to the source profile and its delivery channel, and a clone that inherited them would run every job twice (two gateways, same job ids). The new profile starts with an empty `cron/`. For a full backup including history and cron jobs, use `hermes profile export` or `hermes backup` instead.:::note OAuth logins are shared, not copiedAnthropic (Claude Pro/Max), OpenAI Codex, and xAI OAuth logins use **single-use refresh tokens** — a copy of one is not a second credential, it is the same credential with two owners, and the first profile to refresh it revokes it for every other copy. `--clone-all` (and the dashboard's credential mirroring) therefore drops those OAuth rows from the clone. The new profile keeps reading the login from the root `~/.hermes/auth.json`, and a token refresh performed inside any profile is written back to root, so all profiles stay signed in. Static API keys are copied as usual. To give a profile its own separate OAuth login, run `hermes -p <name> auth add <provider>` inside it.