AX notes · How-to

Claude Code harness: run it unattended every day

A harness runs Claude Code at set times with nobody watching, saves every result to a file and hands anything risky to a person. On November 10, 2026, ours ran its upkeep jobs 284 times.

By Stephen Working with agents 8 min read Last updated

Windows harness series, part 1 of 11 Next Before you start: PowerShell

If you handle marketing for a game app, your mornings tend to start the same way: open GA4, check that no ad budget is leaking, pick today's short video. This series hands those chores to Claude Code on one Windows PC, so the reports are waiting as files when you sit down, in 11 short parts. Part 1 installs nothing: you see what you will end up with and decide whether your PC and accounts are ready.

When you finish this part

  • Result: you know what a harness is, what this series builds, and whether it suits you.
  • You need: nothing yet.
  • Cost: none. From Part 4 (signing in) on you need a paid Claude plan (Step 4).
Contents (8)
  1. Step 1: See one day of a harness
  2. Step 2: Know how it differs from a chat AI
  3. Step 3: Learn the kit's four parts
  4. Step 4: Check what you need and what it costs
  5. Step 5: Look at the series map
  6. When this setup doesn't fit
  7. In the real harness
  8. FAQ

Step 1: See one day of a harness

A harness is the whole setup around an AI that runs it at fixed times without a person, records results and failures, and blocks risky actions. In this series the AI is Claude Code, a program that lets you use Anthropic's Claude from a command window.

The chart below shows when SugarMount's own harness actually ran on November 10, 2026.

Bar chart with a time axis from 00:00 to 24:00. Rows from the top: Korean-spelling app daily, Utility apps daily, Game daily (GA4, ads, creatives), three social-posting rows, Dev-notes publishing, Search indexing requests, Blog jobs (4 kinds), Social-network drafts, and Every 15 min: 3 upkeep jobs (284 runs). The three daily bars follow each other between 09:00 and 10:30; the two game rows are orange, other apps blue, everything else grey, and the bottom row is a dense comb of thin ticks.
When each job ran on Nov 10, 2026, drawn from the harness runner logs. The two orange bars are the game app's jobs. At the bottom, one tick is drawn for each upkeep run, and runs close together in time overlap.

How to read it:

Step 2: Know how it differs from a chat AI

QuestionChat AIHarness
How do you ask?Open a window and typeWrite the task into files ahead of time
When does it work?While you sit at the windowAt the times on its timetable, with nobody there
Where is the result?On screenIn log and report files you open later
What must be running?An open chatA PC that is on, with you signed in to Windows

"Signed in" (Windows calls it logged on) means your Windows account is in use on the PC. The kit schedules jobs to run only while you are signed in, so it never stores your password. A schedule set up inside a chat session stops when you close that session; with a harness, Windows itself keeps the time.

The harness calls Claude Code as claude -p. The -p flag answers one request without opening a chat window and then exits, which is called headless mode. You try it yourself in Part 4.

Step 3: Learn the kit's four parts

The kit you download in Part 6 has four moving parts. An office comparison helps:

PartOffice comparisonIn the kitWhat it does
Task SchedulerTimetableregistered by register-job.ps1The scheduler built into Windows. It wakes the runner, for example at 09:05 every day
Job cardOne card per taskjobs folderA job card (a job definition file in the jobs folder) says which instructions, which model, which tools are allowed, and the time limit
PromptWork orderprompts folderWhat Claude should do. Report jobs use only numbers found in the files, and every job ends with a "verdict" line
RunnerThe clerk who runs itrun-job.ps1Runs one job, blocks overlapping runs, enforces the time limit, and writes the work log (logs, reports, state folders)

The kit was written in Korean. Its default prompts, the line the runner prints when a job ends, and the status table's column names are Korean. English prompts sit in prompts/en; to use one, change the job card's "prompt" to prompts/en/<job>.md. A .ps1 file is a PowerShell script: a file of saved commands. "Model" means which Claude model a job uses; the kit uses haiku for its test job and sonnet for the rest.

SugarMount's real harness has more parts that this series does not build:

Only in the real harnessWhat it does
DispatcherWakes every 15 minutes, runs the app dailies in order, and carries out approved requests
Approval inboxA Notion table where anything the AI must not do alone (money, accounts, big changes) waits for a person
Guard hookChecks each tool call just before Claude makes it and blocks dangerous commands
WatcherReads only state and log files, with no model, and reports failures and missed runs
Data collection serverGathers the previous day's ad and GA4 numbers at 09:00 every day (runs in Docker)

Step 4: Check what you need and what it costs

It worked if

You can answer yes four times: the PC runs Windows 10 1809 or later; you can pay for a Claude plan; the PC can stay on at the morning job time; you can sign in to GA4 or Google Ads. Then go on to Part 2.

Step 5: Look at the series map

GroupPartsWhat you have at the end
Install2 to 5PowerShell open, Git and Claude Code installed, signed in, and a first unattended question answered. Docker is optional
Automate6 to 7The kit downloaded, a first job run by hand, then scheduled for the same time every day
Marketing8 to 10A morning GA4 report, ad budget suggestions, and a plan for TikTok, Reels and Shorts videos
Operate11A start-up order and a morning check routine taken from a 17-day record of real runs

The kit never touches your ad account; it writes suggestions. It never uploads videos; it writes plans. A person makes the changes and does the posting.

When this setup doesn't fit

If this is youWhyWhat to do
Your PC is off most of the time, or nobody is signed inKit jobs run only while you are signed in. A missed run fires once after the PC is back onKeep the PC on at job time, or schedule jobs after the time you usually switch it on
You want the AI to own the ad budget or posting outrightThe kit only suggests and plans. Even the real harness sends money and account decisions to a personStart with suggestions you read and apply yourself (Part 9)
You only have the free Claude planThe free plan has no Claude CodeYou need Pro or higher
Your Windows is 32-bitClaude Code does not support 32-bit WindowsUse a 64-bit Windows PC
You can't download GA4 and ad numbers by hand each dayThe kit reads only CSV files you download and drop inAutomatic collection is outside this series; run the report on the days you do download

In the real harness

SugarMount's harness started on October 25, 2026. An older harness that ran in a Linux environment was stopped and rewritten for Windows from scratch, keeping the lessons but none of the code.

As of November 11, 14 jobs were registered in Task Scheduler; the dispatcher calls the rest in order. Each job names its model: opus for the app dailies, which involve the most judgment, sonnet for fixed screen work such as posting, and haiku for self-checks.

FAQ

Can I run a harness on the free Claude plan?

No. Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account; the free claude.ai plan does not include it (official docs, Nov 11, 2026).

What happens to a scheduled job if my PC is off?

It does not run at that time. The kit schedules a missed run to fire once after the PC is back on and you are signed in. Part 7 walks through each setting.

Do I need any programming experience?

The series is written for people who are opening a command window for the first time. Part 2 starts with how to open PowerShell and paste a command.

As of Nov 12, 2026. Claude Code official docs (code.claude.com), claude.com/pricing (checked Nov 11, 2026), Microsoft Task Scheduler docs, SugarMount harness runner logs (Nov 10, 2026) and job list (Nov 11, 2026), and the kit used in this series.

This note is written from values SugarMount measured itself; an AI coding agent was used to draft it.

All AX notes