agent_code_lib/schedule/mod.rs
1//! Scheduled agent execution.
2//!
3//! Enables cron-based and webhook-triggered agent runs. Schedules are
4//! persisted as JSON in `~/.config/agent-code/schedules/` and executed
5//! by a background daemon loop.
6//!
7//! # Usage
8//!
9//! ```bash
10//! agent schedule add "0 9 * * *" --prompt "run tests" --name daily-tests
11//! agent schedule list
12//! agent schedule remove daily-tests
13//! agent schedule run daily-tests
14//! agent daemon # start the scheduler loop
15//! ```
16
17pub mod cron;
18pub mod executor;
19pub mod storage;
20
21pub use cron::CronExpr;
22pub use executor::{JobOutcome, ScheduleExecutor};
23pub use storage::{Schedule, ScheduleStore};