All plugins

run-receipts

Writes one small receipt per agent-backed cron run, outside the job's own output: job id, session id, start and end times, tool-call and tool-error counts, tool names, and an outcome (delivered, silent_checked, silent_unchecked, silent_with_errors, failed, incomplete), so a silent run that checked something can be told apart from one that never called a tool. Read back with /receipts or the read-only run_receipts_query tool. Observer only; fails open. Disclosure — four observer hooks; writes one JSON line per cron run to <HERMES_HOME>/run-receipts/receipts.jsonl (or the state_dir setting; 0700 dir, 0600 file) and prunes rows older than keep_days; stores metadata only (no tool arguments, results or prompts) unless store_reason is turned on, which keeps up to 200 characters of silent response text in the local file only; makes no network calls, runs no subprocesses, stores no credentials and sends no telemetry.

percyhendrux123-progAutomationv0.1.0Updated 8 days ago

About

Writes one small receipt per agent-backed cron run, outside the job's own output: job id, session id, start and end times, tool-call and tool-error counts, tool names, and an outcome (delivered, silent_checked, silent_unchecked, silent_with_errors, failed, incomplete), so a silent run that checked something can be told apart from one that never called a tool. Read back with /receipts or the read-only run_receipts_query tool. Observer only; fails open. Disclosure — four observer hooks; writes one JSON line per cron run to <HERMES_HOME>/run-receipts/receipts.jsonl (or the state_dir setting; 0700 dir, 0600 file) and prunes rows older than keep_days; stores metadata only (no tool arguments, results or prompts) unless store_reason is turned on, which keeps up to 200 characters of silent response text in the local file only; makes no network calls, runs no subprocesses, stores no credentials and sends no telemetry.

run-receipts for Hermes Agent

A silent cron run and a cron run that never finished its check look the same from the outside. The usual way to tell them apart is the job's own output, which is the job describing itself.

run-receipts is a small plugin for Hermes Agent. When it sees an agent-backed cron run end, it writes a receipt separate from job output: which job ran, when, which tool calls were observed, which were flagged as errors, and how the run was classified. You can then ask "did the watcher call any tools before going silent?"

It came out of the discussion on NousResearch/hermes-agent#158289, where reviewers pointed out that "completion" is read off the job's own markers.

What a receipt tells you

The plugin writes receipts from hook events, not from the model's description of what it did. Tool errors are those reported by Hermes or recognized by the plugin's fallback checks when Hermes supplies no status.

silent_checked means at least one call was observed and none were flagged as errors. That is not proof of a successful check: a watcher can call terminal once and still check the wrong thing or read stale data. Receipts are not tamper-proof against anyone with write access to the state directory.

Outcomes

outcomemeaning
deliveredA non-silent agent response, not verified transport delivery.
silent_checkedSilent response, at least one observed tool call, no flagged tool errors.
silent_uncheckedSilent response, no observed tool calls.
silent_with_errorsSilent response, and at least one observed tool call was flagged as an error.
failedThe agent reported failure or was interrupted, the run did not complete, the response starts with the [CRON_FAILURE] line, or the final response was empty (including Hermes's empty_response_exhausted exit, even if it supplied placeholder text). A short cause says which: agent_failed, interrupted, not_completed, failure_marker, empty_response.
incompleteA run started and no end was ever seen. Found the next time the same job starts; the receipt has no ended_at, and the counts are as of the last tool call. cause is no_end_seen.

"Silent" uses Hermes's matcher when available, otherwise a local copy. It recognizes a marker as the whole reply or on its own first or last nonblank line, including localized markers such as 静默. A bracketed prefix such as [SILENT] no changes also counts; a marker buried mid-sentence does not.

A nonblank max-iteration summary is an exception to the not_completed rule: the plugin classifies the response normally instead of treating completed=false alone as failure. Explicit failure or interruption still takes precedence.

What it records

One JSON line per run in receipts.jsonl:

{"v":1,"job_id":"daily-watch","session_id":"cron_daily-watch_20261121_090000","profile":"default",
 "started_at":"2026-11-21T15:00:00Z","ended_at":"2026-11-21T15:00:12Z","duration_s":12.4,
 "tool_calls":3,"tool_errors":0,"tools":["terminal","web_search"],
 "tool_stats":{"terminal":{"calls":2,"errors":0},"web_search":{"calls":1,"errors":0}},
 "outcome":"silent_checked"}
  • Metadata only by default. No tool arguments, tool results or prompts are recorded. Tool names that aren't identifier-shaped are stored as unknown.
  • store_reason: true opts in to keeping up to 200 characters of the final response on silent_* outcomes, with whitespace collapsed. This is potentially sensitive response text, not a redaction. It stays in the local receipt file: neither /receipts nor run_receipts_query displays it, even for rows from older releases. Turning the option off does not scrub old rows; they remain on disk until removed or pruned.
  • Writes use 0600 files inside a 0700 directory and tighten existing looser modes. Reads and writes refuse symlinked state directories or receipt files. Queries never create files or change modes.
  • No network, no subprocesses, no credentials, no telemetry.

Install and configure

hermes plugins install <this repo>     # or copy this directory to ~/.hermes/plugins/run-receipts
hermes plugins enable run-receipts

Settings (under plugins.entries.run-receipts.settings in config.yaml, all optional):

keydefaultmeaning
state_dir<HERMES_HOME>/run-receiptswhere receipts.jsonl lives (per profile by default)
keep_days30receipts older than this are removed whenever a new one is written
store_reasonfalseopt in to storing silent response snippets in the local file only

Requires Hermes >= 0.22.5 (checked against source at 0.23.3). Uses fcntl, so macOS and Linux only.

Reading receipts back

In a session: /receipts last [n] and /receipts suspicious [n] default to 10 rows and clamp n to 1–200. /receipts job <id> shows up to 50 rows. Results are newest first by receipt order.

suspicious lists silent_unchecked, silent_with_errors, incomplete and failed from the last 7 days. A malformed outcome does not hide valid matches.

Where the toolset is enabled, the read-only run_receipts_query returns receipt metadata as JSON (action: last, job with job_id, or suspicious). All actions accept optional n (1–200, default 50 for job and 10 otherwise). The tool can't write or delete anything. The plugin does not authenticate callers as operators.

How it works

It registers four observer hooks: on_session_start, post_tool_call, post_llm_call and on_session_end. A session counts as a cron run when its platform is cron (that is how cron/scheduler.py builds the agent). Interactive sessions and delegated subagents (platform="subagent") are ignored and nothing is written for them. The job id comes from Hermes's cron execution identity (ctx.current_cron_execution()), else from the cron_<job>_<timestamp> session id.

Every hook catches its own exceptions, logs a warning and returns None. It never changes what is delivered and never adds or removes output. A storage failure can leave a missing receipt or a checkpoint to recover, but does not stop the job.

Finalization and checkpoint cleanup share a writer lock. While the receipt is retained, the first complete receipt for a session wins. If cleanup fails after append, later runs continue and retry cleanup without emitting a second receipt. An already-final receipt can outlive keep_days until its leftover checkpoint can be removed. A complete receipt missing only its final newline is readable and kept; the next append or cleanup restores the newline. A torn fragment or a row that cannot be written as UTF-8 is discarded. Short writes are completed before the checkpoint is removed.

Not covered

  • Script-mode (no_agent) cron jobs. cron/scheduler.py runs these as a bare subprocess (_run_no_agent_job): no agent, no session, so none of the session or tool hooks fire. Hermes exposes no plugin hook or event for them (ctx.current_cron_execution() is only a getter, and the hermes: event namespace has no cron events in the source I read). Many crons run this way, so most of them get no receipt. If Hermes later adds a cron-run hook, this plugin can use it.
  • The script step of an agent job. A job that has both a script and an agent run is covered for the agent part. The pre-run script's own exit status isn't recorded, and a wakeAgent=false skip never starts an agent, so it leaves no receipt.
  • Runs skipped before an agent starts: monitor-gate "unchanged" ticks, prompt-scanner blocks, config or preflight failures. No session starts, so nothing is written.
  • Tools run by delegated subagents. Their calls are not added to the parent's counts.
  • Tool errors Hermes doesn't flag. Error counting uses the status Hermes derives from each result, plus the result's top-level JSON shape if no status is given. A tool that reports a problem in plain text, or one that fails inside an otherwise successful payload, counts as OK.
  • Jobs with no derivable id. Receipts are still written (job id is null), but incomplete can only be found by pairing a start with the next start of the same job, so those runs can't be flagged.
  • Overlapping runs of the same job. If a job starts while an earlier run of it is still going, the earlier run is marked incomplete and its late end writes nothing. Hermes normally prevents overlapping runs of one job.
  • Jobs that never run again. An unfinished run only becomes incomplete when the same job next starts. Its open-run record is dropped after keep_days.
  • Sessions in a different state dir. Profiles with different state_dir settings keep separate files; /receipts reads only the current profile's.
  • No transport confirmation. This revision's tests simulate hook events; they do not verify receipt of a real cron notification.

Tests

python3 -m unittest discover -s tests

Stdlib only, no network, no Hermes install. Set HERMES_AGENT_SRC to a source checkout to compare the fallback against its gateway matcher. That optional test does not exercise the scheduler emitter. See docs/EVIDENCE.md for a TMPDIR example and the test scope.

License

MIT

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