Skip to content

fix(cli): use angle brackets for config set placeholders#1027

Closed
nil957 wants to merge 1 commit intoNousResearch:mainfrom
nil957:fix/config-placeholder-safety
Closed

fix(cli): use angle brackets for config set placeholders#1027
nil957 wants to merge 1 commit intoNousResearch:mainfrom
nil957:fix/config-placeholder-safety

Conversation

@nil957
Copy link

@nil957 nil957 commented Mar 12, 2026

Problem

The setup completion screen displays:

hermes config set KEY VALUE

Because KEY and VALUE look like valid literals, users who copy-paste this line end up with KEY: VALUE written to their ~/.hermes/config.yaml.

Solution

Changed to angle bracket convention:

hermes config set <key> <value>

This follows common CLI documentation patterns and clearly indicates these are placeholders.

Changes

  • hermes_cli/config.py: Updated 4 occurrences
  • hermes_cli/setup.py: Updated 1 occurrence

Fixes #926

The setup completion screen displayed 'hermes config set KEY VALUE' which
looked like a valid command. Users who copy-pasted it ended up with
'KEY: VALUE' literally written to their config file.

Changed to 'hermes config set <key> <value>' to clearly indicate these
are placeholders, following common CLI documentation conventions.

Fixes NousResearch#926
@teknium1
Copy link
Contributor

Thanks for the fix. This is redundant on current main now: the placeholder-syntax change already landed via PR #1322, which also completed the remaining config help text updates and added regression coverage around the setup summary and config command output. There isn’t unique remaining behavior here to salvage, so I’m closing this duplicate with credit for the same UX direction.

@teknium1 teknium1 closed this Mar 14, 2026
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.

Setup completion screen: 'hermes config set KEY VALUE' example is copy-paste unsafe

2 participants