From 86ef6555e068663736a33376e4055aca9c1acc89 Mon Sep 17 00:00:00 2001 From: Dustin Hacker Date: Tue, 22 Sep 2026 03:32:52 -0600 Subject: [PATCH] feat(hermes): add hermes plugin (#14111) Co-authored-by: Robby Russell --- .github/CODEOWNERS | 1 + plugins/hermes/README.md | 28 ++++++++++++++++++++++++++++ plugins/hermes/hermes.plugin.zsh | 15 +++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 plugins/hermes/README.md create mode 100644 plugins/hermes/hermes.plugin.zsh diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 17e8b43cb..617241043 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -5,6 +5,7 @@ plugins/eza/ @pepoluan plugins/genpass/ @atoponce plugins/git-lfs/ @hellovietduc plugins/gitfast/ @felipec +plugins/hermes/ @Uhm-why plugins/kube-ps1/ @mcornella plugins/kubectl/ @mcornella plugins/kubectx/ @mcornella diff --git a/plugins/hermes/README.md b/plugins/hermes/README.md new file mode 100644 index 000000000..96d402995 --- /dev/null +++ b/plugins/hermes/README.md @@ -0,0 +1,28 @@ +# hermes plugin + +This plugin adds completions for the Hermes AI agent. + +To use it, add `hermes` to the plugin array in your zshrc file: + +```zsh +plugins=(... hermes) +``` + +## Usage + +```zsh +hermes +``` + +## Common Workflows + +```zsh +# First time setup/updating overall config +hermes setup + +# Starting the tui chat +hermes + +# Changing default model +hermes model +``` diff --git a/plugins/hermes/hermes.plugin.zsh b/plugins/hermes/hermes.plugin.zsh new file mode 100644 index 000000000..437c1211a --- /dev/null +++ b/plugins/hermes/hermes.plugin.zsh @@ -0,0 +1,15 @@ +if (( ! $+commands[hermes] )); then + return +fi + +if [[ ! -f "$ZSH_CACHE_DIR/completions/_hermes" ]]; then + typeset -g -A _comps + autoload -Uz _hermes + _comps[hermes]=_hermes +fi + +zmodload -F zsh/files b:zf_mv +() { + local TMPPREFIX="$ZSH_CACHE_DIR/completions/_hermes" + zf_mv -f -- =( hermes completion zsh < /dev/null 2> /dev/null ) "$TMPPREFIX" +} &|