3.4Before you paste the template
Choose a permission mode
The scaffolding step creates dozens of files. In the default permission mode, Claude will pause and ask you to approve every single file creation. That defeats the purpose of autonomous scaffolding.
Recommended: acceptEdits mode. Claude creates and edits files freely. Shell commands still require approval.
claude --permission-mode acceptEdits -n scaffolding
Alternative: auto mode (requires Team, Enterprise, or API plan). A classifier model reviews every action. You can step away and let Claude work.
claude --permission-mode auto -n scaffolding
Alternative: worktree isolation. Scaffold in a disposable copy of the repo. Review the result, then merge or discard.
claude --worktree scaffolding --permission-mode acceptEdits
Name the session
Always name the scaffolding session so you can resume it if interrupted:
claude -n scaffolding --permission-mode acceptEdits
If Claude is interrupted mid-scaffold, resume with:
claude --resume scaffolding
Set up hooks (optional but recommended)
If you prepared hooks in Chapter 2 Step 12, confirm they are in .claude/settings.json before starting. At minimum, a lint-on-edit hook keeps the generated code clean as it is created.