Why does your CI agent still stall on permission prompts?
When you run Claude Code in an unattended pipeline, a single permission prompt can freeze the whole turn. The permissions.denyInsteadOfPrompting setting denies any tool call that would wait on a prompt, so the turn keeps going instead of hanging.
What it is
It is a Claude Code permissions setting that applies in terminal sessions, subagents and teammates. A tool call that would wait on a permission prompt is denied and the turn continues.
Applied case
A developer wiring Claude Code into a scheduled job found the run blocked for hours because a tool call sat waiting on a prompt no human would see. By enabling permissions.denyInsteadOfPrompting, the blocked call is denied immediately and Claude continues with the rest of the task. The same behavior covers subagents and teammates, so parallel helpers no longer stall mid-run.
- Deny prompt-blocked tool calls so unattended turns and subagents finish instead of hanging
When to use it
Use when you run Claude Code unattended: scripts, scheduled jobs, subagents.
Skip when you are driving interactively and want prompts to gate risky tool calls.
Read more
Recommended for you
- WorkflowVercel
When to use a vision coding agent instead of a plain LLM?
Text-only models miss detail in screenshots and charts, and drift on long-running agent tasks across a large codebase.
- WorkflowVercel
How I get usage credit without juggling a dedicated Token Pass key
Token Pass credit now applies automatically to AI Gateway requests, no special key required, with fallback to team credits when it runs out.
- WorkflowOpencode
How do you keep coding agents on task without babysitting every step?
Agent sessions drift from the objective, forcing you to watch every turn; opencode's /goal lets a session run until a reviewer confirms the goal is met.
- WorkflowHerdr
How do you supervise coding agents without watching every window?
I run Claude and opencode side by side in one terminal. Three herdr habits replaced window-polling with state-waiting: persistent sessions, the agent loop, a setup script.
Enjoyed this article?
Subscribe for new articles. No spam. Unsubscribe anytime.