agentleFS
iapiap/hermes-guide/skills/diagnosing-profiles/SKILL.md

diagnosing-profiles

Skill6 starsChanged 8 days agoMITView on GitHub

Diagnose Hermes multi-profile issues — profile not found, config not isolated, profile switching failures, and clone/sync-imports problems.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Symptom: After deleting a profile, disk usage doesn't decrease, or stale config remains.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Diagnosing Profiles

Goal: reduce any profile problem to one concrete fix — a profile creation issue, a path resolution error, or a config isolation failure.

1. How to inspect

  • hermes profile list — list all profiles
  • hermes profile show <name> — show profile details
  • hermes -p <name> config path — resolve config for a specific profile
  • hermes config path — resolve default profile config
  • hermes profile create <name> — create a new profile
  • hermes profile delete <name> — delete a profile

2. Common failures

Profile not found

Symptom: hermes -p <name> fails with "profile not found" or "No such profile".

Cause: Profile directory doesn't exist under the profiles root, or profile name has a typo.

Fix:

hermes profile list                      # list available profiles
# Resolve the active home:
cfg=$(hermes config path)
echo "Active home: $(dirname "$cfg")"
ls "$(dirname "$cfg")/../profiles/" 2>/dev/null || ls ~/.hermes/profiles/  # check filesystem
# Create if missing:
hermes profile create <name>

Profile config not isolated

Symptom: Changes in one profile affect another, or config leaks between profiles.

Cause: Profile shares HERMES_HOME with default, or symlinked config directory.

Fix:

default_cfg=$(hermes config path)
profile_cfg=$(hermes -p <name> config path)
echo "Default: $default_cfg"
echo "Profile: $profile_cfg"
# They must differ:
test "$default_cfg" != "$profile_cfg" && echo "Isolated: OK" || echo "LEAK: same config path"
# Verify profile dir is real, not symlink:
ls -ld "$(dirname "$profile_cfg")"

Profile switching fails

Symptom: hermes -p <name> starts but uses wrong config or default profile.

Cause: Shell alias or wrapper script overrides -p flag, or HERMES_HOME env var set incorrectly.

Fix:

# Check env vars (names only, no values):
compgen -e | grep -i hermes
which hermes                             # check for wrapper
hermes -p <name> config path            # verify profile is used

Clone with sync-imports fails

Symptom: hermes profile create <name> --clone --sync-imports fails or doesn't carry imports.

Cause: Source profile has no import-sync.json, or plugin not installed.

Fix:

# Resolve source profile home:
src_cfg=$(hermes -p <source> config path)
ls "$(dirname "$src_cfg")/import-sync.json"  # check source has sync manifest
hermes plugins list                      # verify agent-importers installed
hermes profile create <name> --clone --sync-imports

Note: cloning copies import-sync.json from the source profile directory. It does not require the import plugin to be installed for the copy to succeed.

Profile deletion leaves orphaned data

Symptom: After deleting a profile, disk usage doesn't decrease, or stale config remains.

Cause: Profile directory not fully removed, or shared resources (venv, cache) remain.

Fix:

hermes profile delete <name>
cfg=$(hermes config path)
ls "$(dirname "$cfg")/profiles/<name>" 2>/dev/null && echo "still exists" || echo "cleaned"

Verification

hermes profile list

Pass: command exits 0 and lists at least one profile; the active profile is marked. Fail: error or empty output — confirm Hermes version supports profiles with hermes --version.

hermes -p <name> config path

Pass: prints a path that differs from hermes config path (default profile), confirming isolation. Fail: same path as default — the profile directory may be a symlink or HERMES_HOME is overriding -p; check with hermes config path.

hermes -p <name> doctor

Pass: doctor exits with no error lines for the named profile. Fail: errors present — follow the matching failure section in §2 above.

4. Related

  • diagnosing-config — config parsing issues
  • diagnosing-path — path resolution issues
  • installing-hermes — installation and profile setup

Facts re-verified 2026-11-01 against upstream source at commit 40804ce4074c561220c4a766e116e07b4873b1c3 (hermes_cli/profiles.py, hermes_constants.py). Re-verify before reuse.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.