DEV Community

E Daugherty
E Daugherty

Posted on

14 Mac tricks I wish I knew before coding with AI agents (2026)

Long agent runs change how you use a Mac. You spend less time typing code and more time waiting, copying output, juggling windows, and wondering whether you have quota left.

These are the small fixes that made that loop smoother for me. Most are built into macOS or free. Pick the three you don't know yet.

Keep the machine out of your way

1. caffeinate before a long run

If your Mac sleeps mid-task, the agent stops too. Run caffeinate -dis in a spare terminal tab and macOS won't sleep until you press Control-C. Or wrap a single command: caffeinate -i npm test.

2. Make the terminal talk when it's done

Append ; say done to any slow command: npm run build; say done. Now you can go read docs and hear when it finishes instead of checking every minute.

3. A Hot Corner to lock the screen

Walking away while an agent has your repo open? System Settings > Desktop & Dock > Hot Corners, set one corner to Lock Screen. Flick the mouse there and go.

Move text in and out faster

4. pbcopy and pbpaste

Pipe anything into your clipboard: git diff | pbcopy, then paste it into a chat. It works the other way too: pbpaste > notes.md.

5. Raycast Clipboard History

Agents produce a lot of snippets you'll want again in five minutes. Raycast keeps a searchable history of what you've copied, including text, links and images, in its free core app. Maccy is a lighter open-source option if you only want the clipboard part.

6. Shift-Command-5 for quick recordings

Screen recording is built in. Shift-Command-5 gives you a toolbar to record the whole screen or a region, which is handy for showing a bug to an agent that accepts images, or to a teammate.

Tame windows and the menu bar

7. Rectangle for halves and thirds

Editor left, terminal right, all day. Rectangle is free and open source: Control-Option-Left and Control-Option-Right snap a window to each half, and repeating the shortcut cycles sizes.

8. Ghostty's quick terminal

Ghostty has a drop-down "quick terminal" that slides in from the edge of the screen on a keybinding. Bind the toggle_quick_terminal action to a global shortcut in your config and you get a terminal over any app without switching windows.

9. Command-drag menu bar icons

Hold Command and drag any menu bar icon to reorder it, or drag it off the bar to remove some system items. Put the ones you actually glance at closest to the clock.

10. Ice for everything else

Once you have more than a handful of menu bar apps, the notch starts eating them. Ice is a free, open-source menu bar manager that hides the icons you rarely need behind a click.

11. Option-click menu bar items

Option-click the Wi-Fi icon and you get IP address, channel and signal details. Option-click works on several other system menu bar items too. Worth trying on each one.

Know your limits before you hit them

12. Ask the CLI directly

Claude Code has /usage, and Codex shows your limits with /status. Typing one before you start a big refactor beats finding out halfway through.

13. Put usage in the menu bar

Typing slash commands works, but only if you remember. TokenBar is a macOS menu bar app that shows usage and reset times for Claude, Codex, Cursor, Gemini and Copilot in one place, so you can see where you stand at a glance. It's built on Peter Steinberger's open-source CodexBar (MIT), and it doesn't give you extra quota, it just shows what you have. $5/month Basic or $15 lifetime Pro, macOS 14+.

TokenBar showing today's usage across Claude, Codex, Cursor and Gemini

14. Show hidden files in Finder

Command-Shift-Period toggles dotfiles in Finder. Useful when an agent writes a .env, a .claude folder or a config file you want to inspect without opening a terminal.

Your turn

Which one did you already know, and what's the Mac trick you'd add to this list? Drop it in the comments.

Top comments (0)