Prevent Your Mac from Sleeping While Claude Code Works
Set up Claude Code to automatically keep your Mac awake during long tasks and let it sleep again when finished, using hooks and the caffeinate command.
// 12 articles available
Set up Claude Code to automatically keep your Mac awake during long tasks and let it sleep again when finished, using hooks and the caffeinate command.
Xcode eats storage through DerivedData, old simulators, device support files, and archives. Here's what each folder is and what is safe to delete.
The Xcode MCP server connection prompt interrupts your flow every time you restart Claude Code or clear your session. Here's how to automate it away using hooks.
Set REACT_NATIVE_PACKAGER_HOSTNAME to your Mac's .local name so an Expo dev build on a physical device finds Metro over Bonjour, no Expo Go needed.
Kill port 8081 with lsof -ti :8081 | xargs kill. Here's why an orphaned Metro bundler holds the port and how to stop it happening again.
In Claude Code, commit changes means running git commit on the edits it made. Here's how to make it commit automatically with hooks or CLAUDE.md.
Install Vercel's React Native skills with npx skills add vercel-labs/agent-skills, then point Claude Code, Cursor, or Codex at them or write your own.
React Native projects require running lots of shell commands. Here's how to configure Claude Code's permission system so you're not constantly approving the same operations.
Xcode 26.3 ships with a built-in MCP server that exposes project structure, build actions, and test results to external AI tools. Here's how to set it up.
Change where Mac screenshots save with Cmd+Shift+5 then Options, or run defaults write com.apple.screencapture location in Terminal. Takes 30 seconds.
Avoid cryptic build failures by setting up nvm to automatically use the right Node version when you cd into a project.
Stop macOS from writing .DS_Store files to network shares and USB drives with one Terminal command. Keep your repos and external drives clean.