Your Antigravity agents were still working.
Your Mac didn't care.

You dispatched a task from the Agent Manager, stepped away, and came back to a sleeping Mac — the agents didn't fail, they got paused mid-run along with everything else. Here's why that happens, and how to stop it.

To keep your Mac awake while Antigravity's agents run: the free way is macOS's built-in caffeinate -i — run it in Terminal before you start, and stop it yourself when the run ends. The automatic way is AgentBarista (14-day free trial, then $19 one-time), which detects Antigravity's agents working and lets your Mac sleep when they finish.

The direct answer

Why your Mac sleeps while Antigravity's agents are still going

Antigravity's agents spend most of a run waiting on the model — planning, generating code, verifying results — and waiting on a model response barely uses any CPU. macOS only looks at CPU and user input to decide whether to sleep, so an agent that's "thinking" hard but computing little looks idle to the OS. After your screen-sleep or system-sleep timer runs out, macOS suspends the Mac, and every agent in the Agent Manager is frozen along with it until you wake it back up.

Antigravity makes this worse than a normal IDE, in a good way: the whole point of the Agent Manager is dispatching agents to work asynchronously while you do something else. The moment you walk away is exactly when your sleep timer starts counting down.

The fix is to stop macOS from sleeping for as long as the agents are actually running — then let it sleep normally again shortly after they go quiet — within your grace window, 90 seconds by default. You can do that for free in two minutes, or with a tool that knows the difference between "agent working" and "agent idle" so you don't have to babysit it.

The free option

Free tools can keep your Mac awake too

If you only dispatch an Antigravity agent occasionally, you don't need to buy anything. Two solid free options:

  • The built-in caffeinate command. Open Terminal and run caffeinate -i before you kick off a long Antigravity run. It'll hold sleep off until you close the Terminal window or press Ctrl+C. Simple, free, already on your Mac.
  • Amphetamine (free, Mac App Store). Gives you a menu-bar toggle and basic process triggers, so you can set it to stay awake while specific apps are running.

Both are a fine choice if your agent runs are short and rare. The catch: neither one knows when Antigravity's agents actually finished. You either turn it off yourself, or it keeps your Mac awake — and your battery draining — long after the last agent reported done.

The purpose-built option

What AgentBarista does differently for Antigravity

Antigravity is already in AgentBarista's supported-agent list out of the box — nothing to configure beyond turning it on. And if you run something we don't know yet, you can add any app as a watched target in Settings.

Knows when agents are working

Watches Antigravity's process activity and on-screen status — not just raw CPU — so long model waits at 0% CPU still count as working, and once the run ends it releases sleep — within your grace window, 90 seconds by default — which caffeinate can't do on its own.

Lets go when it's done

When the last agent finishes, AgentBarista releases sleep prevention within your grace window — 90 seconds by default — and shows you how much awake time it actually saved. No forgetting a Terminal window open.

Has a safety net

A battery cutoff and an emergency restore mean it never gets permanently stuck keeping your Mac awake — the risk every manual keep-awake trick carries.

Antigravity Claude Code Cursor Codex Gemini CLI Copilot CLI OpenCode Windsurf VS Code Zed Claude ChatGPT + more

It runs on your Mac. AgentBarista never opens your files. To tell a working agent from a finished one it looks at process command lines and CPU, at the names and modification times of your agents' session files, and — only if you grant macOS Accessibility permission — at the on-screen text of the agent apps you enable and of the terminals we support. Two of those can contain your own words: a command line includes any prompt you pass on it, and on-screen text includes whatever is visible in that window, your code included. Both are matched against status phrases on your Mac and discarded on the spot: never stored, never sent. Nothing about your work leaves your Mac — no file contents, no code, no prompts, no file names, no activity data. Your stats and settings stay on this Mac. The app contains no analytics or telemetry of any kind. Its one network call is license validation, sent to our payment provider, Lemon Squeezy: activating a license sends your license key and your Mac's name, and the routine check after that sends your license key and an anonymous instance id — nothing else.

Pricing

Try it free, then keep it. No subscription.

Pro, one-time
$19 once
  • 14-day free trial, no card needed
  • $15 founding price for the first 200 customers
  • Includes 1 year of updates
  • Lifetime option: $39 once, updates forever
Get notified at launch

Not live yet — leave your email and we'll ping you the moment it is.

Running agents across a team instead? See team pricing.

FAQ

Common questions

Does AgentBarista support Antigravity out of the box?

Yes — Antigravity is a built-in entry in the supported-agent list, so you just turn it on. For anything not in the list yet, AgentBarista watches real activity signals (a process's CPU, including its child processes, and on-screen text via macOS Accessibility), and you can add any app as a watched target in Settings.

Why not just use caffeinate or Amphetamine?

If you only run agents occasionally, do exactly that — they're free and they work. AgentBarista earns its price when agents are part of your daily work: it starts and stops on its own based on actual agent activity, it won't leave your battery pinned overnight because you forgot to turn something off, and it shows you how much time it actually saved.

What happens if I'm running on battery?

AgentBarista has a battery cutoff: when the charge drops to your configured floor, it stops holding the Mac awake and lets macOS sleep normally. Keeping a run alive is never worth a dead battery — that safety net is a big part of why this exists.

Does it read my code or my prompts?

No. AgentBarista never opens your files. To tell a working agent from a finished one it looks at process command lines and CPU, at the names and modification times of your agents' session files, and — only if you grant macOS Accessibility permission — at the on-screen text of the agent apps you enable and of the terminals we support. Two of those can contain your own words: a command line includes any prompt you pass on it, and on-screen text includes whatever is visible in that window, your code included. Both are matched against status phrases on your Mac and discarded on the spot: never stored, never sent. Nothing about your work leaves your Mac — no file contents, no code, no prompts, no file names, no activity data. Your stats and settings stay on this Mac. The app contains no analytics or telemetry of any kind. Its one network call is license validation, sent to our payment provider, Lemon Squeezy: activating a license sends your license key and your Mac's name, and the routine check after that sends your license key and an anonymous instance id — nothing else.

More agents

Also running Claude Desktop, ChatGPT Desktop, or another agent?

Same Mac-goes-to-sleep problem, different tool. Each of these guides covers the fix for that agent specifically: