Dependency-aware orchestration metadata on top of Hermes cron.
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.
orchestrator_create— create a chain + steps (cycle detection)orchestrator_status— list jobs / statusorchestrator_graph— nodes + edges as JSON, for the caller to renderorchestrator_trigger_chain— advance a job after verified success (validates deps + calendar)
plugins.entries.smart-automation.settings.ics_path— absolute path to a local.icsfile 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-.icsvalue means the calendar check is skipped (pure schedule mode).
post_tool_call— observer logging of cron tool calls (fail-open)on_session_start— ensure DB exists; recover interruptedrunningjobs once per process
- Read-only status pane (static text; no graph rendering)
- Status-bar chip
- Backend:
GET /api/plugins/smart-automation/statusand/graph— read-only GETs.
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().
- Reads a user-selected local
.icsfile 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.
python3 tests/test_smart_automation.py
hermes plugins validate --json .- 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."
- Agent creates chain;
orchestrator_graphreturns nodes + edges. - Manually trigger the first job via
orchestrator_trigger_chain; it completes. - Second job unlocks (status
ready). - Status chip reflects state.
MIT