Skip to content

Agent Scheduling & Autonomous Execution #12

@antiv

Description

@antiv

Summary

Allow agents to run on schedules (cron expressions) without user prompts. Use cases: daily report generation, periodic data monitoring, scheduled content creation, health checks.

Motivation

OpenClaw's heartbeat daemon (runs every 30 min autonomously) is its key differentiator. No major framework has native scheduling. Combined with MATE's existing tool system and memory, scheduled agents can maintain context across runs.

Scope

  • New agent_schedules table (agent_id, cron_expression, input_prompt, enabled, last_run, next_run, project_id)
  • Scheduler engine (APScheduler or Celery Beat integration)
  • Execution history log with outputs and token usage
  • Dashboard schedule manager: create, edit, enable/disable, view history
  • Timezone support
  • Configurable output destination: store in memory, send via webhook, email

Acceptance Criteria

  • Cron-based scheduling works for any agent
  • Execution history with full output logged
  • Dashboard CRUD for schedules
  • Token usage tracked per scheduled run
  • Output routable to webhook or stored in memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High priorityagentsAgent system and orchestrationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions