Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Hermes Agent checkpoints, scheduled tasks, and persistent goals

Checkpoints, scheduled tasks, and persistent goals

This chapter introduces three automation and safety mechanisms in Hermes: checkpoints protect your files before dangerous operations, scheduled tasks let the Agent run autonomously on a plan, and persistent goals let the Agent advance long-term work across sessions.


Checkpoints and rollback

Hermes provides a file-system-level checkpoint mechanism, letting you create snapshots before the Agent performs dangerous operations and roll back when needed.

Manual creation and recovery

Example

Manually create a checkpoint in a session

/

Checkpoint: state before refactoring

List all checkpoints

/

rollback

Roll back to a specified checkpoint

/

rollback

2

Command-line management

Example

List all checkpoints

hermes checkpoints list

Restore to a specified checkpoint

hermes checkpoints restore

<

id

Automatic checkpoints: before executing high-risk operations (e.g. large-scale file modifications, database changes), the Agent automatically creates a checkpoint without manual intervention.

A checkpoint is a file-system-level snapshot, suitable to create manually before letting the Agent do large-scale refactoring or data migration. It is not a replacement for Git commits, but an extra safety guarantee.


Scheduled tasks (Cron)

Hermes has a built-in first-class Cron scheduling system supporting multiple schedule formats.

Create a scheduled task

Example

Create a scheduled task interactively

hermes cron create

Create a daily briefing task from the command line

hermes cron create \

 

--name

"daily-briefing"

\

 

--schedule

"0 8 * * *"

\

 

--prompt

"Search for today's latest AI developments and send a summary to Telegram"

\

 

--platform

telegram \

 

--chat-id

123456789

Manage scheduled tasks

Example

List all tasks

hermes cron list

Pause / resume / delete tasks

hermes cron pause daily-briefing

hermes cron resume daily-briefing

hermes cron delete daily-briefing

Run once immediately (for testing)

hermes cron run daily-briefing

Manage Cron in a session

Example

Use slash commands to manage scheduled tasks in sessions on any platform

/

cron list                

View all tasks

/

cron pause

<

name

/

cron resume

<

name

       

Resume a specified task

Cron configuration format

Each scheduled task is an independent JSON file:

Example

// File path: ~/.hermes/cron/daily-briefing.json

{

  "name": "daily-briefing",

  "schedule": "0 8 * * *",

  "prompt": "Search today's latest AI developments and compile a briefing"

  "platform": "telegram",

  "chat_id": "123456789",

  "toolsets": ["web", "memory"],

  "enabled": true

}

Supported schedule formats

Format Example Meaning
cron expression "0 8 * * *" Every day at 8 AM
Natural language "every day at 8am" Same as above
Interval "every 2 hours" Run once every 2 hours

Cron safety: handling dangerous commands

When a scheduled task encounters a dangerous command needing approval, the default behavior is to deny it (rather than wait for approval — because no one will be awake at 4 AM to click approve):

Example

File path: ~/.hermes/config.yaml

Approval policy for scheduled tasks

approvals

:

  cron_mode

:

deny    

deny (default) | approve (auto-approve, use with caution)

cron_mode: approve means dangerous commands in scheduled tasks are auto-approved — use only when you fully trust the task content.


Persistent goals

Persistent goals let Hermes autonomously advance long-term tasks across multiple sessions without you reminding it each time.

Manage persistent goals

Example

Set a persistent goal

hermes goals add

"Monitor Hermes Agent issues on GitHub every week,
                  Summarize unresolved issues and send to Slack"

View all goals

hermes goals list

Pause / complete / delete goals

hermes goals pause

<

id

hermes goals

complete

<

id

hermes goals delete

<

id

Persistent goals vs scheduled tasks

Comparison Dimensions Scheduled tasks (Cron) Persistent goals (Goals)
Trigger Method Auto-triggered at fixed times Agent decides when to act autonomously
Execution content Fixed prompt, same every time Agent decides dynamically based on context
State Tracking None (executes independently each time) Track progress
Applicable scenarios Periodic reports, daily summaries Long-term tasks requiring contextual judgment
Typical examples Send AI news every day at 8 AM Continuously monitor a repo's issues and follow up

Cron suits 'doing fixed things at fixed times', while persistent goals suit 'Agent, you handle it — this is the goal, you set the pace'. They complement rather than replace each other.