Back to AI Q&A
What should I do if the Hermes Agent Tab completion does not take effect?

What should I do if the Hermes Agent Tab completion does not take effect?

AI Q&A Admin 44 views

Hermes Agent's Tab completion doesn't work, usually because the completion script isn't written to the current shell configuration, or it's written to bash but you're actually using zsh. The official CLI reference provides hermes completion bash|zsh that requires you to load the output into the corresponding configuration file.

First, confirm what shell you are using

Perform echo $SHELL. If the result is zsh, don't write the completion into ~/.bashrc; If it's bash, don't just change it to ~/.zshrc. The root cause of many problems that completion does not take effect is to correct the wrong document.

Recommended actions

  • Bash: hermes completion bash >> ~/.bashrc, then source ~/.bashrc.
  • Zsh: hermes completion zsh >> ~/.zshrc, then source ~/.zshrc.
  • If you use multiple profiles, it is easier to complete the profile name, subcommands, and parameters after completion.

If it still doesn't work, open a new terminal and try again. Completion is a shell layer capability, not a Hermes session capability; Restarting Hermes itself does not cause the shell to re-read the configuration.

Recommended Tools

More