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
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 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
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
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
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
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.