Install
openclaw skills install agent-dreamsStrategies for productive agent idle time using heartbeats and cron jobs. Use when setting up proactive behaviors, scheduling background tasks, or making you...
openclaw skills install agent-dreamsMake your agent productive during idle time. This skill teaches patterns for using heartbeats and cron jobs so your agent works while you sleep.
Most agents sit idle 95% of the time. Agent Dreams turns that idle time into productive work — checking inboxes, maintaining memory, monitoring systems, and pursuing creative projects.
Heartbeats fire every ~30 minutes when configured. Use HEARTBEAT.md in your workspace to tell your agent what to do on each heartbeat.
# Heartbeat Checklist
Check these in rotation (2-4 per heartbeat, don't do all every time):
## Priority Checks
- [ ] Unread emails — anything urgent?
- [ ] Calendar — events in next 2 hours?
- [ ] Mentions — Twitter/Discord notifications?
## Maintenance
- [ ] Review today's memory file — anything to add to MEMORY.md?
- [ ] Git status — uncommitted work?
- [ ] Check running processes — anything stuck?
## Creative (when nothing else needs attention)
- [ ] Write a journal entry
- [ ] Draft a social post
- [ ] Work on side project in projects/ folder
## State Tracking
Last email check: [timestamp]
Last calendar check: [timestamp]
Last memory review: [timestamp]
Track what you've checked in memory/heartbeat-state.json:
{
"lastChecks": {
"email": 1703275200,
"calendar": 1703260800,
"weather": null,
"memory_review": 1703200000
},
"lastActivity": 1703275200
}
Use cron for precise, scheduled tasks. Create via OpenClaw CLI or API.
| Pattern | Cron Expression | Use Case |
|---|---|---|
| Every morning | 0 9 * * * | Daily briefing, weather check |
| Every Monday | 0 10 * * 1 | Weekly summary, planning |
| Every 6 hours | 0 */6 * * * | Social media check |
| Twice daily | 0 9,17 * * * | Morning/evening roundup |
| First of month | 0 10 1 * * | Monthly review |
Morning Briefing (9 AM):
Check weather, calendar for today, unread emails.
Compose a brief summary and send to main channel.
Memory Maintenance (weekly):
Review all memory/YYYY-MM-DD.md files from the past week.
Update MEMORY.md with significant events and lessons.
Archive or summarize old daily files.
Social Pulse (every 6h):
Check Twitter mentions and DMs.
Review any Discord channels for relevant conversations.
Post something interesting if inspiration strikes.
Things your agent can do without asking:
Respect your human's schedule:
❌ Don't check everything every heartbeat (token waste) ❌ Don't send messages just to show you're active ❌ Don't repeat the same check within 30 minutes ❌ Don't start big projects without confirming with the user ❌ Don't ignore errors — log them for the human to review
HEARTBEAT.md in your workspace using the template abovememory/heartbeat-state.json to track check timestamps