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.
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/project-bootstrap/templates/agents.mdAGENTS.md
- a11y-auditSkill
- ai3d-genSkill
- ai-coding-dictionarySkill
- ai-toolsSkill
- api-specSkill
- architecture-diagramsSkill
- architectureSkill
- ask-bundleSkill
- bragSkill
- code-reviewSkill
- computer-useSkill
- context7Skill
- context-hygieneSkill
- creative-engineeringSkill
- cu-realtimeSkill
- data-analystSkill
- databaseSkill
- debuggingSkill
- deploySkill
- devin-configSkill
- dispatching-parallel-agentsSkill
- dockerSkill
- e2e-testingSkill
- executionSkill
- fact-checkSkill
- finishing-a-development-branchSkill
- gatesSkill
- ghSkill
- git-workflowsSkill
- grillingSkill
- handoffSkill
- humanizerSkill
- i18nSkill
- impeccableSkill
- implement-layaSkill
- intakeSkill
- jiraSkill
- knowledge-modelingSkill
- mcp-governanceSkill
- media-toolsSkill
- memory-managementSkill
- mesh-utilsSkill
- observability-qualitySkill
- obsidian-workflowSkill
- operate-blenderSkill
- operate-godotSkill
- performanceSkill
- planningSkill
- playbookSkill
- project-bootstrapSkill
- project-orchestratorSkill
- prompt-compilerSkill
- prototypeSkill
- researchSkill
- scanSkill
- scrape-toolsSkill
- securitySkill
- self-improvementSkill
- The first 60 shown.
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
- Very specific: line 27
Write the turn prompt to the project as .devin/scheduled/<name>.md (what to check, where to write results, when to stop).
- Distinctive: line 56
No secrets in prompt files, task arguments, or ledger output.
- Very specific: line 70
Delete .devin/scheduled/<name>.md to retire the turn's instructions.
≈ “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.
Files
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-realtimeorbrowser.py eventsinside a live session - Anything needing conversation continuity: each turn is amnesiac, so persist state in files the next turn reads
Recipe
- Write the turn prompt to the project as
.devin/scheduled/<name>.md(what to check, where to write results, when to stop). 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 $trgPOSIX 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- 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 falseis 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 lineDelete .devin/scheduled/<name>.md to retire the turn's instructions.
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
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.

