Claude Code's claude -p has no spend cap until you set one


Claude Code's claude -p has no spend cap until you set one
The four settings a headless run needs. Plus: permission rules check deny, then ask, then allow.  ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
WotAI

Claude Code's claude -p has no spend cap until you set one

Hey Reader,

Six reads this week. Two are about letting Claude Code run without you: the five ways to do it, and the four settings a claude -p script needs. Two are about keeping it in bounds on a team: permission rules and MCP servers. Then pull request review, and when to route Claude Code through Amazon Bedrock.

Claude Code headless mode: no cap on turns or spend until you set one

Claude Code headless mode – run claude -p from scripts, with output you can parse and a cap

Headless mode is claude -p ": Claude Code runs the prompt, prints the result and exits, so a script, a cron job or a CI pipeline can call it. A run you can trust without watching needs four settings on top of -p. Bare mode, so the run ignores whatever hooks, plugins, MCP servers and CLAUDE.md sit on the machine. Pre-approved tools or a permission mode, because nobody is there to answer a prompt. JSON output, so your script reads a result field, a session ID and a cost estimate instead of scraping text. And a cap on turns and on spend, because neither has a limit by default. Bare mode never reads your subscription login, so plan on an API key for those runs.

See the four settings →

Five ways to run Claude Code without you, and five questions first

Claude Code automation – five ways to run it unattended, and what to check first

Claude Code runs unattended five ways: a claude -p script, /goal or /loop inside an open session, a scheduled task in the cloud or on your desktop, and GitHub Actions on a repository event. Pick by what has to start each run and whether your machine has to stay on: /goal, /loop and desktop tasks need it on with the session or app open, while cloud tasks and GitHub Actions don't. Then answer Anthropic's five questions for that task before you walk away: what done looks like, how the run checks its own work, what it may touch, what stops it, and who signs off on the result.

Pick the right one →

Claude Code permissions: deny, then ask, then allow

Claude Code permissions – allow, ask and deny rules that hold

Permission rules live in your settings files, and Claude Code checks every tool call against them in a fixed order: deny first, then ask, then allow. The first match decides, however specific the other rules are, so an ask rule prompts even when an allow rule matches. Where you put the decides how much a rule allows: Bash(git log ) allows only git log commands, while Bash(git *) allows every git command. A Bash rule matches command text, not the program, so it isn't a security boundary on its own. And a line in CLAUDE.md can't grant or revoke anything, because Claude Code enforces the rules, not the model.

See the rules that match what you meant →

Claude Code MCP servers on a team: what loads without asking

Claude Code MCP servers on a team – add, share and control them

Each server goes in at one of three scopes. Local, the default, stays private to one project. Project writes a .mcp.json you commit. User follows you into every project. Teammates approve each project server the first time they run Claude Code interactively, but claude -p runs, Agent SDK sessions and some cloud sessions load them without asking. To keep a server out everywhere, list it in disabledMcpjsonServers. Anthropic doesn't security-audit any MCP server, so the team's decision is which control pattern to set in managed settings: no MCP at all, a fixed set, servers you provide, an approved catalog or a denylist.

See how to share and control them →

Claude Code PR review: four ways, picked by plan and code host

Claude Code PR review – four ways to review every pull request, and which to pick

On a Team or Enterprise plan with GitHub repositories, turn on Code Review: Anthropic's managed service reviews every pull request on its own infrastructure, with no workflow file to write. It never approves or blocks a pull request, and it's billed to the organization on token usage, with no flat price per review. On any other plan, or on GitLab, run Claude in your own CI. Whichever you pick, run /code-review in your session before you open the pull request, on any plan. Ultrareview is the deeper pass in a cloud sandbox for the branch that matters most.

Pick yours →

Claude Code on Amazon Bedrock: when AWS has to process the data

Claude Code on Amazon Bedrock – when a team should route through AWS

Route Claude Code through Amazon Bedrock when AWS has to be the party that processes your prompts and code, or when your compliance program needs FedRAMP High, IL4, IL5 or HIPAA readiness on AWS. You get IAM, CloudTrail, Guardrails and Cost Explorer. You give up every feature that needs a Claude subscription, plus web search, fast mode, Remote Control, Code Review and the analytics dashboard. If you only want to pay through AWS, Claude Platform on AWS keeps more of Claude Code's features, and for most organizations Anthropic recommends a Team or Enterprise plan.

See what you give up and what you get →

Also this week

Two more ways to keep a session working: /goal, which keeps going until a separate model agrees your condition holds, and /loop, which reruns a prompt on a schedule and deletes itself after seven days.


Reply and tell me: what do you let Claude Code run without watching, and what stops it? I read every reply.

– Alex

P.S. – Next week: Claude Code in GitHub Actions, and whether to script against the Claude Code SDK or claude -p.

Come build with us

Follow WotAI: LinkedIn  ·  YouTube  ·  TikTok
You are receiving this because you subscribed to the WotAI newsletter. Unsubscribe

WotAI · AI Automation that Actually Ships

wotai.co

WotAI · 440 N. Barranca Ave., Unit 3777, Covina, CA 91723

WotAI

If you're building with Claude Code, n8n, or AI agents in production, this is the email I'd want. Weekly recap of what shipped, what broke, and how I'm running it. Specific over vague. Replies welcome.

Read more from WotAI

Claude Code with Ollama or OpenRouter: what Anthropic supports Two variables point it anywhere. Which models stay supported, and which are an experiment. Plus: what it commits to git. Claude Code with Ollama or OpenRouter: what Anthropic supports Hey Reader, Twelve reads this week, and most cover the parts of Claude Code you touch every day. First, pointing Claude Code at Ollama, OpenRouter or your company's gateway, and what Anthropic supports when you do. Then two on keeping it in check:...

Switching models won't fix a Claude Code session limit Which limit you hit decides what works. Plus: Claude Code vs Cursor, and why a long session costs more. Switching models won't fix a Claude Code session limit Hey Reader, Happy Thanksgiving to everyone who celebrated yesterday. Today's Black Friday, so your inbox is full of deals. There are none in this one, just nine reads from the week. Two are about running out: which Claude Code limit you've hit and what fixes it, and why a long...

Claude Fable 5.2 costs twice Opus 5.5, with one exception Cache reads cost the same on both. Plus: Claude Code put account emails in User-Agent headers. Claude Fable 5.2 costs twice Opus 5.5, with one exception Hey Reader, Six reads this week. Two are news: a new model with a new price list, and a Claude Code bug that sent account emails where they shouldn't go. The other four are setup: driving a session from your phone, which connectors to turn on, what each plan buys, and hooks that block....