Background Jobs

Schedule agents to work automatically — recurring tasks, periodic reports, and automated workflows on a cron schedule.

Background jobs let agents work without human intervention. Schedule tasks to run at specific times or on recurring intervals.

What Are Background Jobs?

A background job is a scheduled task that triggers an agent automatically. Instead of manually starting a session and typing instructions, the job runs on a cron schedule and sends a predefined message to an agent.

Use Cases

  • Daily standup reports — Every morning at 9am, pull project status and post to Slack
  • Weekly analytics — Every Monday, analyze last week's data and generate a report
  • Monitoring — Every hour, check server health and alert if issues found
  • Content scheduling — Every day at noon, publish the next queued blog post
  • Data sync — Every 6 hours, sync data between systems

Job Types

TypeDescription
New SessionCreates a fresh session for each run — clean context every time
Message SessionSends a message to an existing session — continues a running conversation

New Session is best for independent, repeating tasks. Message Session is useful when the job needs ongoing context from previous runs.

How Jobs Execute

When a job triggers:

  1. The scheduler checks if the job is enabled and not already running
  2. Creates a new session (or targets the existing one)
  3. Sends the configured message to the agent
  4. The agent processes the task
  5. Results are saved in the session
  6. Run history is updated with status and timing

Cron Scheduling

Jobs use cron expressions to define when they run:

ExpressionSchedule
0 9 * * *Every day at 9:00 AM
0 9 * * 1Every Monday at 9:00 AM
*/30 * * * *Every 30 minutes
0 0 1 * *First day of every month at midnight
0 */6 * * *Every 6 hours

Jobs run in your configured timezone.