All plugins

hermes-declines

Remembers when you decline a proposed scheduled job and vetoes the model's cronjob_manage create or update call when it brings the same job back (same delivery target, prompt matching after dates, times and numbers are stripped), with a message telling the model not to propose it again. Also vetoes near-duplicates of an existing active or paused job, pointing the model to update or resume it. Declines expire after expire_days; /declines list, forget and clear manage them. Companion to #158289's schedule cards. Disclosure — a pre_tool_call hook that vetoes matching cronjob_manage create/update calls; writes decline records (normalized prompt text, which can contain private details, a SHA-256 of the raw prompt, delivery target, schedule kind, time, session key and surface) to <HERMES_HOME>/plugins-state/hermes-declines/ (or the state_dir setting; 0700 dir, 0600 files) through an in-process daemon writer thread; reads the profile's <HERMES_HOME>/cron/jobs.json read-only for the duplicate check; makes no network calls, runs no subprocesses and stores no credentials.

percyhendrux123-progAutomationv0.1.0Updated 8 days ago

About

Remembers when you decline a proposed scheduled job and vetoes the model's cronjob_manage create or update call when it brings the same job back (same delivery target, prompt matching after dates, times and numbers are stripped), with a message telling the model not to propose it again. Also vetoes near-duplicates of an existing active or paused job, pointing the model to update or resume it. Declines expire after expire_days; /declines list, forget and clear manage them. Companion to #158289's schedule cards. Disclosure — a pre_tool_call hook that vetoes matching cronjob_manage create/update calls; writes decline records (normalized prompt text, which can contain private details, a SHA-256 of the raw prompt, delivery target, schedule kind, time, session key and surface) to <HERMES_HOME>/plugins-state/hermes-declines/ (or the state_dir setting; 0700 dir, 0600 files) through an in-process daemon writer thread; reads the profile's <HERMES_HOME>/cron/jobs.json read-only for the duplicate check; makes no network calls, runs no subprocesses and stores no credentials.

hermes-declines

A "no" to a scheduled job should be a record that code checks, not something the model is trusted to remember.

Hermes Agent lets the model propose scheduled jobs through cronjob_manage, and upstream PR #158289 puts each proposal on a "Schedule this job?" card. If you say no, the only memory of it is in the conversation, so the same job tends to come back next week under a new name or date. This plugin writes your "no" down and checks it before the next proposal goes through.

What it does

  • Records declines. When you deny an approval that is about a scheduled job, it saves one record: an id, the time, the session key, the surface (cli, gateway, ...) and a fingerprint of the job.
  • Holds repeats. When the model calls cronjob_manage to create a job (or update its prompt, schedule or delivery) and the proposal matches a decline that is still active, the call is vetoed with a message to the model:

    The user declined a matching job on 2026-11-21. Do not propose it again; if they want it, they will ask.

  • Stops quiet duplicates. A proposal that matches an existing active or paused job is vetoed too: "A matching job already exists (ID , ); update or resume it instead of creating a new one." The veto never echoes the prompt or job name. A paused job stays paused; the plugin never changes a job.
  • Lets you change your mind. A decline expires after expire_days (30). /declines list shows active ones, /declines forget <id> removes one matching decline, and /declines clear removes all declines. Forgetting doesn't clear another matching decline, override duplicate detection, or bypass another Hermes guard. No arguments are added to core tools.
  • Fails open. The policy hook uses only in-memory snapshots, never a filesystem lock, cron read, config read or log write. It skips comparisons if another comparison is running or its 20 ms budget is spent. The host's safety timeout remains enabled. Snapshots refresh before a model turn and cron data also refreshes after cron tool calls. Unavailable or more-than-five-minute-old snapshots are skipped. No network calls.

How "same job" is decided

The prompt is lowercased, and dates, times, numbers, month/weekday names, "today/tomorrow", "on/at/next" and punctuation are stripped, then whitespace is collapsed. Two proposals match when their delivery target is the same and the token overlap (Jaccard) of the normalized prompts is at least threshold (0.6). An omitted target or a target that includes origin must also match the host's chat route (including thread and participant when present). Without verified chat context, decline matching for origin stays within the same Hermes session. The plugin skips an existing-job origin match when its stored route cannot be verified; it never treats origin as a wildcard or guesses it from tool arguments. Legacy unscoped origin declines remain manageable but do not veto.

When the host identifies a local session, duplicate detection can compare omitted delivery against an existing local job. Clearing delivery on an update is also local, not origin. For new jobs from top-level Slack messages, the plugin uses the channel route for recognized recurring intervals (including leading zeroes), weekday/time phrases such as every Monday at 9am, and five- or six-field cron expressions with numeric lists, zero-padded values, named months/weekdays, or a standalone last-weekday selector such as 0 9 * * L5 (last Friday of the month). It also uses the channel for supported in <duration> one-shots over 60 minutes; positive relative one-shots up to 60 minutes retain the message thread. Real Slack threads are not dropped. This is bounded route recognition, not schedule validation: the host still validates expressions. It classifies every 0m as recurring, like the host, but abstains on a zero-delay one-shot (in 0m). It also skips an absolute timestamp or unrecognized schedule rather than guessing the channel or thread. Absolute schedules can cross the horizon while the user is deciding. Slack edits keep the job's stored origin and compare it with the current chat rather than reparsing the display schedule.

What it stores

Per decline: id, timestamp, session key, surface, normalized prompt text, SHA-256 of the raw prompt, delivery target, schedule kind, and a digest of the host chat or session for origin. Normalized text is sensitive, not redacted. It can retain names and other private details and is shown by /declines list. The raw prompt, tool arguments, results and other messages are not stored. Pending proposals live in memory only.

Files are written under HERMES_HOME/plugins-state/hermes-declines/ (or state_dir): the directory is 0700 and every file is 0600. Expiry stops a decline from vetoing and hides it from the list; it does not by itself delete the record. /declines clear deletes all records, including expired ones, and discards writes already accepted by this plugin instance but not yet saved. The count reports saved records removed. New denials after the clear can still be recorded; it does not cancel work queued in other processes.

Denials are saved by a background writer, not by the approval prompt. A busy lock, full queue, disk failure or process exit before the write can leave a denial unrecorded. Matching starts once the write completes. A write that would grow the decline store past 256 KiB first tries removing expired records; if it still won't fit, the new denial is not saved, the existing file is left intact, and Hermes logs a warning. For a legacy oversized file, only a still-fresh view of the same store can veto. /declines forget removes the selected record from that cached view immediately, even if the file is still oversized. A fresh process has no such view: a later denial can restore a bounded store if expired records can be pruned, or you can make room with /declines forget or /declines clear. Refresh never rewrites the file. The cron snapshot is also limited to 256 jobs and proposal fields to 8,192 characters. Veto and listing dates are UTC.

Settings

Under plugins.entries.hermes-declines.settings in Hermes config:

keydefaultmeaning
threshold0.6similarity (0-1) at which two jobs count as the same
expire_days30days a decline stays active; 0 turns holds off
check_existing_jobstruealso veto near-duplicates of existing active/paused jobs; disabling this doesn't stop the snapshot from supplying unchanged fields for update checks
state_dirHERMES_HOME/plugins-state/hermes-declineswhere records are kept

Install and test

Copy or clone this directory into your Hermes plugins directory as hermes-declines and enable it. Validate with hermes plugins validate <dir>. Tests need only the standard library: python3 -m unittest discover -s tests.

Not covered

  • Hermes must emit a native schedule approval response. If cronjob_manage never prompts, there is no "no" to record. The plugin recognizes the cron_create and cron_update pattern keys emitted by #158289, even when the hook has no kind field. It also accepts schedule / schedule_edit as a kind or pattern key; kind is the clearer signal if the host supplies it. A generic plugin_rule:* denial is ignored, even with an exact call ID: the host does not report the effective arguments, which another hook may have changed. Do not combine recording with hooks that rewrite scheduling arguments.
  • Only a human "no" counts. Timeouts, cancelled prompts and the auxiliary-model "smart deny" are not recorded as declines.
  • The deny is tied to an exact pending tool-call ID in the same process. Missing, unknown or ambiguous IDs, conflicting session or turn identifiers, create/edit mismatches, and callbacks after completion or restart do not record anything. A session or turn alone is not enough: even a lone pending proposal may not be the one that was denied. The plugin rejects reused call IDs across sessions within its one-hour correlation window, even if comparison was skipped. It tracks up to 200 identities. If the table is busy or full, uncertain IDs (and IDs that map to the same bounded bookkeeping slot) may go unrecorded. Free-text mentions are never used for attribution. Declines of edits are only saved if the proposal supplies its own prompt and explicit non-origin delivery. A schedule-only denial is never recorded: a snapshot can inform a veto but is never used to persist an inherited prompt or target.
  • Wording matters. It catches the same job with different dates and times, not a genuinely reworded job. A lower threshold catches more and risks holding unrelated jobs. A different deliver target is a different job. Schedule kind is stored but not part of the comparison.
  • Only cronjob_manage create/update calls are held. Jobs made with hermes cron on the command line, the dashboard or an API are not checked. Pause, resume, run, remove and list are never touched. Skills-only or script-only jobs with no prompt are not compared.
  • Updates need a resolvable job in the snapshot. Exact IDs win; otherwise only a unique case-insensitive name is accepted. The plugin excludes that job from the duplicate check and leaves missing or ambiguous references to Hermes itself.
  • A veto is a message, not a lock on the user. It stops the model's call; you can still create the job yourself outside this plugin's check.
  • Cron snapshot compatibility. The manifest's minimum Hermes version is 0.22.5. The optional existing-job check targets versions that write the standard per-profile HERMES_HOME/cron/jobs.json as {"jobs": [...]} with full prompts and normal job IDs, delivery targets, and state fields, as in the reviewed host source. No cron.jobs import, lock, repair, write, or truncated public tool listing is used. Custom cron store overrides and legacy formats are not supported. Neither the cron directory under the host-selected profile home nor the jobs.json file may be a symlink. Missing, malformed, non-regular, oversized (over 256 KiB or 256 jobs), or stale snapshots also disable existing-job checks and updates that need old fields, including schedule-only updates. Fingerprintable creates still check the decline snapshot. Completed and errored jobs do not count as duplicates.
  • Records are per Hermes home/profile and are not shared between profiles.
  • Native approval verification. Tests replay the CLI payload observed on upstream PR #158289. A live smoke against that PR's core (head dd4e675b10, mock model, throwaway Hermes home) passed for create and edit cards: deny recorded, reworded repeat vetoed with no card, unrelated job prompted, duplicate vetoed, forget and clear worked. The same smoke was rerun on the released revision with the same results; a deny on an edit that only changes the schedule is not recorded, by design. Validate on your own Hermes host before enabling it.

License

MIT

README from the reviewed commit dd4f1d9; 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