Skip to main content
The SDK supports running agents on cron schedules. Scheduled agents persist across process restarts and run independently of any client application.

How Scheduling Works

  1. You define a schedule (cron expression + prompt + config)
  2. The SDK stores the schedule and manages execution
  3. At each trigger time a new session is created and the agent is run
  4. Results are stored and can be routed to connectors (Slack, email, etc.)
Scheduled agents rely on the hub-spoke architecture that is part of ClineCore. The hub runs as a background process on your machine. It starts automatically when needed and persists schedules across restarts.

Creating Schedules Programmatically with Cline SDK

Schedule Wizard with Cline CLI

An easy way to schedule task is to use Cline CLI for scheduling task, if you’ve already installed via npm i -g cline Run cline schedule to open an interactive menu for creating and managing schedules, browsing execution history, and viewing performance statistics.

Creating Schedules with Flags

Managing Schedules

Cron Expression Reference

Use Cases

Daily Standup Summary

Automated Dependency Updates

Codebase Health Report

Concurrency and Resource Limits

The scheduler enforces limits to prevent resource exhaustion:
  • Schedules have configurable concurrency limits
  • If a previous execution is still running when the next trigger fires, the new execution is queued or skipped (configurable)
  • The hub monitors resource usage and can pause schedules if the system is under load

Routing Results

Combine scheduled agents with connectors in CLI to route results to messaging platforms: