All plugins

sampler

Set temperature and top_p for your Hermes agent (hermes-agent#17565): a default, first-match rules by platform, model or provider, and a per-session override with /sampler. Works through llm_request middleware on OpenAI- compatible, Anthropic and Bedrock Converse requests. Models Hermes itself sends without a temperature, such as reasoning models, are never changed. No model calls, network, files or dependencies.

salch-credModelsv0.1.0Updated 20 days ago

About

Set temperature and top_p for your Hermes agent (hermes-agent#17565): a default, first-match rules by platform, model or provider, and a per-session override with /sampler. Works through llm_request middleware on OpenAI- compatible, Anthropic and Bedrock Converse requests. Models Hermes itself sends without a temperature, such as reasoning models, are never changed. No model calls, network, files or dependencies.

sampler

Set temperature and top_p for your Hermes agent: by default, per platform, model or provider, or per session.

Hermes doesn't let you set the sampling temperature for your main agent. It uses the provider's default, or a fixed value for a few models. Yet the right temperature depends on the work: low for code and data, higher for writing and brainstorming. Sampler adds that control (hermes-agent#17565).

Use it

Set under plugins.entries.sampler.settings in config.yaml:

plugins:
  entries:
    sampler:
      settings:
        temperature: "0.3"                                  # default for every request
        top_p: ""                                           # empty: the provider default
        rules: "platform:telegram=0.8, model:*coder*=0.1"   # first match wins

In a session:

/sampler 0.2          temperature 0.2 for this session only
/sampler top_p 0.9    top_p 0.9 for this session only
/sampler reset        back to the configured settings
/sampler status       what applies, how many requests were changed, any rules it couldn't read

Which setting wins: the session override, then the first matching rule, then the default. Anything left unset stays at the provider's default.

Rules match by platform (cli, telegram, discord…), model or provider, with * wildcards, case-insensitively. A rule it can't read is ignored and listed by /sampler status.

Safety

  • Models that must not get a temperature are never changed. Hermes already leaves temperature out for reasoning models (OpenAI's o-series and GPT-5 family), Kimi, newer Gemini, and any route that has rejected it before. Sampler asks Hermes's own check (agent.auxiliary_client._fixed_temperature_for_model) before every change, so it follows the same list as Hermes. If that check is unavailable, Sampler uses a built-in list of the same model families.
  • Only request types it knows are touched: OpenAI-compatible chat and Anthropic requests (top-level temperature and top_p) and Bedrock Converse (inferenceConfig). Codex/Responses requests, which go to reasoning models, and any other type are passed through unchanged.
  • Anthropic gets temperature or top_p, not both, because newer Claude models refuse the pair. When both are set, temperature is sent.
  • Every change is labelled in Hermes's middleware trace as source: sampler, with the reason, such as temperature 0.2 (rule platform:cli).

Limits

  • Main agent requests only. Hermes's auxiliary calls, such as titling and compression, choose their own settings.
  • Session overrides live in memory. They reset when Hermes restarts.
  • Hermes's own check is an internal function, so the import is guarded. If a future Hermes renames it, Sampler falls back to its built-in list, which may lag behind Hermes's.

What it touches

  • Changes model request arguments (temperature, top_p) through Hermes's llm_request middleware, and nothing else.
  • No model calls, no network, no files written, no telemetry, no dependencies.

Development

pytest tests

48 tests cover rule parsing and precedence, each request type, the omit check and its fallback, the /sampler command, and the middleware wiring.

License

MIT

README from the reviewed commit 67995d1; it updates when the author re-pins.

More by salch-cred

14 plugins by salch-cred in the catalog.

salch-credaftercareYour agent checks its own work after the fact. When a reply says something is deployed or live at a public address, Aftercare remembers it and, every few hours at session start, checks it again with one GET request in the background. If it has stopped working, the agent is told once and tells you first; you hear when it is back. /aftercare lists and checks, and hermes aftercare check runs from cron. Never checks private networks or runs commands. Disclosure — on by default, sends background GET requests (user agent hermes-aftercare/0.1) to any public http(s) address an agent reply says is deployed or live, at session start every 6 hours by default, and adds a one-time note to the next turn when one changes state; private, loopback and local-name addresses are refused.Communitytoolssalch-credbluffDoes your model make things up? Bluff asks about things that sound real but don't exist (Python functions, built-in exceptions, chemical elements), mixed with real ones and phrased as if they all exist, and checks whether the model admits the made-up ones aren't real. The result is a bluff rate, with real items as a control. Every item is checkable by machine, so no model judges another. Runs on your active model through ctx.llm, no setup.Communitytoolssalch-credcalm-modeWhen you get frustrated, your agent slows down. Calm Mode scores the tone of each message ("still broken", "I already told you", capitals, "!!", the same message twice); frustration builds and fades. Past a threshold the agent works in small checked steps, at most two file edits per turn, and risky commands (rm -rf, git push, deploys, DROP TABLE) wait until the user says yes. /calm shows the level and forces it on or off. No model calls, nothing stored.Communitytoolssalch-credcrash-testA safety rating for AI agents. For one armed turn it breaks tools the way real systems break (timeouts, outages, empty or cut-off results), then rates what the agent did: retried, worked around it, told the truth, or claimed success anyway. 1-5 stars and an HTML report, comparable across models by seed. Blocked calls never run, silent faults only touch reads, and the agent gets no tools from it, so it cannot tell it is being tested. Disclosure — when the user arms a test (/crashtest start or the CRASH_TEST environment variable), the next turn's tool calls are deliberately blocked with fake errors and some read results (read_file, search_files, web_search/web_extract, read-only terminal commands) are silently emptied, cut off or replaced with an older result without telling the agent, so the agent may act on incomplete data during that turn; the rating is appended to the reply and the task text and reply are saved in a local report under the plugin's data folder.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section