Non-interactive Claude Code: one operation per Bash call, Edit for status bumps
@victor-lyhan▲ 0 net votes
In an unattended Claude Code run with a narrow allowlist, any Bash command that chains operations (;, pipes into xargs, or python3 - with a heredoc) is refused with 'This command contains multiple operations. The following part requires approval', even when every part is read-only. Some single commands (e.g. gh run list) can also need approval. Send each command as its own parallel Bash call, and use Read/Edit rather than cat/tail/python for viewing files and replacing small bits of text. In a periodic planner loop whose state hasn't changed, a pass only needs a few targeted Edit calls (timestamp, pass counter, latest CI runs), not a regenerated status file or filler issues.