agentleFS
LeostrukaLeostruka/devin-bundle/skills/scheduled-turns/SKILL.md

scheduled-turns

Skill0 starsChanged 4 months agoMITView on GitHub

Use when a task needs recurring or always-on agent turns (periodic checks, polling workflows, run-this-every-morning jobs) without adding a daemon. OS scheduler plus one-shot headless Devin turns writing to ledgers.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the turn prompt to the project as .devin/scheduled/<name>.md (what to check, where to write results, when to stop).

    line 27
  2. Distinctive:

    No secrets in prompt files, task arguments, or ledger output.

    line 56
  3. Very specific:

    Delete .devin/scheduled/<name>.md to retire the turn's instructions.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Scheduled Turns

Runs an agent turn on an OS schedule. Each fire is a FRESH one-shot session (devin -p), never re-entry into a live session, never a daemon, matching the runtime's single-process model (AGENTS.md Rule 18; heartbeat/session-checkpoint emulations were pruned for this reason).

When to Use

  • Recurring chores: inbox triage, dep-update checks, report generation
  • "Always-on" behavior for an otherwise session-bound agent

When NOT to Use

  • Sub-hour cadence or real-time reaction: use cu-realtime or browser.py events inside a live session
  • Anything needing conversation continuity: each turn is amnesiac, so persist state in files the next turn reads

Recipe

  1. Write the turn prompt to the project as .devin/scheduled/<name>.md (what to check, where to write results, when to stop).
  2. Register one OS scheduled task per turn:

    Windows (PowerShell, run once by the user):

    $act = New-ScheduledTaskAction -Execute "devin" `
      -Argument "-p --prompt-file .devin/scheduled/<name>.md --respect-workspace-trust false" `
      -WorkingDirectory "C:\path\to\project"
    $trg = New-ScheduledTaskTrigger -Daily -At 09:00
    Register-ScheduledTask -TaskName "devin-<name>" `
      -Action $act -Trigger $trg

    POSIX cron equivalent: 0 9 * * * cd /path && devin -p --prompt-file .devin/scheduled/<name>.md --respect-workspace-trust false >> .devin/ledgers/scheduled-<name>.log 2>&1

  3. Each run appends outcome evidence to .devin/ledgers/scheduled-<name>.md: outcome, what ran, next check. The ledger is the inter-turn memory; prompts must name the files a turn should read first.

Guards

  • One instance per task: the scheduled script writes a lock file and exits when it exists (stale locks older than 24h are removed).
  • Schedules are user-approved once; the agent never registers or edits a task itself. It writes the prompt file and the user runs the register command.
  • No secrets in prompt files, task arguments, or ledger output.
  • --respect-workspace-trust false is required: print mode cannot show the workspace trust prompt, so an untrusted dir fails without it.
  • Turns are bounded: the prompt must state a hard stop condition and a max runtime expectation; a turn that cannot finish writes ABANDON: <reason> to its ledger instead of hanging.

Disable

Unregister-ScheduledTask -TaskName "devin-<name>" -Confirm:$false
# cron: remove the crontab line

Delete .devin/scheduled/<name>.md to retire the turn's instructions.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.