Research: Hermes CLI profile-create semantics #43
Notifications
Due Date
No due date set.
Blocks
#44 Grilling: museion-tools profile-config seam at M0
AlexKucera/museion
Reference: AlexKucera/museion#43
Reference in new issue
Block a user
Part of #13
Question
What are the exact semantics of profile creation in the installed Hermes CLI? Facts to capture, verified against the real binary (and the docs at https://hermes-agent.nousresearch.com/docs):
hermes profile create museion? something else?) — and whether it prompts interactively (it must be safe non-interactively)hermes acp -p museionruns against itMethod: run
hermes profile --helpand subcommand help on the installed binary; probe with a throwaway profile name; cite command transcripts, not conclusions.[Generated by AI]
Research complete — every fact below verified against the installed binary with stdin closed (
</dev/null). Throwaway profileswf-research-probe/probe2used for probing, both deleted afterwards (~/.hermes/profiles/back tomuseion/only).Binary:
/Users/alex/.local/bin/hermes—Hermes Agent v0.20.6 (2026.8.27) · upstream 562ee8ab · local 493e88da (+3 carried commits);hermes acp --version→0.20.6(exit 0).1. Command & non-interactive safety
No prompts, no TTY needed —
hermes profile create museionis exactly right. Flags (fromhermes profile create --help):--no-alias(skip the~/.local/bin/<name>wrapper — Museion should pass this, it doesn't want amuseionshell command),--no-skills(empty skills dir +.no-bundled-skillsmarker, opts out ofhermes updateskill sync — relevant since Museion seeds its own curated set additively),--description,--clone/--clone-all/--clone-from.2. Idempotency (profile already exists)
stderr is EMPTY — error text goes to stdout. Nothing clobbered: md5 of
config.yamlandstate.dbidentical before/after. So "create if missing" = run create; exit 1 +already existson stdout = treat as success.3. Exit codes / error channel
Error: …on stdout, stderr empty.Error: Invalid profile name 'bad_name!'. Must match [a-z0-9][a-z0-9_-]{0,63}(name is lowercased before validation —Bad_Name!reported asbad_name!).Error: Source profile 'nope' does not exist at /Users/alex/.hermes/profiles/nope.4. Created profile contents (
~/.hermes/profiles/<name>/)config.yaml— YAML, 2 KB,_config_version: 39;model:block copied from the active root profile (same provider/model/base_url — hereglm-5.3 / zai),plugins: {enabled: []},agent: {}, remainder commented defaults..env— comments only, no keys (165 B).SOUL.md— default 513 B persona.state.db(+-wal/-shm) — SQLite session store (sessions,messages+ FTS tables,gateway_*,schema_version).skills/— 82 bundled skills synced +.bundled_manifest(lines ofname:md5). With--no-skills: only theautonomous-ai-agents/category ships + a.no-bundled-skillsmarker.audio_cache, cache, cron, home, hooks, image_cache, logs, memories, pairing, plans, sessions, skins, workspace.~/.local/bin/<name>(71 B →hermes -p <name>) unless--no-alias.5. Is a fresh profile ACP-ready?
hermes acp -p wf-research-probe --check→Hermes ACP check OK, exit 0.initializeover stdio → proper ACP response (agentInfo: hermes-agent 0.20.6,protocolVersion: 1, authMethods incl. terminalhermes-setup). Nothing else needed to boot ACP..envhas no keys; model calls fall back to shell-env keys (create output warns about this). Museion must ensure provider credentials exist in the profile (or root~/.hermes/.env) before real turns.ValueError: Pipe transport is only for pipes, sockets and character devices(acp stdio transport). OrdinaryProcesspipes are fine.6. Version sensitivity
Docs (https://hermes-agent.nousresearch.com/docs/user-guide/profiles) match the binary exactly for
profile create NAME [--clone|--clone-all|--clone-from|--no-alias|--no-skills|--description]; the binary additionally shipsdescribe/install/update/infosubcommands (superset, no contradiction). Installed 0.20.6 reports an update available; the error-on-stdout channel and exit-1 already-exists behavior are implementation details worth pinning in Museion's tests and re-checking after anyhermes updatebump.[Generated by AI]
Follow-up (charting session): the 82 engine-bundled skills live under category subdirectories (apple/, creative/, research/, software-development/… — flat-name categories), while Museion's 11 payload skills are flat at the skills/ root. Name collision between payload and engine-bundled skills is therefore impossible by layout; additive-only seeding is safe as specced.
[Generated by AI]