Learn Claude Code by Building DevPulse · Chapter 8

A standup that runs on its own

You want your standup ready before you even open Claude, so can Claude Code work without a chat? By the end of this chapter, one command, .\standup.ps1, writes the standup and DevPulse shows it.

One sitting~6 min read, ~15 min to build along
You start fromchapter 7's DevPulse, with /standup
You buildstandup.ps1: the standup in one command
Chapter 8 of 15Claude Code without a chat

Prefer to watch? This chapter goes with Episode 8 (4:05). Open it on YouTube.

Subscribe on YouTube

Goes with Episode 8"Can Claude Code work without a chat?". Watch it just above, or read this page at your own pace. It teaches the same steps.
In a hurry?Jump to the quick reference: every command and key in this chapter, what it does, and when to use it.
Every prompt, ready to copyThis chapter's prompts and commands, each with a Copy button. Type them yourself first; copy if you are stuck or behind.
Where you areDevPulse has the /standup skill and a Standup panel, from chapter 7. Work in PowerShell in your project folder, outside Claude.

The standup should be ready before you are

In chapter 7, /standup made the standup one command. But you still open Claude, wait for it, and type the command.

Say your milk packet is at the door every morning, before you wake up. You never call anyone for it; it just arrives. That is the standup you want: ready before you sit down, without asking each time.

A hand-drawn front door at 6 am, with a cloth bag on the handle holding a milk packet, and a rising sun.
The milk is at the door before you wake up. Nobody asked for it that morning.
The question for this chapter

Can Claude Code do a job without a chat window at all?

One request, no chat: claude -p

Add -p to claude and it runs one request, prints the answer, and exits. This is called headless mode. You can also send it text from another command with |, the pipe.

Type this in PowerShell (Mac: Terminal), in your project foldergit log --since=yesterday --oneline | claude -p "turn this into a three-line standup"
git log piped into claude -p: Yesterday: added a Standup panel and standup skill, best-streak tracking, today's total in the tab title. Today: (fill in; nothing in the commits says what's next). Blockers: None. The commits only cover what's done, so I left Today open instead of inventing a plan.
Three lines from the commits, then the prompt comes back. Note: it left Today open rather than invent a plan.

Let it use only the tools it needs

A command that runs on its own should do one job, and nothing more. So you list exactly what it may use, with --allowedTools. Here: read files, write files, and run git log.

Type this in PowerShell (Mac: Terminal), as one lineclaude -p "Read data/tasks.json and the git log since yesterday; write a three-line standup to data/standup.md" --allowedTools "Read,Write,Bash(git log:*)"
The headless command with --allowedTools: I wrote the standup to data/standup.md. Yesterday: Nothing logged. Today: still to do and already done. Blockers: None. Nothing is dated yesterday; I didn't modify tasks.json.
It read the tasks and the log, wrote data/standup.md, and says it did not touch tasks.json.

Bash(git log:*) means: any command that starts with git log. Any other command would be refused.

Wrap it in a script

That line is long to type each morning. Ask Claude to put it in a script. Start claude, then:

Type this into Claude CodeWrap that headless standup command in standup.ps1, so I can run it with .\standup.ps1 from this folder. Keep the same allowed tools.
Claude: I can't find the headless standup command, so I haven't written standup.ps1. I'd rather not guess the allowed tools. Paste the command you ran, or tell me which tools it allowed.
A new session cannot see what you typed in the terminal. So it asks, instead of guessing the allowed tools.
Give it the exact commandThis is the command: claude -p "Read data/tasks.json and the git log since yesterday; write a three-line standup to data/standup.md" --allowedTools "Read,Write,Bash(git log:*)"
Write(standup.ps1): two lines, Set-Location $PSScriptRoot and the claude -p command. I created standup.ps1; it first switches to the script's own folder. If PowerShell blocks it with an execution-policy error, run powershell -ExecutionPolicy Bypass -File .\standup.ps1.
Two lines: go to the script's own folder, then run the command. It also warns about Windows' script policy. The grey run it and show me the output is only a suggestion.

On a Mac, ask for standup.sh instead, and run it with ./standup.sh.

Run it, then look at the app

Type /exit, then run the script from PowerShell.

Windows: type this in PowerShell.\standup.ps1
Mac: type this in Terminal./standup.sh
.\standup.ps1: I wrote the standup to data/standup.md, with the Yesterday, Today and Blockers lines.
One command, the standup written. No chat opened.
DevPulse's Today view: the Standup panel shows the new Yesterday, Today and Blockers lines.
Refresh the app: the panel shows the new standup.

Every morning, by itself

Now the morning part. One line asks Windows Task Scheduler to run the script every day at nine. $PWD is the folder you are in, so run it from projects\devpulse.

Windows: type this in PowerShellschtasks /create /tn "DevPulse standup" /tr "powershell -File $PWD\standup.ps1" /sc daily /st 09:00
Check it, then run it once nowschtasks /query /tn "DevPulse standup" schtasks /run /tn "DevPulse standup"

Windows shows the next run: 9:00:00 AM, Ready. When the task runs, a window opens by itself. That is the script running Claude: it writes the standup, and closes.

schtasks /create: SUCCESS. schtasks /query: DevPulse standup, Next Run Time 9:00:00 AM, Ready. schtasks /run: SUCCESS, attempted to run.
The task is made, the next run is 9:00 AM, and we run it once now.
A window titled claude opens over PowerShell by itself and prints: I wrote the standup to data/standup.md, with the Yesterday, Today and Blockers lines.
The window that opens by itself: the script runs Claude, and Claude writes the standup. Then it closes.
DevPulse's Today view after a refresh: the Standup panel shows the standup the scheduled run wrote.
When we refresh the app, a new standup is waiting, and we typed nothing in Claude. We recorded this on 8 Nov, so the open tasks from 29 Oct show as blockers.
Mac: type this in Terminal(crontab -l 2>/dev/null; echo "0 9 * * * cd $PWD && PATH=$HOME/.local/bin:\$PATH ./standup.sh") | crontab -

On a Mac, cron does the same job: every day at nine, go to this folder and run standup.sh. The PATH part is there because cron does not know where claude is installed.

Either way, the computer has to be on at nine. On Windows, you also have to be signed in; a locked screen is fine. If not, that morning's run is skipped. To stop it later: schtasks /delete /tn "DevPulse standup" on Windows, crontab -e and delete the line on a Mac.

Careful here

If PowerShell says running scripts is disabled, run powershell -ExecutionPolicy Bypass -File .\standup.ps1. That allows this one run, and changes nothing else.

What headless costs

Each run uses your plan, like any request. And nobody watches it: if the job goes wrong, you find out later. That is why the allowed tools are kept so small.

There is a bigger problem coming. The code has grown, and so far the same Claude that wrote it is the one that checks it. In chapter 9 we get a second pair of eyes. Claude Code calls it a subagent.

Quick reference

The prompts from this chapter, ready to copy: every prompt, chapter 8.

Command or keyWhat it doesUse it when
claude -p "…"Runs one request, prints the answer and exits; no chatA job you want done without opening Claude
… | claude -p "…"Sends another command's output in as the text to work onThe input comes from git, a file or a log
--allowedTools "Read,Write,Bash(git log:*)"Lets the run use only these toolsA script should do one job, and nothing more
.\standup.ps1Runs the script in this folderEvery morning
powershell -ExecutionPolicy Bypass -File .\standup.ps1Runs it when Windows blocks scriptsYou see an execution-policy error

References

Where each command and option on this page comes from. Every screenshot is from our own recording on 29 Oct 2026, Claude Code 2.1.312, except the three schedule pictures, recorded on 8 Nov 2026.

  1. Anthropic · Run Claude Code programmatically (headless) claude -p: one request, an answer printed, no chat; reading from a pipe; output formats. https://code.claude.com/docs/en/headless
  2. Anthropic · CLI reference --allowedTools and its patterns, such as Bash(git log:*). https://code.claude.com/docs/en/cli-reference
  3. Microsoft · about_Execution_Policies Why Windows may block a .ps1 script, and how to allow it. https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies
  4. My own recording · 29 Oct 2026, Windows 11 Both headless commands worked as written in PowerShell; no execution-policy error on this PC.