All plugins

better-peek

The paths an answer names stop being text: /peek lists them and shows a file's lines with the one the path named marked (a plain command, so it works in the CLI, the TUI, over ssh and in the gateway), and a TUI widget browses the list with the keyboard. The repository also carries an optional patch of the TUI transcript, applied by hand with patches/apply.sh: with it, hovering a path shows a card next to the pointer with the file's lines coloured, and clicking it opens the file in the desktop's file manager (Alt-click opens the file itself). Python standard library only; no tools, no hooks, no network, no API keys. The plugin registers one command and one widget and never patches Hermes at runtime. Disclosure — the repository also ships an optional patch to Hermes' TUI source that you apply by hand with patches/apply.sh (it rebuilds the TUI and must be re-applied after Hermes updates); with it, clicking a path in the transcript opens it in your file manager, Alt-click opens the file with xdg-open, and a PEEK_OPEN command you set runs through the shell with the path.

riverosmejiaGeneralv0.3.2Updated 8 days ago

About

The paths an answer names stop being text: /peek lists them and shows a file's lines with the one the path named marked (a plain command, so it works in the CLI, the TUI, over ssh and in the gateway), and a TUI widget browses the list with the keyboard. The repository also carries an optional patch of the TUI transcript, applied by hand with patches/apply.sh: with it, hovering a path shows a card next to the pointer with the file's lines coloured, and clicking it opens the file in the desktop's file manager (Alt-click opens the file itself). Python standard library only; no tools, no hooks, no network, no API keys. The plugin registers one command and one widget and never patches Hermes at runtime. Disclosure — the repository also ships an optional patch to Hermes' TUI source that you apply by hand with patches/apply.sh (it rebuilds the TUI and must be re-applied after Hermes updates); with it, clicking a path in the transcript opens it in your file manager, Alt-click opens the file with xdg-open, and a PEEK_OPEN command you set runs through the shell with the path.

better-peek

The paths Hermes names in an answer stop being text: /peek lists them and shows the file, a widget browses them, and —with the optional patch— the pointer highlights them and a click opens the file inside the TUI.
Las rutas que Hermes nombra en una respuesta dejan de ser texto: /peek las lista y muestra el fichero, un widget las navega, y —con el parche opcional— el ratón las resalta, una tarjeta enseña sus líneas y el clic lo abre en tu explorador de archivos.

Peek: el fichero que nombra la respuesta, abierto en el TUI con la línea marcada

  El bug esta en src/app.ts:42 y en el lockfile     <- raton: tarjeta con las lineas
                                                       clic: en tu explorador de archivos

Adaptación a Hermes Agent del plugin quick-peek de
better-claude de midudev. Forma parte de la familia
better-hermes.

Qué hace

SuperficieQué daToca Hermes?
Plugin — /peekLista las rutas de la última respuesta con su tamaño y edad. /peek 2 o /peek src/app.ts:42 abre una con las líneas numeradas y la que nombra marcada. Funciona en el CLI, en el TUI, por SSH y en el gateway, sin ratón.No: es un plugin normal
Widget — /better-peekModal del TUI con la lista: flechas para elegir, Enter para ver el fichero, c para copiar ruta:línea, Esc para cerrar.No: un .mjs en tui-widgets/
Parche — opcionalLas rutas del transcript como enlaces: resaltado al pasar el ratón, tarjeta junto al puntero con las líneas coloreadas, y clic que muestra el fichero en el explorador de archivos (con el fichero seleccionado).Sí: un diff de ui-tui

El plugin y el widget se instalan y desinstalan sin rastro. El parche es lo único que modifica Hermes
por dentro, es idempotente y se revierte con git checkout -- ui-tui.

Instalar

Requisitos: Hermes Agent con el TUI construido una vez (hermes --tui) y python3. Nada más: la
lógica es Python de biblioteca estándar, sin dependencias. Probado en Hermes 2026.9.24 (Linux).

Solo el plugin (/peek), en un comando:

hermes plugins install riverosmejia/better-peek --enable

Y si quieres también el widget del TUI y los parches, desde el repo:

git clone git@github.com:riverosmejia/better-peek.git
cd better-peek
./install.sh              # copia el plugin, enlaza el widget, habilita y comprueba

install.sh acepta --check (solo comprueba) y --link (en vez de copiar, enlaza el checkout, para
desarrollar). Es idempotente.

Para el realce del ratón y la tarjeta en el transcript:

./patches/apply.sh        # aplica el diff de ui-tui y reconstruye el TUI
./patches/apply.sh --check   # solo dice si encaja con tu versión

apply.sh comprueba que el parche encaja con tu base antes de tocar nada, y si ya está aplicado no
hace nada. Tras un hermes update hay que volver a lanzarlo (el update devuelve el checkout a su
rama).

Uso

/peek                     las rutas de la última respuesta, numeradas
/peek 2                   esa, con sus líneas y la que nombra marcada
/peek src/app.ts:42       una ruta concreta, aunque no saliera en la respuesta
/better-peek              el modal del TUI (flechas, Enter, c para copiar, Esc)

Con el parche, además, el ratón. El clic sigue el orden: PEEK_OPEN si lo defines; si no, con Alt abre el fichero con su
programa y sin Alt el explorador de archivos (org.freedesktop.FileManager1; si no está, xdg-open en la carpeta), y sin
pantalla —por ssh— el fichero en el visor del TUI, que es lo único que funciona ahí. PEEK_OPEN se
ejecuta con {file} y {line} sustituidos y la ruta entrecomillada:

PEEK_OPEN='tmux new-window nano {file} +{line}' hermes --tui
PEEK_OPEN='code -g {file}:{line}' hermes --tui

El realce necesita el ratón del terminal (display.mouse_tracking en all, el valor por defecto) y
no funciona en tmux con el modo wheel, que existe justamente para que el ratón no ensucie el prompt.
Sin él, /peek y el widget siguen funcionando (el clic es lo único que necesita el parche).

Qué NO hace

  • No abre ventanas ni aplicaciones gráficas: todo se dibuja en el terminal.
  • No toca ficheros: lee lo que el modelo nombró, si existe.
  • No enseña secretos. Un fichero con credenciales se rechaza antes de abrirlo — los mismos que
    el lector de ficheros de Hermes: .env* (salvo .env.example), auth.json, mcp-tokens/,
    vault/, browser-profile/, .netrc, .npmrc, .ssh/, .aws/, ~/.config/gh/hosts.yml; por
    ruta real, así un symlink con nombre inocente no la esquiva. Y todo lo que sale pasa por
    agent.redact.redact_sensitive_text(force=True).
  • No lee la conversación de otra persona. Sin session_id (un chat de gateway nuevo) responde
    que no hay respuesta todavía; no cae al último mensaje de la base.
  • En el gateway solo acepta el número de la lista, nunca una ruta libre: ahí la respuesta vuelve
    a un chat y cualquiera de la lista blanca podría pedir cualquier fichero.
  • Un file:// escrito por el modelo no dispara nada: los enlaces de ruta usan un esquema propio
    (hermes-peek://) que solo fabrica el renderer, y la ruta tiene que existir en esta máquina.
  • Una ruta relativa se resuelve desde la carpeta de la sesión, o la del proceso si la sesión no la
    tiene.

Origen y licencia

Port de quick-peek de better-claude de midudev: las
reglas para encontrar rutas en un texto, resolverlas y sacar las líneas de un fichero vienen de su
hooks/paths.ts y hooks/code.ts, y sus casos de test son el contrato de este port.

MIT © Miguel Ángel Durán (midudev) y riverosmejia. Ver LICENSE.

README from the reviewed commit 7d0b6f7; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section