Initial commit: Ajarbot with optimizations
Features: - Multi-platform bot (Slack, Telegram) - Memory system with SQLite FTS - Tool use capabilities (file ops, commands) - Scheduled tasks system - Dynamic model switching (/sonnet, /haiku) - Prompt caching for cost optimization Optimizations: - Default to Haiku 4.5 (12x cheaper) - Reduced context: 3 messages, 2 memory results - Optimized SOUL.md (48% smaller) - Automatic caching when using Sonnet (90% savings) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
90
config/scheduled_tasks.example.yaml
Normal file
90
config/scheduled_tasks.example.yaml
Normal file
@@ -0,0 +1,90 @@
|
||||
# Scheduled Tasks Configuration (EXAMPLE)
|
||||
# Copy this to scheduled_tasks.yaml and customize with your values
|
||||
|
||||
tasks:
|
||||
# Morning briefing - sent to Slack/Telegram
|
||||
- name: morning-weather
|
||||
prompt: |
|
||||
Good morning! Please provide a weather report and daily briefing:
|
||||
|
||||
1. Current weather (you can infer or say you need an API key)
|
||||
2. Any pending tasks from yesterday
|
||||
3. Priorities for today
|
||||
4. A motivational quote to start the day
|
||||
|
||||
Keep it brief and friendly.
|
||||
schedule: "daily 06:00"
|
||||
enabled: true
|
||||
send_to_platform: "telegram"
|
||||
send_to_channel: "YOUR_TELEGRAM_USER_ID" # Replace with your Telegram user ID
|
||||
|
||||
# Evening summary
|
||||
- name: evening-report
|
||||
prompt: |
|
||||
Good evening! Time for the daily wrap-up:
|
||||
|
||||
1. What was accomplished today?
|
||||
2. Any tasks still pending?
|
||||
3. Preview of tomorrow's priorities
|
||||
4. Weather forecast for tomorrow (infer or API needed)
|
||||
|
||||
Keep it concise and positive.
|
||||
schedule: "daily 18:00"
|
||||
enabled: false
|
||||
send_to_platform: "telegram"
|
||||
send_to_channel: "YOUR_TELEGRAM_USER_ID"
|
||||
|
||||
# Hourly health check (no message sending)
|
||||
- name: system-health-check
|
||||
prompt: |
|
||||
Quick health check:
|
||||
|
||||
1. Are there any tasks that have been pending > 24 hours?
|
||||
2. Is the memory system healthy?
|
||||
3. Any alerts or issues?
|
||||
|
||||
Respond with "HEALTHY" if all is well, otherwise describe the issue.
|
||||
schedule: "hourly"
|
||||
enabled: false
|
||||
username: "health-checker"
|
||||
|
||||
# Weekly review on Friday
|
||||
- name: weekly-summary
|
||||
prompt: |
|
||||
It's Friday! Time for the weekly review:
|
||||
|
||||
1. Major accomplishments this week
|
||||
2. Challenges faced and lessons learned
|
||||
3. Key metrics (tasks completed, etc.)
|
||||
4. Goals for next week
|
||||
5. Team shoutouts (if applicable)
|
||||
|
||||
Make it comprehensive but engaging.
|
||||
schedule: "weekly fri 17:00"
|
||||
enabled: false
|
||||
send_to_platform: "slack"
|
||||
send_to_channel: "YOUR_SLACK_CHANNEL_ID"
|
||||
|
||||
# Custom: Midday standup
|
||||
- name: midday-standup
|
||||
prompt: |
|
||||
Midday check-in! Quick standup report:
|
||||
|
||||
1. Morning accomplishments
|
||||
2. Current focus
|
||||
3. Any blockers?
|
||||
4. Afternoon plan
|
||||
|
||||
Keep it brief - standup style.
|
||||
schedule: "daily 12:00"
|
||||
enabled: false
|
||||
send_to_platform: "slack"
|
||||
send_to_channel: "YOUR_SLACK_CHANNEL_ID"
|
||||
|
||||
# Configuration notes:
|
||||
# - schedule formats:
|
||||
# - "hourly" - Every hour on the hour
|
||||
# - "daily HH:MM" - Every day at specified time (24h format)
|
||||
# - "weekly day HH:MM" - Every week on specified day (mon, tue, wed, thu, fri, sat, sun)
|
||||
# - send_to_platform: null = don't send to messaging (only log)
|
||||
# - username: Agent memory username to use for this task
|
||||
Reference in New Issue
Block a user