leonardo@fedora:~/Documents/screepipe$ hermes update
⚕ Updating Hermes Agent...
→ Fetching updates...
→ Local changes detected — stashing before update...
Saved working directory and index state On main: hermes-update-autostash-20260428-222206
⚠ Local changes were stashed before updating.
Restoring them may reapply local customizations onto the updated codebase.
Review the result afterward if Hermes behaves unexpectedly.
Restore local changes now? [Y/n]
Y
→ Restoring local changes...
⚠ Local changes were restored on top of the updated codebase.
Review `git diff` / `git status` if Hermes behaves unexpectedly.
✓ Already up to date!
leonardo@fedora:~/Documents/screepipe$ hermes
Traceback (most recent call last):
File "/home/leonardo/.local/bin/hermes", line 10, in <module>
sys.exit(main())
^^^^^^
File "/home/leonardo/.hermes/hermes-agent/hermes_cli/main.py", line 10285, in main
cmd_chat(args)
File "/home/leonardo/.hermes/hermes-agent/hermes_cli/main.py", line 1276, in cmd_chat
from cli import main as cli_main
File "/home/leonardo/.hermes/hermes-agent/cli.py", line 653, in <module>
CLI_CONFIG = load_cli_config()
^^^^^^^^^^^^^^^^^
File "/home/leonardo/.hermes/hermes-agent/cli.py", line 538, in load_cli_config
terminal_config["cwd"] = os.getcwd()
^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory
#Hermes command broken after update
1 messages · Page 1 of 1 (latest)
This traceback usually means the shell you are running hermes from is sitting inside a directory that no longer exists.
The failing line is os.getcwd(), and Python only raises:
FileNotFoundError: [Errno 2] No such file or directory
there when the current working directory has been deleted, moved, or the mount/path disappeared underneath the shell.
Try this first:
cd ~
hermes
or open a fresh terminal and run hermes from there.
If that works, the install is probably fine. Then check the directory you were in:
ls -ld ~/Documents/screepipe
If that path was removed or recreated while your shell was still inside the old inode, the prompt can still look like you are in ~/Documents/screepipe, but processes launched from there cannot resolve the current directory anymore.
If cd ~ && hermes still crashes, then please run:
cd ~/.hermes/hermes-agent
git status --short
hermes debug share
and send the output/log links. Since the updater restored a stash, it is also worth checking whether local changes were reapplied onto the updated codebase.
Oh yeah, that’s right! Thanks for the help. Would be great to see a warning for this in the next update 🫡