Scheduling Agents

Last reviewed October 17, 2026 (low-disk recovery).

Run agents automatically on daily, weekly, interval, multi-time, time-window, or cron schedules.


What is agent scheduling?

Schedules let agents run without a manual launch. Use them for recurring audits, status checks, reporting, outreach, monitoring, documentation refreshes, QA sweeps, and deployment checks.

Scheduled runs use autonomous mode. If an agent normally runs interactively, CPLai still launches the scheduled run as autonomous because no user is sitting at the terminal to approve prompts.


How do I open Schedule Manager?

  1. Open Agents.
  2. Click the clock icon in the agent sidebar.
  3. Use Fleet to select an agent, Team & capability to manage shared defaults, or Proposals to review schedule recommendations from team leads.
  4. Edit the selected schedule in the right panel.
  5. Click Save schedule.

Scheduler opens as a full-page surface on desktop and web. Close it with the top-right X or Escape.

The header shows the number of enabled schedules across all companies. The Fleet view groups agents by company and shows each agent's cadence, schedule source, next run, pause state, and most recent run. Use the toolbar to search or filter by company, team, source, cadence type, or status.


How do I create a schedule?

  1. Open Scheduler and stay on Fleet.
  2. Expand a company and select an agent.
  3. Choose a cadence and configure its time, interval, window, or cron expression.
  4. Set active days and randomized jitter when the cadence supports them.
  5. Review the cadence and next-run preview.
  6. Make sure the schedule is Enabled.
  7. Click Save schedule.

If the selected agent inherits a team or capability schedule, Scheduler labels the source. Saving creates an agent-level override, which takes priority over the inherited schedule. Use Delete when you want to remove that stored override and return to the next applicable scope.


How do schedule types work?

Type Use it for Example
Daily One run at the same time every day Run at 09:00
Weekly One run on a weekday, optionally every 2, 3, or 4 weeks from an anchor date Run every other Monday at 10:00
Interval Repeat every 15 minutes to 24 hours using a preset Run every 6 hours
Multi-Time Several specific times per day Run at 09:00, 15:00, and 20:00
Window Repeat within a time range Run every 2 hours from 08:00 to 22:00
Cron Use a five-field cron expression for an advanced cadence Run weekdays every 15 minutes with */15 9-17 * * 1-5

Multi-Time schedules work best for human-like check-ins. Window schedules work best for monitoring or repeated operational checks.

Time zone: All clock times (09:00, window start/end, multi-time slots, and cron matching) are interpreted in your machine's local time zone, not UTC. A daily 07:30 schedule fires at 07:30 wherever you are. Daylight-saving transitions are handled correctly by the underlying clock.


How do scoped schedules work?

Scheduler resolves one effective cadence for every agent in this order:

  1. Agent schedule
  2. Team schedule
  3. Capability schedule

An agent-level schedule always wins. If an agent has no schedule, its team default applies. If neither exists, the capability default applies.

To create or edit a shared default:

  1. Open Team & capability.
  2. Select an existing scoped schedule, or click New scoped schedule.
  3. Choose a team or capability.
  4. Configure the cadence and click Save schedule.

The list shows each shared schedule and whether it is enabled. Click its status dot to enable or disable it. A disabled scope remains stored but does not fire.

Tip: Use shared schedules for a common team rhythm, then add agent overrides only for workers that need a different cadence.


How do I review schedule proposals?

Open Proposals to review pending recommendations from team leads. Each proposal shows the team, proposed cron expression, reasoning, and expected outcome when supplied.

  • Click Approve to accept the recommendation.
  • Click Reject to decline it.

The proposal count appears on the tab while reviews are waiting.


How do I use jitter?

Jitter adds a random delay before a scheduled run. Use it when agents interact with external websites, social networks, APIs, or other systems where identical timing looks automated.

Jitter value Behavior
None Run at the exact scheduled time
5 or 10 minutes Run randomly within the selected short window
15 or 30 minutes Run randomly within the selected standard window
45 or 60 minutes Run randomly within the selected long window

The jitter is applied by the always-on Rust heartbeat scheduler, so the random delay survives even if the desktop window is minimized or backgrounded. The agent prompt records exactly how much jitter was applied (under "Current Wake Context") so you can audit fire times after the fact.

Tip: Use jitter for outreach, social, monitoring, and scraping agents. Keep exact timing for internal reporting or handoff agents.


What happens if CPLai is closed?

If neither the desktop scheduler nor the always-on headless service is running, CPLai does not backfill every missed schedule when it starts again. The scheduler computes the next valid run and continues from there.

Other guardrails:

Guardrail Behavior
Already running Scheduler skips the agent
Recently launched Cooldown prevents duplicate launches in the same minute
Paused scope Agents paused individually or covered by a company, team, or team-group pause do not launch on schedule. The individual agent can still appear enabled.
Global scheduler paused The companion tray's Pause All Agents switch stops all scheduled launches across every company. The desktop Companies page shows All agents paused with Resume all agents, and owner fleet-health diagnostics report Fleet paused: all agents as Critical.
Budget cap reached CPLai blocks the launch and pauses the agent
Low disk space Scheduled spawns are deferred while free space is below the effective disk-pressure floor. Headless scheduled launches use 40 GB; desktop launches use the local Worktree Janitor setting. CPLai sends one critical owner notification for the episode, shows a Fleet paused finding, and resumes normal schedule checks after space is freed. No failed run row is created for the deferral.
Jitter pending CPLai re-checks enabled and running after the random delay before launching
Autonomous run cap reached CPLai honors Settings -> Agents -> Max Concurrent Auto-Runs. Interval and Window schedules remain due. Daily, Weekly, Multi-Time, and supported cron slots are held for up to 30 minutes so they can run when capacity returns. A scheduled run never starts ahead of a run that is already waiting in line for a slot.
Offline Local-model schedules can continue. Cloud-model schedules are deferred; clock-based slots use the same bounded 30-minute catch-up window.
PTY safety ceiling reached A separate process-wide safety limit holds additional autonomous or race PTY launches until host capacity returns. This is a stability backstop; the normal operator control is Max Concurrent Auto-Runs.
Active chat Agents with an open chat ConPTY are queued so the scheduled run doesn't collide with the live chat session

How does CPLai choose among deferred schedules?

When autonomous capacity returns, CPLai gives priority to a clock-based slot that is already waiting, starting with the oldest deferral. Otherwise it evaluates the least-recently-fired agents first, with agents that have never fired ahead of agents that have. A stable agent ID tie-break keeps equal cases predictable.

The 30-minute clock-slot window is a bounded catch-up, not a general backfill. If a Daily, Weekly, Multi-Time, or cron slot remains blocked past that window, CPLai waits for the next configured occurrence instead of launching it hours late. The eventual run keeps the original scheduled time in its wake context so the delay remains visible.

Tip: Lower Max Concurrent Auto-Runs while you are actively using the machine, but leave enough capacity for time-sensitive schedules. Agent chats don't count toward this cap. Runs you start yourself do, and at the cap they wait in line for a free slot instead of failing (Settings).

How do I investigate an overdue schedule?

  1. Open the agent's page and check its pause banner. The agent itself, its company, team, or team group can be paused while its Enabled and schedule fields still look healthy. Resume the indicated scope when appropriate. An agent's own pause is independent: resuming its team does not clear it, and resuming the agent does not clear a wider pause.
  2. Review Settings -> Agents -> Max Concurrent Auto-Runs and compare it with the number of autonomous runs already active.
  3. Open the agent's recent runs and inspect the wake context for its original scheduled time and actual launch delay.
  4. If fleet diagnostics reports Enabled agents are not running on schedule, check its pause-scope detail first. If no pause applies, sustained cap pressure is the next likely cause.

How does the Windows service run scheduled work?

The installed service launches scheduled work even when the desktop app is closed. On current Windows installations, worker processes use the installing operator's session when that account is logged on. When no matching operator session is available, they use the service execution profile instead.

Closing CPLai and signing out of Windows therefore have different effects. A CLI setup or file path that works in an interactive terminal may need attention for a signed-out service run. Check the failed run's output and the worker's reported status before changing the schedule. See worker health and Docker Environments for remote container checks.

How do I interpret Fleet Health schedule signals?

The instance-administrator fleet-health snapshot is separate from the company Fleet Health panel created by Fleet Doctor. It evaluates scheduler operation across all companies and reports these schedule findings:

Finding Severity What it means
Fleet paused: all agents Critical The global scheduler pause is on. No scheduled agent in any company can dispatch, even when its own schedule and Enabled setting look healthy. Resume from the companion tray or select Resume all agents in the desktop Companies banner.
Enabled agents are not running on schedule Warning, or Critical after roughly 10 missed windows One or more agents have missed multiple expected runs. Check the finding's effective pause source first. If no individual-agent, company, team, or team-group pause applies, inspect dispatch capacity and clock-based schedules.
Agents are running slower than their configured cadence Warning for isolated drift; Critical when at least 25% of measured agents drift while the auto-run cap is fully used Rate-driven agents are still running, but their delivered cadence is materially slower than configured. A fleet-wide Critical result points to demand exceeding available autonomous-run capacity.

Cadence drift uses a trailing 24-hour window. CPLai measures enabled, unpaused Interval and Window schedules configured for every two hours or faster. An agent needs at least four runs in the window. Its achieved cadence is the median gap between run starts, and it is reported as drifting when that gap is at least 1.5 times the configured cadence.

Daily, Weekly, Multi-Time, and cron schedules are not included in cadence-drift measurement. A missed clock-based slot is handled by the overdue-schedule finding instead.

How do I fix schedule cadence drift?

  1. Check whether drift affects a few agents or at least a quarter of the measured fleet.
  2. Compare Settings -> Agents -> Max Concurrent Auto-Runs with the number of autonomous runs already active.
  3. Review the fleet's configured demand. Short Interval or Window cadences, especially several 15-minute schedules, can consume a large share of available launches.
  4. Lengthen low-priority cadences or spread work across different windows before raising the concurrency cap.
  5. Raise the cap only when the host has enough CPU, memory, disk, and provider capacity for more simultaneous runs.

Tip: A Warning can be an agent-specific cadence-allocation issue. A Critical drift finding with a fully used cap is a fleet-capacity problem, so changing one agent rarely fixes the root cause.

How do I recover from a low-disk pause?

When free space on the agent volume falls below the effective launch floor, CPLai treats the condition as a fleet pause instead of an agent failure. Headless scheduled launches use the fixed 40 GB default. Desktop launches use Settings -> Folders & cleanup -> Worktree cleanup -> Clean sooner below (GB free).

  • The first refused launch creates one critical owner notification: Fleet paused: low disk.
  • Fleet Health shows an active low-disk finding while launches are deferred.
  • Repeated scheduler ticks do not create failed-run rows or duplicate alerts.
  • After free space rises above the effective floor, CPLai creates one recovery notification and scheduled runs resume on their normal ticks.

For the always-on headless service, a low-disk refusal leaves Interval and Window schedules due. They can retry on the next eligible tick after space recovers, subject to their configured window and the other launch checks. Daily, Weekly, Multi-Time, and cron slots use the same 30-minute catch-up window as capacity deferrals. A slot that outlasts that window is recorded as a lost occurrence in the scheduler log; CPLai waits for the next configured occurrence instead of replaying every missed run.

Open Git Maintenance to review managed cleanup queues and the report-only sibling worktree dry run. Build output folders and old worktrees are common large consumers, but confirm local changes and branch ownership before removing anything manually.

To reduce the chance of reaching the default 40 GB headless pause floor, a separate hourly safeguard starts below a fixed 80 GB warning line. It reclaims only regenerable build caches from clean, merged, inactive managed worktrees and re-checks for active runs immediately before removal. It does not remove source files or the worktree itself. This is an early buffer, not a guarantee: a desktop floor set to 80 GB or higher, or a sudden drop between hourly checks, can engage launch protection before cache reclaim restores headroom.

How does the scheduler decide to fire?

A single Rust scheduler ticks every 30 seconds and evaluates the persisted schedule that is effective for each agent. Agent, team, and capability rows live in one schedule store, so the desktop, web dashboard, and always-on service read the same cadence and pause state.

The headless service keeps that scheduler running after the desktop window closes. When a schedule becomes due, CPLai applies pause, capacity, disk, connectivity, budget, cooldown, and collision guardrails before launching the agent.

How do I tell whether a launch was accepted?

Open Agents and check Latest launch in the directory or the selected agent's detail panel. A recorded attempt shows its outcome and time; the detail panel also shows its source and any reason. Launched means the launch was accepted. Use run history to check completion and results.

Blocked or Error includes the recorded reason when one is available. Check the current pause state and the guardrails above before retrying. An older completed run alone does not show that the latest launch failed, and a pause can remain active after a previously accepted launch.

See latest launch labels for the difference between No recorded attempt and Evidence unavailable.


How can agents update schedules?

Company agents can propose schedule changes with schedule tags. A valid update uses a JSON schedule object.

<update-schedule agent="Scout">{"type":"daily","enabled":true,"time":"09:00","jitterMinutes":10}</update-schedule>

Supported fields include type, enabled, time, times, intervalHours, windowStart, windowEnd, windowIntervalHours, jitterMinutes, and activeDays.


CPLai user manual, version of November 20, 2026. This is the same manual that ships inside the app.