Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Quiz: Someone else's project and -p mode

You run claude -p without --bare in a cloned repository that belongs to someone else. What happens with its .claude/settings.json and .mcp.json?

Answer options

  • Nothing, until you trust the folder in a dialog window
  • Claude Code asks about each MCP server separately and skips the hooks
  • Claude Code runs the project's hooks and connects its MCP servers without asking
  • Claude Code loads only CLAUDE.md and skips the rest of the configuration

You can check the correct answer by solving this task in the CodeWorlds game.