Langsung ke konten
Skillpedia
Agen48k Β· #3673

agent-self-scheduling

Fungsinya

Agent ini membantu menjadwalkan tugas yang akan dijalankan AI pada waktu tertentu atau dengan interval yang teratur. Agent ini juga memastikan tugas tidak dijalankan terlalu sering atau dengan cara yang tidak aman.

Kapan dipakai

  • βœ“Saat Anda ingin AI memeriksa email setiap hari pukul 9 pagi.
  • βœ“Saat Anda perlu AI mengirim laporan setiap 10 menit.
  • βœ“Saat Anda ingin AI menjalankan tugas sekali dalam 30 menit.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-self-scheduling/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-self-scheduling/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œJadwalkan tugas untuk memeriksa email saya setiap hari pukul 8 pagi.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent ini menggunakan sistem penjadwalan seperti 'cron' atau pengatur waktu bawaan untuk menentukan kapan tugas harus dijalankan. Agent ini juga mencegah tugas berjalan terlalu berdekatan agar tidak membebani sistem atau menyebabkan error.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Agent Self-Scheduling

When to Use

  • Use when the user asks for recurring, scheduled, heartbeat, or looped agent work.
  • Use when you need to choose between cron, external schedulers, hooks, or built-in agent scheduling.

Scheduling requires a direct user request; a guide or task-list entry is not permission to create background work. Preserve timezone, cadence, notification preferences and stop conditions; update an existing matching job instead of duplicating it. External messages and posting require explicit authorization.

First inspect the actual host: prefer its supported scheduler/heartbeat when available (including Codex automations); otherwise use an explicitly authorized external clock. Host capabilities are not determined solely by the runtime name.

Traditional five-field cron has one-minute granularity; other schedulers differ. Prefer event-driven checks and an appropriate cadence. Avoid tight LLM timers and indefinite loops.

Camp A β€” one-shot agents, you own the clock

These run once and exit (amnesiac unless resumed). Schedule them externally.

claude -p "PROMPT" --output-format json --allowedTools "Read"  # Claude Code
codex exec --json "PROMPT"                                                # Codex
pi run "PROMPT"                                                           # Pi

Wrap in a clock:

# 1. cron (>= 1 min floor)
*/10 * * * * cd /path/to/project && pi run "check X and report" >> ~/agent.log 2>&1
# 2. systemd timer (Linux, survives reboot, better logging) β€” OnUnitActiveSec=10min
# 3. dumb loop (sub-minute, or no cron available)
# If an external loop is required, bound its lifetime and implement a stop flag and overlap lock.
# Do not install an indefinite model-calling loop by default.

Gotchas (each breaks unattended runs if ignored):

  • Permissions hang forever. Use the host's supported narrowly scoped permissions for the agreed task. Do not disable sandboxing or broadly auto-approve commands to avoid an unattended prompt; report unavailable required approval.
  • Use JSON output (--output-format json / --json) so the wrapper parses results deterministically.
  • Runs are amnesiac. Resume the exact recorded task/session ID or persist private scoped state. --last can select an unrelated task and is unsuitable for an unattended multi-project schedule.

Pi has NO built-in scheduler/loop/heartbeat by design β€” external clock only (or a TS extension for agent-side timers).

cmux β€” orchestration only, NO scheduler

cmux has no timer/watch/cron. Three ways to loop it: orchestrator-driven (send β†’ sleep β†’ read-screen on your own clock), a dumb while-sleep wrapper, or β€” preferred β€” event-driven via cmux notify + OSC terminal hooks, which is cheaper and more responsive than polling. read-screen is non-interruptive, safe to poll.

For a monitor, stay quiet while state is unchanged unless the user requests periodic updates; notify on meaningful change, completion, failure or needed input. (Claude Code may prefill a predicted next user message after finishing β€” that's Claude, not the user.)

Camp B β€” Hermes built-in scheduler

Hermes' gateway ticks every 60s and runs due jobs in fresh isolated sessions. State-check first:

hermes gateway install            # user-level ( --system to survive reboot)
hermes cron create "every 1h" "summarize new emails and report" --skill himalaya
hermes cron create "0 9 * * *" "post daily standup"      # cron expr
hermes cron create "30m" "one-shot reminder in 30 min"   # one-shot delay

Hermes-unique: zero-token mode (run a script, deliver stdout verbatim β€” use for watchdogs), chaining (context_from pipes one job's output into the next), self-terminating loops, and loop safety (scheduled sessions cannot create more cron jobs β€” don't schedule from inside a scheduled job). Each run is a fresh session: the prompt must carry all context.

Heartbeat pattern

One fast recurring tick gates many slower per-task checks: the tick reads a task list + per-task last_run timestamps and only acts on tasks that are due. In Hermes use a recurring job (zero-token mode when nothing's due); in Camp A use a while-sleep loop. Define active-hours, and stay silent when nothing is due β€” no empty noise.

Verify it fires (before reporting success)

  1. Camp A: log file grows after one interval, or run the wrapped command once by hand β†’ clean JSON, exit 0.

…

Pertanyaan umum

Apa itu 'cron'?

Cron adalah sistem yang umum digunakan di komputer untuk menjadwalkan perintah agar dijalankan pada waktu tertentu.

Bisakah saya menjadwalkan tugas agar berjalan setiap menit?

Umumnya tidak. Penjadwalan tercepat yang biasa digunakan adalah 1 menit, dan menjadwalkan tugas yang terlalu berdekatan bisa berisiko.

Apa yang terjadi jika AI membutuhkan izin untuk tugas yang dijadwalkan?

AI harus meminta izin Anda dan tidak bisa melanjutkan tanpa izin tersebut, terutama untuk tugas yang mengubah file atau mengakses informasi sensitif.

Detail

Deskripsi asli dari pembuat

Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers.

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#3673
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa