The argument in one line.
Claude Code scheduled tasks run a full agent on a cron, not a script, which means they self-heal errors, rewrite their own prompts, and improve over time when paired with a single overwritten run-log file.
Read if. Skip if.
- You already use Claude Code and have built at least one skill or automation you run manually.
- You want background processes that run while you sleep without babysitting or permission prompts.
- You have brittle Python cron scripts that error and stop with no recovery.
- You are building a personal executive assistant layer on top of your Claude Code workflow.
- You have never opened Claude Code — this tutorial assumes familiarity with skills and sessions.
- You need server-side or headless automation — scheduled tasks require the desktop app open on an awake machine.
The full version, fast.
Claude Code now supports native scheduled tasks: a cron fires, a fresh session starts, the agent reads your prompt and tools, does the work, and closes with no human needed. Unlike a Python script, the agent self-heals errors and can rewrite its own code and prompt between runs. The critical design pattern is a single overwritten run-log file per task structured as Pre-Flight (read last run), Main Task, and Post-Run (overwrite log), which keeps context lean and lets each new session pick up where the last one left off without ballooning an append log.
Chat with this breakdown.
Modern Creator members can chat with any breakdown — ask for the hook, quote a framework, find the exact transcript moment. Unlocks at T2: refer 3 friends + add your own API key.
Create a free account →Where the time goes.

01 · Hook & Feature Announcement
Cold open frames scheduled tasks as a 24/7 AI employee. Two setup paths introduced: Schedule tab UI and /schedule slash command.

02 · Creating a Task in the UI
Live demo of the New Scheduled Task form: name, description, prompt, model, folder, frequency. Morning coffee task shown active at 6:09 AM daily.

03 · Scheduled Tasks: Prompt on a Cron
Illustrated flow: Cron Fires, Session Starts, Gets Tools, Runs & Closes. Establishes this is a full agent session, not a triggered function.

04 · Script vs Agent
Side-by-side comparison diagram. Cron Script: fixed steps, no context, no recovery. Claude Code Agent: codebase, reasoning, skills, MCP tools, self-healing loop.

05 · Morning Coffee Demo
Live conversion of an existing skill into a scheduled daily task using a single natural language prompt. Task live in under 60 seconds.

06 · Skills Discovery
Demo showing Claude listing all available project skills on request, illustrating how any skill becomes a candidate for weekly automation.

07 · The One Gotcha: Machine Must Be Awake
Illustrated slide: if the laptop is asleep the task is skipped, but on wake the app checks 7 days back and catches up. Time-sensitive tasks may not recover cleanly.

08 · What Scheduled Tasks Cannot Do
Four-quadrant slide: No Git Push, No Destructive Ops, No Shared Memory by default, Needs Your Keys. Recommendation to do a manual test run first.

09 · Self-Improving Loop: Three Layers
Illustrated three-layer diagram: fix scripts on error, rewrite own prompt when improvements are found, maintain a run log for memory across stateless sessions.

10 · The Lean Strategy: One File Per Task
Live Claude conversation showing the recommended run-log pattern. One overwritten markdown file per task, not an append log. Prompt structure: Pre-Flight, Main Task, Post-Run.

11 · Notifications, Hooks & External Alerts
Desktop app notification diagram. Audio hook demo. Recommendation to add a ClickUp/messaging step at the end of each task prompt for external notification.

12 · Create vs Edit vs Run: Architecture
Three-section diagram showing the desktop app creates and runs tasks, the file system stores editable task files, and VS Code can edit but not create or trigger crons.

13 · CTA & Close
Outro linking to a project setup video. Standard like/subscribe ask.
Lines worth screenshotting.
- Claude Code scheduled tasks run a full agent session on a cron, not a script, so error recovery and self-modification are in play from the first run.
- A cron script has no context and a fixed path; a Claude Code agent has your entire codebase, MCP tools, email, APIs, and reasoning.
- The self-improving loop has three layers: fix its own code, rewrite its own prompt, and log state for the next run.
- One overwritten log file per task keeps context under 30 lines and does not bloat the session token window the way an append log does after a thousand runs.
- The prompt structure that works: Pre-Flight (read last log, fix known issues), Main Task, Post-Run (overwrite log with status, issues, state).
- Tasks only run while the desktop app is open on an awake machine, making this a personal-machine automation pattern, not a server-side one.
- If the machine was asleep, the app checks back 7 days on wake and runs missed tasks, useful but not reliable for time-sensitive work.
- You can make tasks deterministic by having them just execute a script; agentic flexibility is opt-in, not forced.
- The desktop app is the only place that can create or trigger scheduled tasks; VS Code and terminal can only read and edit the underlying files.
- Setting up a task takes one sentence: tell Claude to turn your skill into a scheduled task at a given time and it handles the rest.
- Always run a new task manually before leaving it on schedule to flush permission prompts that would otherwise pause an unattended run.
- Deny lists in project settings are how you guard against destructive autonomous actions and should be configured before any task runs unsupervised.
- Self-healing means the agent tries multiple alternatives when it hits an error, then updates itself so it does not repeat the mistake next run.
- Shared memory between stateless sessions lives on disk: a markdown file the agent reads at start and overwrites at end.
Automation that fixes itself while you sleep.
The shift from cron scripts to agent sessions is the difference between automation that stops when something breaks and automation that diagnoses the problem, fixes its own code, and runs correctly the next time.
- Scheduled tasks run a full Claude Code agent, not a script, so error recovery, tool access, and self-modification are all in play from the first run.
- The stateless design is intentional: each session starts clean to prevent context bloat, but requires an explicit on-disk memory pattern to accumulate improvement over time.
- One overwritten log file per task, not an append log, keeps context short enough to fit in a session without degrading over hundreds of runs.
- The three-layer self-improvement loop means fix code on error, rewrite the prompt when improvements are spotted, and update the run log each time, so a well-structured task gets more reliable the longer it runs unsupervised.
- The desktop-app-only constraint is architectural, not a polish gap: the cron scheduling mechanism lives in the app, not in files any process can trigger.
- Always run a new task manually before leaving it on schedule to flush permission prompts that would otherwise silently pause an unattended run.
- Any existing Claude Code skill becomes a scheduled automation with one sentence of natural language instruction, making the activation cost near zero once the skill exists.
Terms worth knowing.
- Scheduled task
- A Claude Code feature that fires a full agent session on a cron schedule from the desktop app, running a prompt with access to all project tools, then closing when done.
- Self-healing agent
- An agent that, when it encounters an error, tries multiple recovery approaches and then edits its own code or prompt so the same error does not recur on the next scheduled run.
- Stateless session
- A fresh Claude Code session with no memory of previous conversations; each scheduled task run starts from zero unless context is explicitly loaded from a file on disk.
- Run log
- A single markdown file per scheduled task that the agent overwrites at the end of each run with current status, issues, and state, giving the next session a compact handoff without accumulating history.
- Pre-Flight / Post-Run
- The two bookend phases of a well-structured scheduled task prompt: Pre-Flight reads the last run log and fixes known issues before the main task, Post-Run overwrites the log with new state after the main task completes.
- Deny list
- A project-level permission setting in Claude Code that explicitly forbids certain bash commands (like delete or remove), used to prevent autonomous tasks from taking destructive actions without review.
Lines you could clip.
“This is not a deterministic workflow. And that is the huge unlock.”
“You are no longer the bottleneck, and these skills and workflows can actually get better and better over time automatically.”
“If you run an automation a thousand times, then you might have a thousand append logs.”
“The only bridge between runs is files on disk.”
Word for word.
The bait, then the rug-pull.
A clock graphic, a deadpan punchline, and a feature that actually delivers: Claude Code can now run your skills on a schedule while you sleep, with no babysitting required.
Named ideas worth stealing.
Self-Improving Task Loop
- Layer 1: Fix Scripts (Error to Edit Code to Fixed)
- Layer 2: Update Prompt (Old Prompt to Rewrites Itself to New Prompt)
- Layer 3: Log as Memory (Last Log to Learns Each Run to New Log)
Three-layer architecture that lets a scheduled task improve over time without human intervention: fix broken code on error, rewrite the prompt when improvements are found, maintain a run log so the next stateless session has context.
Pre-Flight / Main Task / Post-Run Prompt Structure
- Pre-Flight (30s): Read run-log.md, fix known issues before starting
- Main Task: Execute the actual skill or automation
- Post-Run (30s): Overwrite run-log.md with status, issues, state for next run
Three-phase prompt structure that gives each stateless scheduled task session a lightweight memory without bloating context.
Script vs Agent Decision
- Cron Script: deterministic, fixed path, no recovery, no context
- Claude Code Agent: full codebase access, MCP tools, reasoning, self-healing, can rewrite itself
Framework for deciding when to use a traditional cron script vs a Claude Code scheduled agent based on need for error recovery, dynamic reasoning, and self-improvement.
How they asked for the click.
“What you need to do now is go learn how to set up your project and create your own executive assistant.”
Clean end-of-video link to prerequisite setup video. No hard sell. Appropriate given the tutorial format.



































































