Skip to content

The agent that grows with you

fix(profiles): clone plugins/ when cloning a profile

CortonKwok983bc7528c59
diff --git a/hermes_cli/profiles.py b/hermes_cli/profiles.py
index 8ee6d18850e..e9fc380b29d 100644
--- a/hermes_cli/profiles.py
+++ b/hermes_cli/profiles.py
@@ -1284,6 +1284,11 @@ def _bootstrap_profile_dir(profile_dir: Path, source_dir: Optional[Path],
_copytree_keep_junctions(source_skills, profile_dir / "skills", _non_exportable_entries, dirs_exist_ok=True)
for relpath in _CLONE_SUBDIR_FILES:
_clone_file(source_dir, profile_dir, relpath)
+ # Clone plugins from the source profile
+ source_plugins = source_dir / "plugins"
+ if source_plugins.is_dir():
+ shutil.copytree(source_plugins, profile_dir / "plugins",
+ symlinks=True, dirs_exist_ok=True)
from hermes_cli.profile_memory_config import active_memory_provider, clone_memory_provider_config
clone_memory_provider_config(source_dir, profile_dir,
active_memory_provider(_load_yaml_dict(source_dir / "config.yaml")))