All plugins

repeat-pause

When an agent-backed cron job sends the same result several runs in a row (default 3), appends one notice to that run saying further identical results will be held, then holds later identical results until the output changes. Comparison ignores case, whitespace and, by default, numbers, dates and times. A changed result is delivered normally and starts a new streak. The job keeps running; the plugin never pauses, edits or removes it. A run with an observed tool error is never held. /repeats lists and resets streaks. Roadmap item 5 in #158538. Disclosure — a transform_llm_output hook appends the notice and rewrites held cron replies to [SILENT], which Hermes does not deliver; interactive and gateway chat replies are never changed; writes <HERMES_HOME>/repeat-pause/streaks.json and a .lock file (or the state_dir setting; 0700 dir, 0600 file) holding job ids, SHA-256 fingerprints of normalized replies and counts, never reply text; uses one in-process storage thread; makes no network calls, runs no subprocesses, stores no credentials and sends no telemetry.

percyhendrux123-progAutomationv0.1.0Updated 8 days ago

About

When an agent-backed cron job sends the same result several runs in a row (default 3), appends one notice to that run saying further identical results will be held, then holds later identical results until the output changes. Comparison ignores case, whitespace and, by default, numbers, dates and times. A changed result is delivered normally and starts a new streak. The job keeps running; the plugin never pauses, edits or removes it. A run with an observed tool error is never held. /repeats lists and resets streaks. Roadmap item 5 in #158538. Disclosure — a transform_llm_output hook appends the notice and rewrites held cron replies to [SILENT], which Hermes does not deliver; interactive and gateway chat replies are never changed; writes <HERMES_HOME>/repeat-pause/streaks.json and a .lock file (or the state_dir setting; 0700 dir, 0600 file) holding job ids, SHA-256 fingerprints of normalized replies and counts, never reply text; uses one in-process storage thread; makes no network calls, runs no subprocesses, stores no credentials and sends no telemetry.

repeat-pause for Hermes Agent

What it does

When an agent-backed cron job produces the same result three runs in a row, repeat-pause appends one notice to the third result. Later matches request Hermes's [SILENT] delivery behavior. When the result changes, it goes through normally and a new streak starts. The job keeps running. The plugin never pauses, edits, or removes it. The default notice shows the hermes cron pause <job_id> command for an operator who wants to stop the schedule.

Comparison lowercases text and collapses whitespace. By default it also ignores ISO calendar dates and timestamps, clock times, and standalone numbers. That groups reports such as 12 new items at 09:00 and 14 new items at 10:00. Set ignore_numbers: false if the numbers or timestamps are the point of the report.

  • /repeats shows job IDs with streaks of at least two, the streak length, the cumulative held count, and the last-seen time (UTC).
  • /repeats reset <job_id> clears that job's repeat state without changing its schedule. No model-facing tools are registered. Use the command on sessions whose users should be able to view job IDs and clear counters; the plugin adds no authorization beyond Hermes's command routing.

It implements item 5 of the Hermes proactivity roadmap (NousResearch/hermes-agent#158538): same output N runs in a row, one message, then stop repeating.

Disclosures

  • Changes delivery: a transform_llm_output hook appends the notice once per streak and rewrites later identical cron replies to [SILENT], which Hermes does not deliver. Interactive and gateway chat replies are never changed.
  • Writes: <HERMES_HOME>/repeat-pause/streaks.json and its .lock (or state_dir), fingerprints and counts only, as described below.
  • Background work: one in-process storage thread per registration, no backlog. No other processes.
  • None of: network calls, subprocesses, model calls, credentials, telemetry, self-update, changes to cron jobs.

How it was made

I designed it and set the behavior. AI agents wrote the code and tests to my spec, under my review, with independent code review rounds and a live smoke test against Hermes's real cron runtime (cron.scheduler.run_job, mock model, throwaway Hermes home) before release.

What it stores

<state_dir>/streaks.json records the job ID, the SHA-256 fingerprint of the normalized reply, streak length, whether a notice was requested, the held count, the last-seen timestamp, and whether the end hook confirmed the run. It stores no reply text, prompts, or tool data. A fingerprint is a comparison key, not a guarantee of anonymity for easy-to-guess text. The plugin does not control what Hermes itself stores in transcripts or run output.

The state directory is private (0700), state writes are atomic with a unique temporary file (0600), and a separate .lock file serializes writers without waiting. Use a dedicated directory, not a symlink or shared directory. The plugin refuses symlinked state files, corrupt state, and lock contention and leaves the response unchanged. Expired rows are ignored and pruned on state updates; at most 2,000 jobs are kept, evicting the oldest when needed. Held counts track this plugin's rewrite decisions, not delivery acknowledgments.

Cron callbacks run storage work on a separate thread with no backlog. If that worker is busy or the result isn't ready in 40 ms, the transform leaves the reply alone. An admitted state update can still finish in the background after the callback returns. If an observation or reset can't be saved, the affected job and profile stop using the old streak for notices and holds. The next successful report starts a fresh streak unless a reset has already cleared the old one. This safeguard is in memory; a restart or a different worker process cannot see an update that never reached disk.

Ordinary replies advance the streak only after the end hook confirms a successful turn. Only a match to that confirmed reply body can be held; a held match does not change the reference. Older, unconfirmed records do not establish a streak.

Settings

All settings are optional under plugins.entries.repeat-pause.settings in config.yaml. The corresponding REPEAT_PAUSE_<KEY> environment variable takes precedence (for example, REPEAT_PAUSE_THRESHOLD).

SettingDefaultEffect
threshold3Matching runs before the notice; values below 2 are treated as 2.
hold_repeatstrueIf false, keep delivering after the notice. Pair it with a custom notice that doesn't say later replies will be held.
ignore_numberstrueIgnore standalone numbers and dates/times when comparing. If false, only case and whitespace are normalized.
noticeSee belowText appended once per streak. {n} is the streak length; {job_id} is the job ID.
state_dir<HERMES_HOME>/repeat-pauseState location for the active profile. Relative paths are relative to its Hermes home; the parent must already exist. Give each profile a separate path if overriding the default.
forget_days30Ignore rows last seen more than this many days ago. Nonnegative integer.

Default notice:

This job has sent the same result {n} runs in a row. Further identical results will be held until something changes. To end it, pause the job: hermes cron pause {job_id}

If you change the comparison rules or threshold, use /repeats reset <job_id> to apply the new settings from the start of that job's next streak.

Install and test

The manifest declares Hermes Agent >=0.22.5 on macOS and Linux. On a Hermes host, copy plugin.yaml, __init__.py, and core.py to <HERMES_HOME>/plugins/repeat-pause/, then enable it in the intended profile with hermes plugins enable repeat-pause. For rollback, disable it with hermes plugins disable repeat-pause; there is no job change to undo. No third-party Python dependencies are needed.

From a source checkout:

python3 -m unittest discover -s tests

The tests exercise the registered callbacks with a fixture Hermes context and real files and locks; no Hermes installation or network is needed.

Not covered

  • Script-mode no_agent jobs and pre-agent skips (including monitor-gate unchanged ticks) have no agent turn for the plugin to see.
  • Interactive sessions, gateway chat, subagents, and runs with no derivable job ID are ignored.
  • Already-silent responses neither reset nor advance the streak. The plugin uses Hermes's cron silence matcher when available and a local fallback otherwise. An empty response or a standalone [CRON_FAILURE] line invalidates the streak without replacing the response; the saved streak is reset when storage is available. Runtime failures can reset it when the session end hook reports them; failures outside that hook are not observable.
  • An observed tool error, including a failed write_file or patch, leaves the response unchanged so Hermes's later failed-write advisory stays visible. It invalidates the streak immediately and resets the saved streak when storage is available. If an agent run fails without an observed tool error (for example, an interruption or an iteration limit) and its reply still matches the previous successful report, the early transform may hold it before it learns the outcome. An outcome field available at transform time would close that gap.
  • The end hook confirms turn completion before delivery, not receipt by the recipient. It cannot see scheduler-only advisories, such as a provider-switch notice the scheduler omits on silent runs.
  • This changes the final response, not streaming or other side effects of a run. Other output-transform plugins may win (Hermes uses the first nonempty rewrite). A notice being requested is not proof it reached a recipient, and there is no “resumed” notice.

License

MIT.

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

More by percyhendrux123-prog

13 plugins by percyhendrux123-prog in the catalog.

percyhendrux123-progtripwireLogs every refused agent action (a tool blocked by a guardrail or plugin, or a dangerous command denied, cancelled or timed out at approval) as one JSON line, so a no-agent cron script can send the owner one short alert. Observer only, fails open. Disclosure — appends one JSON line per refused action to ~/.hermes/tripwire/events.jsonl (owner-only 0700 dir / 0600 file), shared by all profiles (path overridable with TRIPWIRE_EVENTS): timestamp, event kind, and identifier-shaped profile, tool and rejection category or approval choice only. No message or rule snippets, arguments, commands, results, session ids or message text are stored; non-identifier values are recorded as unknown. A pre_tool_call hook reads ~/.hermes/tripwire/TEST_BLOCK and, only while that file exists, blocks the single tool it names for the single profile it names (a drill switch to prove the alarm). No network calls, no shell commands, no background processes, no stored credentials, no telemetry.Communitytools1percyhendrux123-progchironAn advisor who is also a friend. Chiron reads how much you know about the topic in front of you (setup, AI, code, business, general) from your own words, with no model call, and adds one short note per turn telling the agent how to talk to you: beginner (plain words, one step at a time, better options offered), medium, pro or maximum (terse, tradeoffs first). Levels are per topic and move one step at a time; a strong first message is read directly; your own word ("I'm a developer", "just do it", /chiron level code pro) pins a topic. At every level the note keeps a floor: before spending, sending, publishing, deleting or touching credentials, the agent says exactly what will happen and waits for a clear yes. Off in each session until /chiron on (or always_on). The system prompt never changes, so prompt caching keeps working. Live evals in the repo: with a real 40-row client file in reach, Chiron-on sessions asked before deleting it in 6 of 6 runs; plugin-off sessions wiped it on request in 3 of 3. Disclosure — pre_llm_call reads only the current user message and returns a short context note; it stores per-session topic levels and the on/off flag in one JSON file under its plugin data directory (last 200 sessions), with a sidecar lock file and short-lived temp files in the same directory; no network calls, no model calls, no shell or subprocess, no credentials, no telemetry."Communitygeneralpercyhendrux123-progfront-deskFront Desk for Hermes: escalations from your agents (a blocked or failed Kanban card, a scheduled job error, a message from a person you named, or a front_desk_escalate call) reach the orchestrator's live session first, and the orchestrator handles them or tells you. Your settings decide where and when you hear: the chat you're in when you're at the computer, your phone chat when you're away and it's urgent, otherwise a morning brief. A check every few hours runs standing watches you write in plain words and stays silent unless one is breached. Edit settings with /notify, including corrections with a reason. Money and approval sends are locked floors that always reach you. It never messages anyone but you and approves nothing. Disclosure — observer hooks on Kanban block and complete events, dispatcher ticks, turns (pre_llm_call adds pending escalations to the orchestrator's next turn) and inbound gateway messages, which it sees before gateway authorization and never skips or rewrites (a sender is matched by display name or id against the people you listed); writes desk.db (escalation titles, short details, decisions, timestamps, daily alert counts, and for senders you named under people only that name and the chat id, never message text) and settings.yaml plus settings.yaml.bak to <HERMES_HOME>/plugin-data/front-desk/ (or the settings_path setting); creates one unassigned Kanban card per watch and a comment per breach only for watches you mark card: true, through the undocumented hermes_cli.kanban_db and hermes_cli.kanban_db_connect modules, failing open; reads kanban.db, <HERMES_HOME>/cron/jobs.json and state.db (newest local user-message timestamp only) read-only; sends only with ctx.inject_message as a user-role notice, to the orchestrator's live session or the phone chat you configured; runs one short-lived in-process daemon thread per poll pass, never more than one at a time; makes no network calls, runs no subprocesses or Hermes child sessions, stores no credentials, approves nothing, edits no Hermes config and sends no telemetry.Communityautomationpercyhendrux123-proghandsoff-handoffKeeps long computer_use work going across sessions. Requires the HandyDandy plugin in handoff mode: HandyDandy decides when a session is too long and has the agent write a handoff; while the agent is driving the computer (a computer_use call in the last 30 minutes), this plugin also asks for an Outcome line, open checkboxes and a Next action in that handoff. When the handoff says the work is not delivered, the Desktop app opens a new chat with its own New chat action and sends a seed prompt pointing at the handoff, as if you had typed it, up to 2 automatic continues per task. Desktop is the only surface that continues on its own; on the CLI, TUI and messaging chats it posts one line saying where the handoff is. Saying "no auto handoff" turns it off for the chat. Disclosure — observer hooks post_tool_call, pre_llm_call and post_llm_call; reads HandyDandy's plugin-data/handydandy/state.json and the handoff file it points to, read-only; writes state.json, state.lock and events.log (session ids, decisions and handoff paths, never handoff contents), plus test-handoffs/ in test mode, only under <HERMES_HOME>/plugin-data/handsoff-handoff/; dashboard routes GET /pending, POST /claim and POST /result behind the dashboard auth gate touch only that state; with auto_continue on (the default) the Desktop half runs ctx.runAction('session.new') and host.composer.submit once per claimed continuation, sending a seed prompt you did not type that tells the new chat to continue from the handoff, so the new chat asks for approvals exactly where a chat you open by hand would; posts one line with ctx.post_message in the session that wrote the handoff; uses hermes_constants, plugins.plugin_storage and hermes_cli.plugin_events, each failing open; makes no network calls, runs no subprocesses, shell commands or Hermes child sessions, starts no background services, stores no credentials, approves nothing and sends no telemetry.Communityautomation

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section