Appearance
Scheduling
FreshSource: Letta Code Scheduling
Overview
Letta enables automation of agent messages on predetermined schedules for tasks like daily briefings, hourly email triage, or periodic code reviews. Agents can also self-schedule via bundled skills.
Setup Methods
GUI Approach
Configure through the Letta Code app's Schedules tab, with support for remote devices.
CLI Approach
Start a server and use letta cron commands:
bash
letta serverCore CLI Commands
Add a Scheduled Task
bash
letta cron add \
--agent agent-123 \
--conversation default \
--name "daily-review" \
--description "Summarize recent code changes every morning" \
--prompt "Review recent changes and summarize any issues." \
--cron "0 9 * * *"Scheduling Methods
| Method | Flag | Example |
|---|---|---|
| Cron expression | --cron | "0 9 * * 1-5" (weekdays at 9am) |
| Interval | --every | 5m, 1h, 30s |
| One-time | --at | "in 45m", "2026-04-20T10:00:00" |
List Tasks
bash
letta cron list
letta cron list --agent agent-123Get Task Details
bash
letta cron get <task-id>Delete a Task
bash
letta cron delete <task-id>Task Requirements
Each task requires:
| Field | Required | Description |
|---|---|---|
--name | Yes | Human-readable task name |
--description | Yes | What the task does |
--prompt | Yes | The message to send to the agent |
--agent | Yes | Agent ID to execute the task |
--conversation | No | Defaults to LETTA_CONVERSATION_ID or default |
| Schedule flag | Yes | One of --cron, --every, or --at |
Usage Examples
Daily Code Review
bash
letta cron add \
--agent agent-123 \
--name "daily-review" \
--description "Review code changes" \
--prompt "Review yesterday's commits and summarize issues." \
--cron "0 9 * * 1-5"One-Time Reminder
bash
letta cron add \
--agent agent-123 \
--name "deploy-reminder" \
--description "Remind to deploy" \
--prompt "Reminder: Deploy the staging branch to production." \
--at "in 45m"Frequent Monitoring
bash
letta cron add \
--agent agent-123 \
--name "health-check" \
--description "Check service health" \
--prompt "Run health checks on all services." \
--every 5mLimitations
Important Limitations
- Tasks only execute while
letta serveris connected - One-shot tasks are marked missed if 5+ minutes late
- Maximum 50 active tasks per agent
- All commands output JSON for scripting compatibility
Verification Checklist
- [ ]
letta serveris running - [ ]
letta cron addcreates task successfully - [ ]
letta cron listshows the task - [ ] Task executes at scheduled time
- [ ] Agent responds with expected output
- [ ] One-shot tasks are cleaned up after execution
See Also
- Headless Mode - Non-interactive execution
- Channels - Messaging platform integration
- Agents - Agent configuration