A developer is performing a large-scale refactoring across many files — Claude Code Certified Professional Practice — Claude Cert Academy

A developer is performing a large-scale refactoring across many files and wants Claude Code to edit files without requesting per-file approval. Which configuration achieves this?

Answer: Add edit and write tools to allowedTools in .claude/settings.json

Adding Write and Edit to allowedTools in .claude/settings.json grants those permissions without per-operation prompting, which is the correct project-level configuration. CLAUDE_AUTO_WRITE is not a real environment variable recognized by Claude Code. There is no --batch flag for the CLI. Pressing Tab auto-accepts individual prompts one at a time rather than pre-authorizing writes globally.

Continue to Claude Cert Academy