Skip to content

fix: honor HERMES_CONFIG/HERMES_HOME for multi-profile setups - #72

Open
MasterCATZ wants to merge 1 commit into
AMAP-ML:mainfrom
MasterCATZ:fix/hermes-multi-profile-config
Open

fix: honor HERMES_CONFIG/HERMES_HOME for multi-profile setups#72
MasterCATZ wants to merge 1 commit into
AMAP-ML:mainfrom
MasterCATZ:fix/hermes-multi-profile-config

Conversation

@MasterCATZ

Copy link
Copy Markdown

Problem

SkillClaw hardcodes ~/.hermes/config.yaml and auto-edits it on startup. In multi-profile Hermes setups, this mutates the wrong config and breaks the intended routing.

Fix

  • Add _get_hermes_config_path() and _get_hermes_skills_dir() helpers in claw_adapter.py
  • These honor HERMES_CONFIG and HERMES_HOME before falling back to ~/.hermes
  • Updated _configure_hermes, inspect_hermes_config, and restore_hermes_config to use the new resolvers

Verified

SkillClaw hardcoded ~/.hermes/config.yaml and auto-edited the wrong
profile in multi-Hermes-home environments. Add env-aware resolvers for
config path and skills dir, and use them in configure/inspect/restore.
@MasterCATZ

MasterCATZ commented Aug 8, 2026

Copy link
Copy Markdown
Author

Note: this patch was AI-generated using Hermes Agent.
#71

@Upper9527

Copy link
Copy Markdown
Collaborator

The path-selection fix is useful and the test suite stays at the current main baseline, but skillclaw/claw_adapter.py does not pass the repository's Ruff formatting gate:

uvx ruff@0.12.2 format --check skillclaw/claw_adapter.py
# Would reformat: skillclaw/claw_adapter.py

Please format the file and update the branch. Note that this PR addresses the wrong-profile target from #71, but not the separate consent/config-import concerns in that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants