Skip to content

About

Hermes plugin: visual dependency-aware cron timeline (manual chain-runner, read-only Desktop backend)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Smart Automation Orchestrator

Dependency-aware orchestration metadata on top of Hermes cron.

What it is

A Hermes plugin (Python tools/hooks + desktop/plugin.js + dashboard/plugin_api.py) that lets the agent create multi-step automations that respect dependency chains and an optional calendar constraint. Chain state lives in the plugin's own SQLite database and is read in chat with the orchestrator_* tools; the Desktop surface is a read-only status pane, not a graph renderer.

Manual chain-runner design (honest): There is no cron-completion hook in Hermes. Chains advance only when orchestrator_trigger_chain is called after verified success. post_tool_call is observer-only.

Scope (honest): The tools only edit this plugin's own chain metadata in its local database. They do not touch Hermes core state, do not modify cron jobs, and do not go through a core approval gate — nothing they do requires one.

Tools

  • orchestrator_create — create a chain + steps (cycle detection)
  • orchestrator_status — list jobs / status
  • orchestrator_graph — nodes + edges as JSON, for the caller to render
  • orchestrator_trigger_chain — advance a job after verified success (validates deps + calendar)

Config

  • plugins.entries.smart-automation.settings.ics_path — absolute path to a local .ics file used for the free-slot check. Must end in .ics. A calendar path is never accepted from the model at call time; an unset or non-.ics value means the calendar check is skipped (pure schedule mode).

Hooks

  • post_tool_call — observer logging of cron tool calls (fail-open)
  • on_session_start — ensure DB exists; recover interrupted running jobs once per process

Desktop

  • Read-only status pane (static text; no graph rendering)
  • Status-bar chip
  • Backend: GET /api/plugins/smart-automation/status and /graph — read-only GETs.

Storage

SQLite in ctx.state.data_dir (plugin-data/smart-automation/smart_automation.db), WAL mode, schema v1. The dashboard resolves the same DB via hermes_constants.get_hermes_home().

Disclosure —

  • Reads a user-selected local .ics file if configured (never network calendars)
  • Stores chain metadata locally in plugin data dir
  • Stores only dependency metadata; cron jobs themselves are managed by Hermes cron and are left untouched
  • No external network calls required. Slack/Calendar in the demo are stubbed/mock and labelled as such.
  • Nearest catalog neighbour: cron-bulletin (cron report inbox). Differentiation: this plugin stores chain/dependency metadata and advances chains manually, not a report inbox.

Validation

python3 tests/test_smart_automation.py
hermes plugins validate --json .

Demo (90s)

  1. Prompt: "Create a weekday morning automation that only runs when my calendar shows a free block after 8am. First summarize overnight AI news, then post a short digest to Slack (mocked). Make the second job depend on the first succeeding. Show me the chain as JSON."
  2. Agent creates chain; orchestrator_graph returns nodes + edges.
  3. Manually trigger the first job via orchestrator_trigger_chain; it completes.
  4. Second job unlocks (status ready).
  5. Status chip reflects state.

License

MIT

About

Hermes plugin: visual dependency-aware cron timeline (manual chain-runner, read-only Desktop backend)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages