Run an agent on a schedule

Wake up to triaged issues, test results, or a dependency update. Run an agent once or on repeat, or have a script run first before an agent.

Hand this to your agent
Ask me about each of these, one at a time, with a suggested default:
- Job (what each run does; a script can check first and start an agent only when there's work)
- When (e.g. weekdays at 9am, with your timezone)
- Results (one thread for reports, or a new worktree each run for code changes)
- Notifications (yes or no)
Skip any I've answered. Then sum up the plan in three bullets and wait for my go. My answers override the steps below.
If a wait times out, wait again, up to three times.

Set up an Omnyo automation for this project and test it once.
Guide: /guides/run-an-agent-on-a-schedule

Default Job: morning issue triage on weekdays at 9am, with reports in one thread. Ask for my timezone. Pass --project $OMNYO_PROJECT_ID to every omnyo automation command. If a step fails, stop and tell me the error.

1. Read `omnyo automation create --help`. If `omnyo plugin list` shows Automations is off, turn it on with `omnyo plugin enable automations`. For an agent job, pick a model from `omnyo provider models <provider> --json`.
2. If `omnyo automation list` already has this job, reuse it and skip to step 4.
3. Create it paused: `omnyo automation create --name '<name>' --disabled` with `--cron '<expression>' --timezone <IANA zone>` or `--at <ISO time>`, plus either:
   - Agent: `--prompt '<prompt>' --provider <provider> --model <model> --permission-mode auto`. For reports in one thread, start that thread with `omnyo thread spawn --project $OMNYO_PROJECT_ID --title '<name>' --prompt '<its purpose>'` and add `--target-thread <its ID>`. For code changes, add `--new-environment worktree` and tell it not to push.
   - Script: `--script-file <path>`. It starts an agent with `"$OMNYO_CLI" thread spawn --project "$OMNYO_PROJECT_ID" --prompt '<task>'` only when there's work, and prints nothing otherwise.
4. Test it with `omnyo automation run <id>`, then read the run's thread or output. If it doesn't do the job, leave it paused and tell me why.
5. Turn it on with `omnyo automation resume <id>`, asking me first for a one-time job. If Notifications is yes, send `omnyo push-notifications test web` (or `test desktop` if I use the Omnyo app) and ask me to confirm it arrived.

Reply with the automation ID, schedule, next run, and what the test produced.

Steps

  1. 1Open Automations
  2. 2Describe the job
  3. 3Run it now, then turn it on
  4. 4Get notified when it finishes
1

Open Automations

Every scheduled job lives in one list, with its schedule, next run, and an on/off switch.

  1. Choose Automations in the rail on the far left. If it isn't there, open More at the bottom of the rail.
  2. Choose New automation. The new thread page opens with “Create a new Omnyo automation to” already typed. Or open Browse and choose a starting point, such as CI failure triage or Dependency drift.
2

Describe the job

Describe what to do, when, and where the results go. Your agent sets it up.

Pick the project, finish the sentence, and send it. Does the job need a site you're signed in to, like Linear or your analytics? Import your browser logins into Omnyo first.

Check with a script first, and wake an agent only when there's work

Ask for a script instead, like “every 15 minutes, check main for a failed CI run, and if there is one, start a Codex thread to fix it.” Scripts run without a model, so frequent checks use none of your plan. Quiet runs are skipped and show “empty output”.

Run it once, later

Ask for a single run, like “tomorrow at 9am, draft release notes from this week's pull requests.” It shows as One time in Automations, with the date it will run.

Send one message later

Type the message, open the arrow next to the send button, and choose Send later…. Pick a time and choose Schedule send. The message waits above the box, where you can send it now or delete it. On a phone, press and hold the send button.

3

Run it now, then turn it on

You don't have to wait until morning to find out whether it works.

  1. Open the automation and choose Run now. After the first run, Run now is in the ⋯ menu next to the switch.
  2. Under Runs, open the run and read the report.
  3. Once it's right, switch the automation on. To change what it does, choose the pencil next to Prompt, edit it, and choose Save Prompt.
4

Get notified when it finishes

Open the report from a notification, or come back to the thread later.

  1. Choose the gear at the bottom left, then Settings (or press ⌘,). Open Push notifications.
  2. Check that Web notifications (in a browser) or Desktop notifications (in the Omnyo app) is on, then choose Allow notifications.
  3. For your phone, keep Mobile notifications on and connect the Omnyo phone app in Settings → Mobile. See Work from anywhere. With Phone only when away on, while you're using a computer with the Omnyo desktop app, your phone is notified only after that computer locks or sits idle for 2 minutes.
  4. Choose Send test notification to check that one arrives.

Troubleshooting

My automation didn't run
  1. Open it in Automations and check that its switch is on and the next run time is right.
  2. Check that Omnyo and the computer running the agent were awake at that time. Scheduling doesn't wake a sleeping computer; a missed run happens once when it's back. To keep a Mac from idle sleep while Omnyo runs, turn on Prevent idle sleep in Settings → Keep Awake.
  3. Choose Run now in its ⋯ menu. If that works, the schedule or the computer was the problem.
My automation turned itself off
  1. Open its latest runs. Three failures in a row pause an automation. Omnyo notifies you on the first failure and again when it pauses. Temporary provider errors are retried and don't count.
  2. It also pauses if the thread it posts to was archived or deleted, or was still starting or stopping when the run came due.
  3. Fix the cause, choose Run now in the ⋯ menu to check it, then switch it back on.
A run failed
  1. Open the run under Runs and read its error.
  2. If the agent hit its usage limit, Omnyo retries the run later without pausing the automation. To use less of your plan, schedule heavy jobs overnight or use a script to skip runs with nothing to do.
  3. If the agent isn't signed in on that computer, sign in once, then choose Run now in the ⋯ menu.
I get a new thread every morning

That's the default. Ask your agent to post every run to one thread, like “send the morning triage to this thread.” Keep that thread for reports only.

Every script run shows as skipped

A script that exits without printing anything, or whose last line is {"wakeAgent": false}, counts as skipped. Its run shows “empty output” or “wakeAgent false”. Have it print a short result when there's something to report. A script that exits with an error or times out shows as failed; open the run to read its output.

The notification never arrived
  1. Web notifications need an open Omnyo tab, and desktop notifications need the Omnyo app running.
  2. If Default notifications is set to Needs input only, finished runs don't notify you. Set the report thread to All activity in Thread actions → Notifications.
  3. Check the browser's notification permission and your device's Focus settings.
  4. For notifications with the app closed, connect the Omnyo phone app in Settings → Mobile. With Phone only when away on, while you're using a computer with the Omnyo desktop app, the phone waits until that computer locks or sits idle for 2 minutes.

FAQ

What can I automate?
  • Triage new issues every morning and post a summary.
  • Run the test suite nightly and fix what broke.
  • Update dependencies weekly and open a pull request.
  • Watch CI and start an agent when main goes red.
  • Write release notes from the week's merged pull requests.
What's the difference between an agent and a script?

An agent automation sends a prompt to the agent and model you pick, and uses your plan each run. A script runs on the Omnyo server with no model, so it's free to run often, and it can start agent threads when it finds work.

Which agents work?

Claude Code and Codex work out of the box. Pi, and Cursor, opencode, Grok Build, Hermes Agent and other agents that support the Agent Client Protocol, work once you install the agent and turn on its plugin (Pi provider or ACP providers) in Settings → Installed plugins.

How do I change an automation later?

Open it in Automations. For an agent automation, choose the pencil next to Prompt. For a script, choose the pencil next to Script to change it in a chat. To change the schedule, ask your agent, like “move the morning triage to 8am.”

Can an automation change code or open pull requests?

Yes. Ask for a new worktree on every run, so each run gets its own branch, and say in the prompt whether it should push, open a pull request, or leave the change for you.

Have the report ready by morning

Free to use. Use the agent subscriptions and machines you already have.