Scheduled Actions¶
Schedule one-shot future actions that execute automatically with notifications.
Usage¶
In interactive mode, ask the agent to remind you:
The agent schedules the action (a one-time action in ~/.ai-assist/event-schedules.json) → /monitor process executes it → You get notified.
Time Formats¶
in 2 hours,in 30 minutes,in 1 dayin 3h,in 15m,in 2d(short forms)tomorrow at 9amnext monday 10:00
Notification Channels¶
Configured automatically by the agent based on your request:
- desktop - System notifications (notify-send on Linux) - truncated to 500 chars
- file - Append to
~/.ai-assist/notifications.log- full result - console - Display in
/monitoroutput - full result - TUI - Auto-displayed in interactive mode - full result with Rich formatting
The agent decides the best execution strategy: - Simple reminders → Just sends notification (no agent query) - Data queries → Executes via agent, then notifies with results - Reports → Executes via agent, saves to file (optional notification)
How Actions Execute¶
Reminder-only actions (execute_query=False, stored with "reminder": true):
- Send notification directly with your reminder message
- No agent query executed (efficient for simple reminders)
- Example: "Remind me in 1 hour to watch TV" → Shows "Time to watch TV"
Query/Report actions (execute_query=True, optionally create_report=True):
- Execute the prompt via the agent
- Results sent to notification channels and/or saved as report
- Example: "Check failed jobs in 30 minutes and notify me" → Agent queries, notifies with results
Managing Actions¶
View scheduled actions:
Each one-time action is named after its description plus its scheduled time, so the same reminder can be scheduled again for another day.
Finished actions leave the schedule file: once a one-time action has run, it is moved to ~/.ai-assist/event-schedules-archive.jsonl (one JSON object per line, with status, archived_at and archive_reason: completed, failed or expired). An action whose time passed more than 24 hours ago without running (the /monitor process was down) can no longer run and is archived as expired.
View notification history:
Requirements¶
The /monitor process must be running:
Or in tmux:
For desktop notifications (Linux):
Periodic Task Notifications¶
Add notifications to actions in ~/.ai-assist/event-schedules.json:
{
"monitors": [
{
"name": "critical-failures",
"prompt": "Check for critical DCI failures",
"interval": "1h",
"notify": true,
"notification_channels": ["desktop", "file"]
}
]
}
Fields:
- notify (boolean) - Enable notifications (default: false)
- notification_channels (array) - List of channels (default: ["console"])
Troubleshooting¶
Actions not executing:
Check /monitor is running:
Desktop notifications not appearing:
Action failed:
Failures are sent as an error notification; see ~/.ai-assist/notifications.log.