Skip to content
Edith

Agent docs

Coding agentsBeta

Crew schedules: prompt agents on a timer or webhook

A schedule sends a prompt to an agent on an interval, at a time of day, once, or when a webhook is delivered. The agents engine owns schedules, so they keep firing after Edith quits. Each run starts a new thread, or continues one thread you pick. In the app, schedules are called automations.

Create an automation in the app

An automation is a schedule that sends a prompt to a thread.

  1. Open a thread and press Thread details (the info button) in its toolbar.
  2. In the Automations section, press New automation for this thread (the plus button).
  3. Type the Prompt to send.
  4. Under When, pick Daily, Weekdays, Weekly, Every or Once, then the time.
  5. Under Thread, pick New thread each run, Same thread or Same thread, fresh session.
  6. Press Create automation.

Each automation in the list has Run now, Pause or Resume, and Edit. Deleting one stops it; threads it already ran keep their history.

From the terminal

The terminal adds webhook triggers and schedules that are not tied to one thread.

Create a schedule

Pick exactly one trigger:

Trigger Example Notes
--every --every 30m An interval such as 30m, 2h or 1d, at least 1m
--at --at 09:30 --weekdays 1,2,3,4,5 A local time of day. --weekdays limits it to days 0 (Sunday) to 6
--once --once 2026-12-01T09:00:00Z One time, in ISO 8601
--webhook --webhook When the schedule's webhook path is called
Terminal
ed crew schedules add "Nightly review" --prompt "Review today's commits" --at 22:00ed crew schedules add "Morning summary" --prompt "Summarize open PRs" --at 09:00 --weekdays 1,2,3,4,5ed crew schedules add Watch --prompt "Check the deploy" --every 30m --project .

The first argument is the title. --prompt is what the agent receives each time, or - to read it from stdin. --disabled creates the schedule turned off.

Choose the agent and where it works

Option What it does
--project <id or folder> Project the agent runs in
--provider <agent> Agent, for example claude or codex. Defaults to the project's
--cwd <folder> Folder, when there is no project
--model, --effort Model id and reasoning effort
--permissions approval-required, auto-accept-edits, auto or full-access
--plan, --no-plan Run in plan mode, or not
--worktree <ref>, --branch <name> Start each run in a new git worktree from that branch, tag or commit
--thread <id> Send to this thread instead of starting new ones
--thread-mode new_thread, continue or fresh_session

new_thread starts a thread each run. continue keeps using one thread. fresh_session uses the same thread with a fresh agent session.

Trigger on a webhook

Terminal
ed crew schedules add Triage --prompt "Triage {{body.issue.title}}" --webhooked crew schedules show sch_01

A webhook prompt can use {{body.<path>}} and {{headers.<name>}} from the delivery. show prints the webhook path. The path holds the hook's secret token, so give it only to the sender.

Check signatures and filter deliveries

Terminal
ed crew schedules add Issues --prompt "Triage {{body.issue.title}}" --webhook \  --signature-header X-Hub-Signature-256 --signature-prefix sha256= \  --secret-file ~/.hook-secret --filter body.action=opened
Option What it does
--signature-header Header holding the HMAC-SHA256 signature
--signature-encoding hex or base64
--signature-prefix Text in front of the signature, such as sha256=
--secret-file File holding the signing secret, or - for stdin. Never pass the secret on the command line
--filter Only deliveries matching path=value, path!=value, path^=prefix, 'path in a,b' or path?. Repeat for more
--max-age Refuse deliveries older than this many minutes
--replay-key A header or body path whose repeat starts no second run
--coalesce-key, --coalesce-window Deliveries with the same key within the window share one run

ed crew schedules deliveries sch_01 lists recent deliveries, whether each signature checked out, and the thread it started. Credential headers are hidden. ed crew schedules rotate sch_01 gives the schedule a new secret path; the old one stops working.

Run, change and remove schedules

Terminal
ed crew schedules lsed crew schedules run sch_01ed crew schedules update sch_01 --every 1hed crew schedules update sch_01 --title "Evening review" --at 18:00ed crew schedules disable sch_01ed crew schedules enable sch_01ed crew schedules rm sch_01

ls shows each schedule's trigger, next run and how the last run went. run sends the prompt now without changing the next run. update changes only what you pass; a new trigger replaces the old one. --unbind-thread stops sending to a bound thread and starts new threads again. A disabled webhook refuses deliveries. rm keeps the threads the schedule already started.

Where to go next