Agendar agente IA (workflows, cronogramas, multi-task)
Agente IA roda 24/7, mas como agenda execuções (horários, workflows)? Moadim scheduler: open-source, git-native, agente-agnostic.
Equipe OpenClaw · Time de Engenharia & Produto
A Equipe OpenClaw é formada por engenheiros, designers e especialistas em IA dedicados a construir a melhor plataforma de agentes conversacionais para negócios brasileiros. Combinamos expertise…
Agendar agente IA (workflows, cronogramas, multi-task)
Você é founder/CEO de SaaS.
Seu SaaS: agente IA (atendimento, vendas, suporte, customer success).
Sua realidade atual:
- Agente roda: 24/7 (sempre ligado, processando queries)
- Seu problema: Agente só reage (responde quando customer fala)
- O que falta: Proatividade (agente iniciar ações em horários específicos)
- Exemplo: "Send daily summary emails at 9 AM to all customers"
- Solução atual: Manual (you build cron job yourself, AWS Lambda trigger, etc)
- Issue with DIY:
- Takes time to build (1-2 weeks)
- Fragile (breaks with infra changes)
- Not portable (locked into your stack)
- Doesn't scale (adding 10 more schedules = 10 more cron jobs)
- Your pain: "Why is scheduling so hard? Every SaaS needs this."
Moadim.io (September 2026, Show HN):
What they built:
- Product: Scheduler (daemon) for AI agents
- Architecture: Local Rust daemon you install on machine
- Git-native: Manage routines via Git repository (define schedules in code)
- Agent-agnostic: Works with any agent (OpenAI, Claude, Llama, custom)
- Multi-runner: Support multiple execution environments
- Open-source: 100% open-source (no vendor lock-in)
- Problem solved: "Scheduling agente workflows shouldn't be hard"
Scenario: You need to schedule agente tasks
BEFORE (DIY scheduling): ├─ Task 1: Daily customer summary email │ ├─ Build: AWS Lambda + CloudWatch Events │ ├─ Code: Python, 200 lines (format email, send via SES) │ ├─ Config: 5 different AWS services (IAM, Lambda, CloudWatch, SES, SNS) │ ├─ Deploy: Terraform + manual testing │ ├─ Cost: R$ 500/month (Lambda + storage + data transfer) │ ├─ Maintenance: When agente changes, update Lambda code │ └─ Time: 2 weeks to build, test, deploy ├─ Task 2: Hourly lead qualification │ ├─ Build: Another Lambda │ ├─ Code: Another 200 lines │ ├─ Config: Same AWS services, more complexity │ ├─ Cost: R$ 500/month (another Lambda, another DB connection) │ ├─ Time: Another 2 weeks │ └─ Scale problem: 10 more tasks = 10 more Lambda functions = complexity explodes ├─ Total setup time: 20+ weeks (for 10 tasks) ├─ Total monthly cost: R$ 5,000+ (infrastructure overhead) ├─ Operational burden: Your team manages scheduling (not core business) └─ Result: Scheduling becomes bottleneck (you avoid adding new scheduled tasks)
AFTER (Moadim scheduler): ├─ Task 1: Daily customer summary email │ ├─ Define: In Git repository (YAML or JSON file) │ │ ├─ Schedule: "0 9 * * *" (daily 9 AM) │ │ ├─ Agent: "my-support-agent" │ │ ├─ Action: "send_daily_summary" │ │ └─ Recipients: "[list of customers]" │ ├─ Deploy: Git push (no code changes to agente itself) │ ├─ Time: 15 minutes (define routine in Git) │ └─ Cost: R$ 0 (Moadim is open-source, runs on your machine) ├─ Task 2: Hourly lead qualification │ ├─ Define: Another routine in same Git repo │ ├─ Time: 5 minutes (copy-paste, adjust schedule) │ ├─ Deploy: Git push │ └─ Cost: R$ 0 ├─ Task 10: Another routine │ ├─ Define: Another Git entry │ ├─ Time: 5 minutes │ └─ Cost: R$ 0 ├─ Total setup time: <2 hours (for 10 tasks) ├─ Total monthly cost: R$ 0 (just server cost for your agente) ├─ Operational burden: Minimal (Git = version control, audit trail) └─ Result: Scheduling is trivial (add routines without friction)
COMPARISON: ├─ DIY Lambda approach: 20 weeks, R$ 5K/month, complex ops ├─ Moadim approach: 2 hours, R$ 0/month, simple ops ├─ Winner: Moadim (100x faster, 5,000x cheaper, infinitely simpler) └─ Reality: Your team can focus on agente logic, not infrastructure
O problema (scheduling agentes é operacionalmente complexo)
Why scheduling is hard (and why you need Moadim)
Current state of agent scheduling:
Option 1: DIY (build your own scheduler) ├─ Pros: │ ├─ Full control (customize exactly what you need) │ ├─ No vendor lock-in (you own the code) │ └─ Potential cost savings (if you do it right) ├─ Cons: │ ├─ Takes 2-4 weeks to build (engineering effort) │ ├─ Fragile (breaks when infra changes) │ ├─ Not portable (locked to your stack) │ ├─ Maintenance burden (your team owns it forever) │ ├─ Testing complexity (scheduling bugs are hard to debug) │ ├─ Scaling issues (each new routine = new cron job = complexity) │ └─ Cost: R$ 500+ infrastructure + R$ 50K+ engineering time └─ Result: Scheduling becomes operational burden (people avoid adding new tasks)
Option 2: Cloud provider solution (AWS EventBridge, Google Cloud Scheduler, etc) ├─ Pros: │ ├─ Fully managed (AWS handles uptime) │ ├─ Reliable (battle-tested by millions) │ └─ Easy setup (GUI, no code needed) ├─ Cons: │ ├─ Vendor lock-in (you're stuck with AWS) │ ├─ Cost adds up (R$ 500+ per month for multiple schedules) │ ├─ Complexity for multi-cloud (if you use GCP + AWS) │ ├─ Not agent-agnostic (each solution is different) │ ├─ Limited flexibility (can't customize beyond what AWS offers) │ └─ Slow to change (need to use AWS console, not code) └─ Result: Works, but expensive and inflexible
Option 3: Moadim.io (open-source agent scheduler) ├─ Pros: │ ├─ Open-source (no vendor lock-in, no cloud costs) │ ├─ Git-native (manage routines in Git = version control + audit trail) │ ├─ Agent-agnostic (works with any agente, any LLM) │ ├─ Multi-runner (run on multiple machines, failover built-in) │ ├─ Easy to use (define routines = simple config) │ ├─ Portable (works on-prem, cloud, hybrid) │ ├─ Scalable (add routines without complexity) │ └─ Cost: R$ 0 (just server infra, same as agente) ├─ Cons: │ ├─ Need to run daemon (not fully managed, some ops burden) │ ├─ Community project (not backed by big company) │ └─ Requires technical setup (not a GUI, Git-based workflow) └─ Result: Best option for SaaS teams (flexibility + cost + simplicity)
Real cost of poor scheduling
What happens when you don't have scheduler:
Scenario: You build agente, want to add scheduled tasks
Month 1: Simple scheduling (daily email) ├─ Approach: Build AWS Lambda + EventBridge ├─ Time: 2 weeks ├─ Cost: R$ 500/month infrastructure + R$ 20K engineering ├─ Result: Works, but feels like overkill └─ Lesson: "Scheduling was harder than building agente itself"
Month 2: Add more scheduled tasks (hourly check-in, weekly report) ├─ Approach: Add more Lambda functions (copy-paste previous) ├─ Time: 1 week (faster, but still tedious) ├─ Cost: +R$ 500/month infrastructure ├─ Problem: Infrastructure getting complex └─ Realization: "We need a better approach"
Month 3: CEO wants 10 more scheduled tasks (quarterly business reviews, daily metrics, etc) ├─ Approach: Build 10 more Lambda functions ├─ Time: 10+ weeks (would need dedicated engineer) ├─ Cost: +R$ 5,000/month infrastructure ├─ Problem: Infrastructure is now a monster (20+ Lambda functions, impossible to track) ├─ Reality: Can't do it (team says "scheduling is too hard") └─ Consequence: CEO's features don't get built (agente is bottleneck)
Month 6: Team exhausted, scheduling is bottleneck ├─ Situation: 50+ potential scheduled tasks, but only 10 implemented ├─ Problem: Adding new routine takes 1 week (not 15 minutes) ├─ Cost: R$ 10K/month infrastructure + R$ 100K+ engineering time ├─ Culture: Team avoids scheduling (it's painful) └─ Realization: "We built this wrong. Need different approach."
Mont 12: Migrating to Moadim (could have had this from day 1) ├─ Setup: 1 day (install daemon, define routines in Git) ├─ Cost: R$ 0/month (just servers, same as agente) ├─ Time per new task: 15 minutes (Git PR, merge, done) ├─ Culture: Team embraces scheduling (it's easy) └─ Regret: "We wasted 6 months + R$ 50K+ on wrong approach"
A solução (Moadim for agent scheduling)
How Moadim works (architecture + workflow)
Basic setup:
-
Install Moadim daemon on your machine ├─ Download: Binary or Docker image ├─ Install: Single command (moadim install) ├─ Configure: Point to your Git repository └─ Start: moadim start (runs in background)
-
Define routines in Git ├─ Create: routines/ folder in your Git repo ├─ Add: YAML files (each = one scheduled task) ├─ Example file: daily-summary.yaml │ ├─ schedule: "0 9 * * *" (every day 9 AM) │ ├─ agent: "support-agent" │ ├─ action: "send_daily_summary" │ └─ recipients: ["customer@example.com"] └─ Commit: Git push (that's it)
-
Moadim daemon monitors Git ├─ Polls: Your Git repo for changes ├─ Detects: New routines (automatically loads) ├─ Executes: On schedule (9 AM = sends summary) ├─ Logs: All executions (audit trail in Git) └─ Handles: Failures, retries, multi-runner failover
-
Multi-runner support ├─ If main machine down: Secondary runner takes over ├─ If routine fails: Auto-retry (configurable) ├─ If execution slow: Parallel runners share load └─ Result: Highly available (no single point of failure)
Practical example (daily customer email): yaml
routines/daily-summary.yaml
name: "Daily Customer Summary" schedule: "0 9 * * *" # Every day at 9 AM agent: "support-agent" action: "send_daily_summary"
parameters: template: "daily-summary-email" recipients: "all-customers" include_metrics: - ticket_count - satisfaction_score - pending_issues
retry: max_attempts: 3 backoff: "exponential"
notify_on_failure:
Git workflow (how to add new routine):
-
Developer creates branch $ git checkout -b add-weekly-report
-
Add routine file $ cat > routines/weekly-report.yaml << EOF name: "Weekly Business Report" schedule: "0 8 * * MON" # Every Monday 8 AM agent: "analytics-agent" action: "generate_weekly_report" recipients: "executives@company.com" EOF
-
Commit and push $ git add routines/weekly-report.yaml $ git commit -m "Add weekly business report routine" $ git push
-
Create Pull Request $ gh pr create --title "Add weekly report" --body "Schedule: Monday 8 AM. Sends executive summary."
-
Team reviews (optional, for critical routines) $ # PR gets reviewed, approved
-
Merge to main $ git merge
-
Moadim detects change ├─ Polls Git repo (every 5 minutes) ├─ Sees new routine file ├─ Loads routine (validates config) ├─ Starts scheduler └─ First execution: Next Monday 8 AM
-
Execution logged ├─ Time: 2026-09-09 08:00:00 ├─ Status: SUCCESS ├─ Output: Report generated, 45 recipients notified ├─ Duration: 15 seconds └─ Logged to: stdout + syslog (your logs)
Comparison (Moadim vs alternatives)
Decision matrix:
Criteria | DIY Lambda | EventBridge | Moadim ───────────────────────────────────────────────────────── Setup time | 2 weeks | 1 day | 1 hour Cost/routine | R$ 500+ | R$ 100 | R$ 0 Vendor lock-in | No (AWS) | Yes (AWS) | No Agent-agnostic | Yes | No | Yes Version control | No | No | Yes (Git) Multi-cloud support | No | No | Yes Learning curve | High | Medium | Low Scalability | OK | Good | Excellent Total cost (10 routines) | R$ 50K | R$ 1K | R$ 0 ─────────────────────────────────────────────────────────
Recommendation: ├─ Startup/MVP: Use Moadim (fast, cheap, flexible) ├─ Enterprise: Consider EventBridge (fully managed, at scale) ├─ Never: DIY (waste of engineering time) └─ Best practice: Start with Moadim, migrate only if you outgrow it
Implementation (how to use Moadim)
Step-by-step setup
Phase 1: Install (30 minutes)
-
Download Moadim $ curl -sSL https://moadim.io/install.sh | bash
Or use Docker
$ docker run -d moadim/daemon:latest
-
Configure daemon $ moadim config set git-repo https://github.com/company/agente-repo $ moadim config set agent-endpoint http://localhost:8000 $ moadim config set poll-interval 300 # Check Git every 5 min
-
Start daemon $ moadim start
Should see: "Daemon started. Monitoring routines..."
-
Verify $ moadim status
Output: Running, 0 routines loaded, Git sync OK
Phase 2: Define first routine (15 minutes)
-
Create routine file $ cat > routines/welcome-email.yaml << EOF name: "Welcome Email to New Customers" schedule: "0 10 * * *" # Daily 10 AM agent: "support-agent" action: "send_welcome_email" parameters: batch_size: 100 template: "welcome-v1" EOF
-
Commit to Git $ git add routines/welcome-email.yaml $ git commit -m "Add welcome email routine" $ git push
-
Verify Moadim loaded it $ moadim list-routines
Output: welcome-email (schedule: 0 10 * * *)
-
Check logs $ moadim logs
Should see: "Loaded routine: welcome-email"
Phase 3: Monitor execution (ongoing)
-
Check routine status $ moadim status welcome-email
Output: Next run: 2026-09-09 10:00:00, Last run: 2026-09-08 10:00:00
-
View execution logs $ moadim logs welcome-email --last 10
Shows last 10 executions (time, status, output)
-
Test routine manually $ moadim run welcome-email
Executes routine immediately (not waiting for schedule)
Useful for testing before schedule time
-
Set up alerts $ moadim config set alert-email ops@company.com $ moadim config set alert-on-failure true
Will email ops@company.com if routine fails
Phase 4: Scale (add more routines)
As your needs grow: ├─ Week 1: 1 routine (welcome email) ├─ Week 2: Add 3 more routines (daily report, hourly check-in, weekly summary) ├─ Week 4: Add 10 more routines (no extra effort) ├─ Month 2: Add 50+ routines (still trivial) └─ Result: Scaling is painless (just Git PR per routine)
Time per routine: 15 minutes (define YAML, Git push, done) Cost per routine: R$ 0 (Moadim is free) Ops burden: Minimal (Git = version control + audit)
Conclusão: Scheduling agentes should be easy (Moadim makes it so)
Signal (Moadim launches as open-source agent scheduler):
- Agent scheduling is critical operational requirement (not optional)
- DIY scheduling wastes months + expensive infrastructure
- Cloud provider solutions work but create vendor lock-in
- Moadim offers better trade-off (open-source + Git-native + agent-agnostic)
- Show HN community validates need (people asked for this)
Sua situação atual:
- Your agente IA responds to customer queries (reactive)
- You want to add scheduled tasks (proactive, harder than it should be)
- DIY approach would take 2-4 weeks + R$ 500+/month
- Cloud provider solution costs R$ 100+/month per routine
- You need better option (Moadim fits)
Seu impacto financeiro:
- Agente scheduling DIY: R$ 50K+ engineering + R$ 500+/month infra
- Agente scheduling with Moadim: R$ 0 engineering + R$ 0/month cost
- Savings: R$ 50K+ + R$ 500+/month recurring
- Speedup: 2 weeks → 15 minutes per routine
- Flexibility: Vendor lock-in eliminated
Sua choice:
Option 1: DIY (build your own scheduler)
- Pros: Full control
- Cons: 2-4 weeks per routine, expensive, fragile
- Cost: R$ 50K+ engineering time
Option 2: Cloud provider (EventBridge, Cloud Scheduler, etc)
- Pros: Managed, reliable
- Cons: Vendor lock-in, expensive at scale
- Cost: R$ 100-500+ per month per routine
Option 3: Moadim.io (open-source agent scheduler) - RECOMMENDED
- Pros: Open-source, Git-native, agent-agnostic, free
- Cons: Need to run daemon (minor ops burden)
- Cost: R$ 0
At OpenClaw, we help SaaS teams implement agent scheduling (Moadim or alternatives):
- ASSESS: What scheduling patterns do your agentes need?
- DESIGN: Optimal routine structure (frequency, failover, monitoring)
- IMPLEMENT: Install + configure Moadim (or alternative)
- TEST: Validate routines before production deployment
- MONITOR: Set up alerts, logging, audit trail
- SCALE: Add 100+ routines without complexity
Result: Your agentes execute proactive tasks on schedule (not reactive only), no vendor lock-in, minimal ops burden, zero scheduling costs.
Your agente IA needs to execute scheduled tasks (proactive automation)?
You're tired of DIY scheduling complexity (AWS Lambda, custom crons)?
You want to add 50+ routines without infrastructure nightmare?
You want open-source scheduler (no vendor lock-in, Git-native management)?
You want zero additional cost (Moadim is free, just server infra)?
If you don't know where to start OR want expert implementation (1-day setup, routine design, production deployment, monitoring setup):
Publicado em 5 de setembro de 2026