All plugins

time-context

Tells the agent what time it is: the current date, clock time, session age and previous turn duration in every turn, plus user-defined time windows (office hours, night, quiet hours) carrying notes on what to avoid inside them, and a now tool for an exact reading. The block rides Hermes's per-turn user-message context, never the cached system prompt, so it cannot break the prompt cache. Disclosure — reads only the machine clock and its own plugin settings, and keeps session and turn durations in process memory; the /time-context add and remove commands save time windows to the plugin's own settings in config.yaml; no network, shell, credentials, subprocesses or reads outside its own settings; does not modify history, tool results or gate any action.

trappka1Automationv0.3.0Updated 5 days ago

About

Tells the agent what time it is: the current date, clock time, session age and previous turn duration in every turn, plus user-defined time windows (office hours, night, quiet hours) carrying notes on what to avoid inside them, and a now tool for an exact reading. The block rides Hermes's per-turn user-message context, never the cached system prompt, so it cannot break the prompt cache. Disclosure — reads only the machine clock and its own plugin settings, and keeps session and turn durations in process memory; the /time-context add and remove commands save time windows to the plugin's own settings in config.yaml; no network, shell, credentials, subprocesses or reads outside its own settings; does not modify history, tool results or gate any action.

time-context

Your agent always knows what time it is.

License
Version
Tests
Hermes
Python

Hermes stamps the session start into the system prompt and nothing else. Ask an agent
"is it a good moment to deploy?" at 22:40 and it has no idea — it guesses, or it spends a
tool call on date. This plugin puts a one-line, always-fresh clock reading into every turn,
together with the two durations a model cannot feel on its own: how long the session has been
running and how long the previous turn actually took.

And it can say more than "22:40": you give it named time windows — office hours, night,
quiet hours, a maintenance slot — and the agent sees which of them is active and what you
wanted it to do inside them
.

Why the user message and not the system prompt

A time.md pasted into the system prompt has two problems: it freezes at session start and it
breaks the prompt cache — the system prompt is meant to be byte-stable across a session, so
a changing line there makes the provider rewrite the whole prefix every turn. On a long session
that is the difference between paying for one prompt and paying for it forty times.

Hermes has a purpose-built slot for per-turn text: pre_llm_call returns {"context": ...} and
the host appends it to the current user message at API time (agent/turn_context.py),
leaving the system prompt and every earlier message byte-identical. The reading rides the tail,
so it is cache-safe by construction and refreshed every turn.

What you get

SurfaceWhat it does
turn contextone line: date, weekday, clock time, UTC offset, session age, previous turn length
active windowsevery configured window that is active now, with the note you attached to it
now toolexact reading on demand: ISO time, epoch, weekday, durations, active windows
/time-contextinspect the block; add / remove / windows to manage windows from chat

Install

hermes plugins install trappka/hermes-time-context --enable
hermes config set plugins.entries.time-context.settings.locale en
hermes config set plugins.entries.time-context.settings.timezone Europe/Berlin

Or drop the directory into ~/.hermes/plugins/time-context/ and restart Hermes.

Requires Hermes Agent >=0.21.5. No third-party dependencies — standard library only.

Windows: the part that changes behaviour

A clock is data. Decisions are made on intervals. Windows let you describe your own schedule
and attach the rule the agent should follow inside it. Nothing about work, night or rest is
hardcoded: a new project or a new timetable is a new entry, not a code change.

plugins:
  entries:
    time-context:
      settings:
        locale: en
        timezone: Europe/Berlin
        windows:
          - name: Office hours
            when: "Mon-Fri 09:00-18:00"
            note: "people are working: no deploys and no long builds until it is quiet"
          - name: Night
            when: "23:00-08:00"
            note: "the owner is probably asleep: decide, don't ask, report in the morning"
          - name: Maintenance
            when: "sun 02:00-05:00"
            note: "the only slot where a restart is allowed"

when accepts Mon-Fri / пн-пт / sat,sun / daily / 0-4, English or Russian day names,
and one time range. A range that wraps midnight (23:00-08:00) belongs to the day it starts on,
so it covers the early morning. Malformed entries are skipped, never fatal.

Manage them from chat:

/time-context
/time-context windows
/time-context add Focus | Mon-Fri 10:00-12:00 | deep work, no interruptions
/time-context remove Focus

Settings

Everything below is declared in plugin.yaml under config_schema and rendered as a form in
Hermes Desktop and the dashboard.

KeyTypeDefaultMeaning
enabledbooltrueInject the block at turn start
localeen / ruenLanguage of the block and of the chat command
timezonestrmachine zoneIANA zone, e.g. Europe/Berlin; empty = local
show_secondsbooltrueSeconds in the clock reading
show_durationsbooltrueSession age and previous turn length
show_stamp_notebooltrue"reading taken at turn start" hint
windowslist[]Named intervals with notes (JSON in the form)

Settings are read on every turn, so a change applies on the next one — no restart.

Cost and limits

  • ~30 tokens per turn, in the uncached tail of the message.
  • The now tool adds its schema once per session.
  • In exchange the agent stops spending tool calls on date to answer "can I do this now?".
  • The block is capped in tests under 300 characters, so it cannot quietly grow into a preamble.

What it deliberately does not do:

  • does not touch the system prompt (cache safety);
  • does not rewrite history or tool results;
  • does not block actions — time is information, not a gate. Use a pre_tool_call policy when you
    need a hard stop;
  • does not reach the network. It reports the machine clock and says so (clock_source: system);
    if the host clock drifts, so does the reading.

Development

python tests/test_time_context.py
python tests/test_command.py
hermes plugins validate .

CI runs the same two suites on Python 3.10–3.13 and re-runs the plugin validator on every push.

License

MIT — see LICENSE.

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

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section