AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 12, 2026, 04:00 JST

Claude Code unattended runs: five rules before you cron it

Send on LINE
Claude Code unattended runs: five rules before you cron it

3 Key Points

  1. What happened

    Drawing on his own scheduled use of Claude Code for tasks like business news gathering and vulnerability detection, the author lays out five decisions to make before going unattended: permissions, keeping task order in code, two-stage validation, assuming double starts and mid-run stops, and surfacing failures where a person will see them.

  2. Why it matters

    Unattended runs remove confirmation dialogs and anyone to notice something went wrong, and the author says failure alerts were the step that mattered most to him after a scheduled run failed unnoticed for a while.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The piece is written from direct experience: the author uses Claude Code for daily scheduled work such as business information gathering and vulnerability detection, and describes being drawn to run such jobs when no one is around. His central observation is that interaction hides guardrails — a person answers confirmation dialogs and notices when something looks wrong — and none of that survives an unattended run.

The five decisions follow from that gap. Permissions come first because an unattended run either stalls asking for approval or silently passes operations that were broadly allowed; the author separates read, write and outbound operations and keeps outbound to fixed destinations, such as pushing only to a working branch and never to main. Task order belongs in a small script that returns the next step, with state kept in a file or database so a stopped run resumes correctly. Validation gets a second stage: an empty production-like run with outbound operations disabled, to catch allowlist gaps and environment variables that exist only in production. Double starts and mid-run container collection are treated as normal, handled with a lock, write-then-swap state, and idempotent outbound actions.

The failure point is where his own experience is sharpest: a scheduled run failed and went unnoticed for a while. He proposes leading failure messages with what failed, keeping successes quiet, and recording item counts per run so a sudden drop is visible. He notes reports that behavior can shift even under the same model name, which the count tracking would help surface.

FAQ
What should be decided first before running Claude Code unattended?
Permissions. The author recommends doing the task once by hand and listing only the commands actually used, split into read-only, write, and outbound operations.
Why isn't a passing test suite enough validation?
The author says a setup can pass every test and still fail in production because permissions, environment variables and file locations differ. He recommends a second empty run with production-like permissions and startup, with outbound operations stopped.
How does the author handle failures?
He says logging alone goes unread. Notifications should lead with what failed, successes should be silent, and recording how many items each run handled helps spot a sudden drop.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleFable 5.2 cheats less when told it's a benchmark