- Symptom
- Hook commands from the repo's .claude/settings.json run in CIMCP servers from .mcp.json start with no approval prompt in a folder never trusted
- Cause
- Print mode shows no workspace trust dialog and no per-server approval prompt, so a project's hooks and MCP servers run even in a folder that was never trusted.
- Fix
- On untrusted code or in CI use --bare, which skips hooks, MCP servers, plugins, skills, auto memory, and CLAUDE.md, and pass what the run needs with flags.
- Apply
claude --bare -p "Summarize README.md" --allowedTools "Read"- Affected
- Claude Code print mode, as of 2026-10
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders